Java Webapp: strange memory statistics -
Java Webapp: strange memory statistics -
i'm running java web application(j2ee+tomcat6+struts2+hibernate) on linux centos machine. problem "top" command says java using 14% of memory(out of 8g) in summary info section, says overall free memory 300m! (just mem, not swap)
pid user pr ni virt res shr s %cpu %mem time+ swap time code info nflt command 666 root 20 0 1352m 1.2g 10m s 7.6 14.7 663:00.37 158m 663:00 36 1.3g 65 java 3170 mysql 18 0 145m 33m 5044 s 0.7 0.4 753:51.96 111m 753:51 6496 132m 100 mysqld 17340 root 15 0 2332 1080 800 r 0.3 0.0 0:00.05 1252 0:00 56 468 0 top 1 root 15 0 2068 628 536 s 0.0 0.0 0:02.58 1440 0:02 32 280 20 init 2 root rt -5 0 0 0 s 0.0 0.0 0:00.18 0 0:00 0 0 0 migration/0 3 root 34 19 0 0 0 s 0.0 0.0 0:00.00 0 0:00 0 0 0 ksoftirqd/0 4 root rt -5 0 0 0 s 0.0 0.0 0:00.00 0 0:00 0 0 0 watchdog/0 5 root rt -5 0 0 0 s 0.0 0.0 0:00.01 0 0:00 0 0 0 migration/1 6 root 34 19 0 0 0 s 0.0 0.0 0:00.00 0 0:00 0 0 0 ksoftirqd/1 7 root rt -5 0 0 0 s 0.0 0.0 0:00.00 0 0:00 0 0 0 watchdog/1 8 root rt -5 0 0 0 s 0.0 0.0 0:00.01 0 0:00 0 0 0 migration/2 . . . , on... mem: 8300688k total, 7998720k used, 301968k free, 52452k buffers swap: 16779884k total, 60k used, 16779824k free, 6511228k cached
what problem? using memory covertly? non-heap or what?! buddies.
6511228k cached
means ~6.5gb of ram used os caching.
java memory-leaks memory-management
Comments
Post a Comment