W
Wei
Hi,
I have a java program which needs to manipulate a big 3D float array
(40x3000x3000). By definition, it'll use 40x3000x3000x4=1.4GB memory,
and my pc has only 512MB physical RAM and I set 2GB page memory.
I tried the following steps:
1. run java with option -Xmx1440m, but it seems doing Garbage
collection when it used up physical ram, and cpu usage drops to <7%,
memory usage also drops to <100MB. It seems hanging there forever.
2. added -Xnoclassgc (trying to disable garbage collection), but no help.
3. I thought about reducing the array size by using short instead of
float, but it's not acurate enough.
While I'm working on new algorithm to reduce the size of the array,
it may not be available soon. Can anyone suggest me how to handle the
big array with my current PC setting?
Thanks a lot,
Wei
I have a java program which needs to manipulate a big 3D float array
(40x3000x3000). By definition, it'll use 40x3000x3000x4=1.4GB memory,
and my pc has only 512MB physical RAM and I set 2GB page memory.
I tried the following steps:
1. run java with option -Xmx1440m, but it seems doing Garbage
collection when it used up physical ram, and cpu usage drops to <7%,
memory usage also drops to <100MB. It seems hanging there forever.
2. added -Xnoclassgc (trying to disable garbage collection), but no help.
3. I thought about reducing the array size by using short instead of
float, but it's not acurate enough.
While I'm working on new algorithm to reduce the size of the array,
it may not be available soon. Can anyone suggest me how to handle the
big array with my current PC setting?
Thanks a lot,
Wei