Devl Peter ([EMAIL PROTECTED]) wrote: > USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND > freenet 14386 0.0 32.0 474648 164824 pts/2 SN 21:20 0:00 java -Xmx192m > freenet.node.Main
> top: > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND > 1493 freenet 15 10 162M 160M 8124 S N 0.0 32.0 0:08 java > according to ps, and top, java uses up around 160 megabytes of memory > (if that is what size means) I suspect if I use it heavily, it can > reach the 192 MByte limit. First point, the "-Xmx192m" refers to the amount of space the Java virtual machine is allowed to malloc(). This doesn't include the amount of space the VM itself takes up -- just what it uses for dynamic data structures. Second point, either top or ps is on drugs. I suspect top. I don't have a clue why ps says java is using 470 MB of virtual memory, while top says it's only using 162 MB. > But according to nodeinfo/environment: > > Memory Allocation > Maximum memory the JVM will allocate 195,136 KiB > Memory currently allocated by the JVM 30,568 KiB That's the "-Xmx" stuff, telling you how much of the malloc() heap it's used so far. > Memory in use 13,020,104 Bytes > Estimated memory used by logger None > Unused allocated memory 18,279,632 Bytes Fred only knows what the hell *that* is. Here's what I'm seeing: ps: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND freenet 2420 0.1 17.3 371788 89364 pts/5 S 15:41 0:00 java -Xmx160M freenet.node.Main top: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command 1169 freenet 9 0 89320 87m 7684 S 0.0 17.3 0:07.01 java ulimit -a: core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) 250000 open files (-n) 1024 pipe size (512 bytes, -p) 8 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 4095 virtual memory (kbytes, -v) 500000 servlet: Maximum memory the JVM will allocate 224 MiB Memory currently allocated by the JVM 83,136 KiB Memory in use 51,676,008 Bytes Estimated memory used by logger None Unused allocated memory 33,453,320 Bytes java -version: java version "1.4.1_03" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03-b02) Java HotSpot(TM) Client VM (build 1.4.1_03-b02, mixed mode) uname -a: Linux griffon 2.4.21 #1 Sat Jun 21 10:20:28 EDT 2003 i686 GNU/Linux My first comment, looking at the servlet stuff, is "Huh?" -- Greg Wooledge | "Truth belongs to everybody." [EMAIL PROTECTED] | - The Red Hot Chili Peppers http://wooledge.org/~greg/ |
pgp00000.pgp
Description: PGP signature
