B
Brian
I invoked a java program with something like:
java -Xmx1600M myprogram
It ran for a day and now top reports this:
top - 17:14:09 up 1 day, 1:30, 5 users, load average: 5.56, 5.98, 6.13
Tasks: 143 total, 1 running, 142 sleeping, 0 stopped, 0 zombie
Cpu(s): 90.6% us, 9.2% sy, 0.0% ni, 0.0% id, 0.2% wa, 0.0% hi, 0.0% si
Mem: 2054672k total, 2037940k used, 16732k free, 1872k buffers
Swap: 2031608k total, 1015260k used, 1016348k free, 303348k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5689 brian 15 0 2887m 1.6g 1484 S 99.9 79.4 1680:00 java
^^^
Obviously 2887m >> 1600m. So what is Xmx really?
Maybe it's the amount of memory a program can use from the user
perspective, without the details of pointers, gc, etc. thrown in.
That's fine. But I still wanted my program to stop using memory
once it hit the swap space (even if it throws an error). Is there
a way to do this?
BTW, DDJ covered a story on Enerjy just recently. Some of the
profiling tools look interesting. Are there any other favorites?
I'm on a starving student budget by the way.
Thanks!
Brian
java -Xmx1600M myprogram
It ran for a day and now top reports this:
top - 17:14:09 up 1 day, 1:30, 5 users, load average: 5.56, 5.98, 6.13
Tasks: 143 total, 1 running, 142 sleeping, 0 stopped, 0 zombie
Cpu(s): 90.6% us, 9.2% sy, 0.0% ni, 0.0% id, 0.2% wa, 0.0% hi, 0.0% si
Mem: 2054672k total, 2037940k used, 16732k free, 1872k buffers
Swap: 2031608k total, 1015260k used, 1016348k free, 303348k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5689 brian 15 0 2887m 1.6g 1484 S 99.9 79.4 1680:00 java
^^^
Obviously 2887m >> 1600m. So what is Xmx really?
Maybe it's the amount of memory a program can use from the user
perspective, without the details of pointers, gc, etc. thrown in.
That's fine. But I still wanted my program to stop using memory
once it hit the swap space (even if it throws an error). Is there
a way to do this?
BTW, DDJ covered a story on Enerjy just recently. Some of the
profiling tools look interesting. Are there any other favorites?
I'm on a starving student budget by the way.
Thanks!
Brian