aspose file tools*
The moose likes Performance and the fly likes java memory usage on linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Performance
Reply locked New topic
Author

java memory usage on linux

Santosh Manjrekar
Greenhorn

Joined: Aug 10, 2004
Posts: 2
Hi,
I have a socket server running on sun solaris which accepts requests and sends back response.It runs fine on solaris and have no performance memory issue. When I run same program on 64 bit linux ,I noticed that this program consumes lot of memory. Even when i start this program on linux and there is no requests,program consumes lot of memory. The java process memory footprint is around 811MB (using pmap command or top -p).
I use jre1.5.0_11 and memory parameters set to -Xms32m -Xmx512m

When I looked at my pmap output, I see lots of annon processes consuming memory I tried to use -XX:InitialCodeCacheSize=# and -XX:ReservedCodeCacheSize=# parameters but it didn't help.

Any help or suggestions are appreciated

Here is the pmap output

0000000040000000 56K r-x-- /bb/util/jre1.5.0_11/bin/java
000000004010d000 12K rw--- /bb/util/jre1.5.0_11/bin/java
0000000040110000 268K rwx-- [ anon ]
0000000040153000 4K ----- [ anon ]
0000000040154000 1024K rwx-- [ anon ]
0000000040254000 4K ----- [ anon ]
0000000040255000 1024K rwx-- [ anon ]
0000000040355000 4K ----- [ anon ]
0000000040356000 1024K rwx-- [ anon ]
0000000040456000 4K ----- [ anon ]
0000000040457000 1024K rwx-- [ anon ]
0000000040557000 4K ----- [ anon ]
0000000040558000 1024K rwx-- [ anon ]
0000000040658000 4K ----- [ anon ]
0000000040659000 1024K rwx-- [ anon ]
0000000040759000 4K ----- [ anon ]
000000004075a000 1024K rwx-- [ anon ]
000000004085a000 4K ----- [ anon ]
000000004085b000 1024K rwx-- [ anon ]
000000004095b000 4K ----- [ anon ]
000000004095c000 1024K rwx-- [ anon ]
0000000040a5c000 12K ----- [ anon ]
0000000040a5f000 1016K rwx-- [ anon ]
0000000040b5d000 12K ----- [ anon ]
0000000040b60000 1016K rwx-- [ anon ]
0000000040c5e000 12K ----- [ anon ]
0000000040c61000 1016K rwx-- [ anon ]
0000000040d5f000 12K ----- [ anon ]
0000000040d62000 1016K rwx-- [ anon ]
0000000040e60000 12K ----- [ anon ]
0000000040e63000 1016K rwx-- [ anon ]
0000000040f61000 12K ----- [ anon ]
0000000040f64000 1016K rwx-- [ anon ]
0000000041062000 12K ----- [ anon ]
0000000041065000 1016K rwx-- [ anon ]
0000000041163000 4K ----- [ anon ]
0000000041164000 1024K rwx-- [ anon ]
0000000041264000 12K ----- [ anon ]
0000000041267000 1016K rwx-- [ anon ]
0000000041365000 12K ----- [ anon ]
0000000041368000 1016K rwx-- [ anon ]
0000000041466000 12K ----- [ anon ]
0000000041469000 1016K rwx-- [ anon ]
0000002a95556000 4K rw--- [ anon ]
0000002a95566000 12K rw--- [ anon ]
0000002a95569000 6992K r-x-- /bb/util/jre1.5.0_11/lib/amd64/server/libjvm.so
0000002a95c3d000 1024K ----- /bb/util/jre1.5.0_11/lib/amd64/server/libjvm.so
0000002a95d3d000 1516K rw--- /bb/util/jre1.5.0_11/lib/amd64/server/libjvm.so
0000002a95eb8000 188K rw--- [ anon ]
0000002a95ee7000 4K r---- [ anon ]
0000002a95ee8000 4K rw--- [ anon ]
0000002a95ee9000 36K r-x-- /bb/util/jre1.5.0_11/lib/amd64/native_threads/libhpi.so
0000002a95ef2000 1020K ----- /bb/util/jre1.5.0_11/lib/amd64/native_threads/libhpi.so
0000002a95ff1000 16K rw--- /bb/util/jre1.5.0_11/lib/amd64/native_threads/libhpi.so
0000002a95ff5000 32K rw-s- /tmp/hsperfdata_op/19421
0000002a96004000 40K r-x-- /lib64/libnss_files-2.3.4.so
0000002a9600e000 1024K ----- /lib64/libnss_files-2.3.4.so
0000002a9610e000 4K r---- /lib64/libnss_files-2.3.4.so
0000002a9610f000 4K rw--- /lib64/libnss_files-2.3.4.so
0000002a96110000 52K r-x-- /bb/util/jre1.5.0_11/lib/amd64/libverify.so
0000002a9611d000 1020K ----- /bb/util/jre1.5.0_11/lib/amd64/libverify.so
0000002a9621c000 12K rw--- /bb/util/jre1.5.0_11/lib/amd64/libverify.so
0000002a9621f000 148K r-x-- /bb/util/jre1.5.0_11/lib/amd64/libjava.so
0000002a96244000 1020K ----- /bb/util/jre1.5.0_11/lib/amd64/libjava.so
0000002a96343000 24K rw--- /bb/util/jre1.5.0_11/lib/amd64/libjava.so
0000002a96349000 60K r-x-- /bb/util/jre1.5.0_11/lib/amd64/libzip.so
0000002a96358000 1028K ----- /bb/util/jre1.5.0_11/lib/amd64/libzip.so
0000002a96459000 16K rw--- /bb/util/jre1.5.0_11/lib/amd64/libzip.so
0000002a9645d000 34920K r--s- /bb/util/jre1.5.0_11/lib/rt.jar
0000002a98677000 420K rw--- [ anon ]
0000002a986e0000 476K r--s- /bb/util/jre1.5.0_11/lib/jsse.jar
0000002a98757000 84K r--s- /bb/util/jre1.5.0_11/lib/jce.jar
0000002a9876c000 8520K r--s- /bb/util/jre1.5.0_11/lib/charsets.jar
0000002a98fbe000 2496K rwx-- [ anon ]
0000002a9922e000 46656K rwx-- [ anon ]
0000002a9bfbe000 40K rwx-- [ anon ]
0000002a9bfc8000 728K rwx-- [ anon ]
0000002a9c080000 21248K rwx-- [ anon ]
0000002a9d540000 64768K rwx-- [ anon ]
0000002aa1480000 21888K rwx-- [ anon ]
0000002aa29e0000 327680K rwx-- [ anon ]
0000002ab69e0000 10880K rwx-- [ anon ]
0000002ab7480000 163840K rwx-- [ anon ]
0000002ac1480000 44K rwx-- [ anon ]
0000002ac148b000 124K rwx-- [ anon ]
0000002ac14aa000 44K rwx-- [ anon ]
0000002ac14b5000 636K rwx-- [ anon ]
0000002ac1554000 24K rwx-- [ anon ]
0000002ac155a000 320K rwx-- [ anon ]
0000002ac15aa000 48K rwx-- [ anon ]
0000002ac15b6000 640K rwx-- [ anon ]
0000002ac1656000 44K rwx-- [ anon ]
0000002ac1661000 124K rwx-- [ anon ]
0000002ac1680000 1184K rw--- [ anon ]
0000002ac17a8000 47392K r---- /usr/lib/locale/locale-archive
0000002ac45f0000 1024K rw--- [ anon ]
0000002ac46f0000 156K r--s- /bb/util/jre1.5.0_11/lib/ext/sunjce_provider.jar
0000002ac4717000 784K r--s- /bb/util/jre1.5.0_11/lib/ext/localedata.jar
0000002ac47db000 8K r--s- /bb/util/jre1.5.0_11/lib/ext/dnsns.jar
0000002ac47dd000 4112K r--s- /bb/mtge/cdi/cmbs/runscript/web/runtime2/cmbs.jar
0000002ac4be1000 348K r--s- /bb/mtge/cdi/cmbs/runscript/web/runtime2/log4j-1.2.9.jar
0000002ac4c38000 1024K rw--- [ anon ]
0000002ac4e00000 1024K rw--- [ anon ]
0000002ac4f00000 76K r-x-- /bb/util/jre1.5.0_11/lib/amd64/libnet.so
0000002ac4f13000 1028K ----- /bb/util/jre1.5.0_11/lib/amd64/libnet.so
0000002ac5014000 12K rw--- /bb/util/jre1.5.0_11/lib/amd64/libnet.so
0000002ac5100000 1020K rw--- [ anon ]
0000002ac51ff000 4K ----- [ anon ]
00000030e8400000 84K r-x-- /lib64/ld-2.3.4.so
00000030e8514000 4K r---- /lib64/ld-2.3.4.so
00000030e8515000 4K rw--- /lib64/ld-2.3.4.so
00000030e8600000 1200K r-x-- /lib64/tls/libc-2.3.4.so
00000030e872c000 1024K ----- /lib64/tls/libc-2.3.4.so
00000030e882c000 12K r---- /lib64/tls/libc-2.3.4.so
00000030e882f000 8K rw--- /lib64/tls/libc-2.3.4.so
00000030e8831000 16K rw--- [ anon ]
00000030e8900000 532K r-x-- /lib64/tls/libm-2.3.4.so
00000030e8985000 1020K ----- /lib64/tls/libm-2.3.4.so
00000030e8a84000 4K r---- /lib64/tls/libm-2.3.4.so
00000030e8a85000 4K rw--- /lib64/tls/libm-2.3.4.so
00000030e8b00000 8K r-x-- /lib64/libdl-2.3.4.so
00000030e8b02000 1020K ----- /lib64/libdl-2.3.4.so
00000030e8c01000 4K r---- /lib64/libdl-2.3.4.so
00000030e8c02000 4K rw--- /lib64/libdl-2.3.4.so
00000030e8f00000 64K r-x-- /lib64/tls/libpthread-2.3.4.so
00000030e8f10000 1020K ----- /lib64/tls/libpthread-2.3.4.so
00000030e900f000 4K r---- /lib64/tls/libpthread-2.3.4.so
00000030e9816000 8K rw--- [ anon ]
0000007fbfe00000 12K ----- [ anon ]
0000007fbfe03000 2036K rwx-- [ stack ]
ffffffffff600000 4K r-x-- [ anon ]
total 811312K
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

This is a duplicate of the same question asked in the Linx/Unix forum.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
jQuery in Action, 2nd edition
 
subject: java memory usage on linux