tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Burkhardt <...@imparisystems.com>
Subject Memory question
Date Wed, 23 Jul 2008 21:00:54 GMT
Okay - I've gone ahead, uninstalled the distro from Ubuntu, installed
Tomcat 6.0.16 and I'm having problems running out of memory.  My
catalina.out file contains the lines

        at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.OutOfMemoryError: Java heap space
 
and the application says it needs 512MB, I have 1GB on the server and it
says that you can use up to 70% of the memory before it gets starved.
So I edited the /etc/environment contents and ended up with this

more /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
ANT_HOME="/usr/share/ant"
JAVA_HOME="/usr/lib/jvm/java-6-sun"
JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true -Xms512M -Xmx512M
-XX:PermSize=256M -XX:MaxPermSize=256M

and I rebooted the machine, but I'm still getting the error.  I don't
know how to check and see if it took the arguments correctly, but when I
look at http://myserver:8080/manager/status I see

JVM

Free memory: 23.34 MB Total memory: 63.56 MB Max memory: 63.56 MB

What am I doing wrong?


Matt Burkhardt, MSTM
President
Impari Systems, Inc.
401 Rosemont Avenue
Frederick, MD  21701
mlb@imparisystems.com
www.imparisystems.com
(301) 644-3911



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message