由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 问个系统问题 (转载)
相关主题
Java crashWhy My Java Program Is So Slow?
今天被老印grill了java最大用多少内存
ft, SGI Irix JVM problemRe: for help
JVM crashes on LinuxAlternative way to swap Integer
问一个GC的问题java memory management?
java: use vector to shuffle a deck of Card 问题 (转载)[转载] 问一个关于速度的问题
java如何keep大数组在内存中?[合集] Java sucks big time for no hot swap.
[转载] linux下的java sound问题out of memory
相关话题的讨论汇总
话题: memory话题: 1gb话题: java话题: swap话题: jvm
进入Java版参与讨论
1 (共1页)
s*****p
发帖数: 5342
1
btw, Java5 稳定吗?
【 以下文字转载自 Linux 讨论区 】
发信人: startup (刘跑跑), 信区: Linux
标 题: 问个系统问题
发信站: BBS 未名空间站 (Thu Aug 21 08:00:15 2008)
i have Java program eating a lot of memory. My ubuntu is running on 1GB
memory machine. i allow JVM to use 2GB by using -Xmx2096M. It is ok for it
to do swapping. However, when its memory jump close to 1GB, it is very easy
to crash. I am wondering if there is any other way to allow this Java
application to use more memory (swapping is fine)?
from top, it seems program crashe
x******h
发帖数: 13678
2
以前也遇到过这种问题,帮你顶一下,准备聆听牛人教诲
m******t
发帖数: 2416
3
Let's just say it's not wise to go more than 1.5G with a 32bit vm. 8-)
So 1) optimize your algorithm, 2) switch to 64bit, and/or 3) upgrade
to java 6.

easy
know why?

【在 s*****p 的大作中提到】
: btw, Java5 稳定吗?
: 【 以下文字转载自 Linux 讨论区 】
: 发信人: startup (刘跑跑), 信区: Linux
: 标 题: 问个系统问题
: 发信站: BBS 未名空间站 (Thu Aug 21 08:00:15 2008)
: i have Java program eating a lot of memory. My ubuntu is running on 1GB
: memory machine. i allow JVM to use 2GB by using -Xmx2096M. It is ok for it
: to do swapping. However, when its memory jump close to 1GB, it is very easy
: to crash. I am wondering if there is any other way to allow this Java
: application to use more memory (swapping is fine)?

t*******e
发帖数: 684
4
Someone pointed out a few ago that JVM is good in horizontal scaling, not
vertical scaling. Do not give more than 1gb to one JVM, instead, you may
choose to run multiple JVMs on your PC.
c*c
发帖数: 447
5
It may be the memory sizing problem. What's the swap size on that machine?
you have 1GB memory and you set the maximum heap to 2G? ANd it's not strange
it crashes when heap is over 1G. Just go get more memory and see how that
works.
s*****p
发帖数: 5342
6
memory size is 1GB and swap size is 3GB
Mem: 1033704k total, 1018648k used, 15056k free, 1912k buffers
Swap: 3028212k total, 632040k used, 2396172k free, 103072k cached
like today, it uses swap. however, whenever it crashes, it seems not to use
any swap at all. strange ...

strange

【在 c*c 的大作中提到】
: It may be the memory sizing problem. What's the swap size on that machine?
: you have 1GB memory and you set the maximum heap to 2G? ANd it's not strange
: it crashes when heap is over 1G. Just go get more memory and see how that
: works.

1 (共1页)
进入Java版参与讨论
相关主题
out of memory问一个GC的问题
Re: Out of memory, Java heap space 的问题怎么解决? (转载)java: use vector to shuffle a deck of Card 问题 (转载)
哪位大牛帮帮忙, 初学JAVA, 问题一道java如何keep大数组在内存中?
帮我了解一下64bit JVM[转载] linux下的java sound问题
Java crashWhy My Java Program Is So Slow?
今天被老印grill了java最大用多少内存
ft, SGI Irix JVM problemRe: for help
JVM crashes on LinuxAlternative way to swap Integer
相关话题的讨论汇总
话题: memory话题: 1gb话题: java话题: swap话题: jvm