Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Memory issue in servlet application in a tomcat container

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
i am a newbie in tomcat server and webapplication . we have a simple servlet application running in a tomcat container . which handles more than 10 requests in a sec . in the application we are storing the recieved xml in the server .

the used memory size was gradually inceased upto 11 GB out of 12GB . when i killed all java also the memory used was not released .

28390: /usr/java/jdk1.5.0_06/bin/java -Xms128m -Xmx1536m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/local/tomcat//conf/logging.properties -Djava.endorsed.dirs=/usr/local/tomcat//common/endorsed -classpath :/usr/local/tomcat//bin/bootstrap.jar:/usr/local/tomcat//bin/commons-logging-api.jar -Dcatalina.base=/usr/local/tomcat/ -Dcatalina.home=/usr/local/tomcat/ -Djava.io.tmpdir=/usr/local/tomcat//temp org.apache.catalina.startup.Bootstrap start
Address Kbytes RSS Anon Locked Mode Mapping
00283000 60 - - - r-x-- libresolv-2.5.so
00292000 4 - - - r-x-- libresolv-2.5.so
00293000 4 - - - rwx-- libresolv-2.5.so
00294000 8 - - - rwx-- [ anon ]
009b2000 104 - - - r-x-- ld-2.5.so
009cc000 4 - - - r-x-- ld-2.5.so
009cd000 4 - - - rwx-- ld-2.5.so
009d0000 1268 - - - r-x-- libc-2.5.so
00b0d000 8 - - - r-x-- libc-2.5.so
00b0f000 4 - - - rwx-- libc-2.5.so
00b10000 12 - - - rwx-- [ anon ]
00b15000 8 - - - r-x-- libdl-2.5.so
00b17000 4 - - - r-x-- libdl-2.5.so
00b18000 4 - - - rwx-- libdl-2.5.so
00b1b000 148 - - - r-x-- libm-2.5.so
00b40000 4 - - - r-x-- libm-2.5.so
00b41000 4 - - - rwx-- libm-2.5.so
00b44000 76 - - - r-x-- libpthread-2.5.so
00b57000 4 - - - r-x-- libpthread-2.5.so
00b58000 4 - - - rwx-- libpthread-2.5.so
00b59000 8 - - - rwx-- [ anon ]
00c7f000 76 - - - r-x-- libnsl-2.5.so
00c92000 4 - - - r-x-- libnsl-2.5.so
00c93000 4 - - - rwx-- libnsl-2.5.so
00c94000 8 - - - rwx-- [ anon ]
08048000 60 - - - r-x-- java
08057000 8 - - - rwx-- java
0977a000 14444 - - - rwx-- [ anon ]
47da4000 12 - - - rwx-- [ anon ]
47da7000 504 - - - rwx-- [ anon ]
47e25000 12 - - - rwx-- [ anon ]
47e28000 504 - - - rwx-- [ anon ]
47ea6000 12 - - -
[ anon ]
47ea9000 504 - - - rwx-- [ anon ]
47f27000 12 - - -
[ anon ]
47f2a000 504 - - - rwx-- [ anon ]
47fa8000 12 - - -
[ anon ]
47fab000 504 - - - rwx-- [ anon ]
48029000 12 - - -
[ anon ]
4802c000 504 - - - rwx-- [ anon ]
480aa000 12 - - -
[ anon ]
480ad000 504 - - - rwx-- [ anon ]
4812b000 12 - - -
[ anon ]
4812e000 504 - - - rwx-- [ anon ]
481ac000 12 - - -
[ anon ]
481af000 504 - - - rwx-- [ anon ]
4822d000 12 - - -
[ anon ]
48230000 504 - - - rwx-- [ anon ]
482ae000 12 - - - rwx-- [ anon ]
482b1000 504 - - - rwx-- [ anon ]
4832f000 12 - - -
[ anon ]
48332000 504 - - - rwx-- [ anon ]
4d201000 204 - - - r-xs- catalina-cluster.jar
4d234000 108 - - - r-xs- commons-modeler.jar
4d24f000 8 - - - r-xs- servlets-invoker.jar
4d251000 88 - - - r-xs- tomcat-http.jar
4d267000 164 - - - r-xs- tomcat-ajp.jar
4d290000 24 - - - r-xs- servlets-webdav.jar
4d296000 24 - - - r-xs- catalina-ant-jmx.jar
4d29c000 20 - - - r-xs- tomcat-coyote.jar
4d2a1000 20 - - - r-xs- tomcat-jkstatus-ant.jar
4d2a6000 64 - - - r-xs- catalina-storeconfig.jar
4d2b6000 28 - - - r-xs- catalina-ant.jar
4d2bd000 20 - - - r-xs- servlets-default.jar
4d2c2000 48 - - - r-xs- naming-resources.jar
4d2ce000 52 - - - r-xs- jsp-api.jar
4d2db000 40 - - - r-xs- naming-factory.jar
4d2e5000 76 - - - r-xs- jasper-runtime.jar
4d2f8000 112 - - - r-xs- commons-el.jar
4d314000 96 - - - r-xs- servlet-api.jar
4d32c000 400 - - - r-xs- jasper-compiler.jar
4d390000 152 - - - r-xs- naming-factory-dbcp.jar
4d3b6000 412 - - - r-xs- mysql-connector-java-3.1.10-bin.jar
4d41d000 1188 - - - r-xs- jasper-compiler-jdt.jar
4d546000 40 - - - r-xs- tomcat-i18n-en.jar
4d550000 36 - - - r-xs- tomcat-i18n-es.jar
4d559000 32 - - - r-xs- tomcat-i18n-fr.jar
4d561000 36 - - - r-xs- tomcat-i18n-ja.jar
4d56a000 784 - - - r-xs- localedata.jar
4d62e000 172 - - - r-xs- sunpkcs11.jar
4d659000 152 - - - r-xs- sunjce_provider.jar
4d67f000 4 - - -
[ anon ]
4d680000 1528 - - - rwx-- [ anon ]
4d7fe000 8 - - -
[ anon ]

this is the total java process running in the system . i am not able to identify the process - r-x-- [ anon ] ..( i deleted more anon process as the character exceeds more ) please advise me to find a solution for this ..

thanks
Dhinesh
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please increase the virtual memory of tomcat server. Then the problem will be resolved.
 
Dhinesh Rajendran
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks vamshi for your reply .
presently the virtual memory as in catalina.sh is below

JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx1536m"


still i need to increase the maximum value ? or the mini and max val should be the same . please advise

thanks
Dhinesh
 
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic