tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joel badia escolĂ  <>
Subject Problems Increassing -Xmx
Date Mon, 01 Oct 2012 23:07:51 GMT
Hi all,

I'm trying to set up my max heap size in 2Gb but my tomcat
installation ignores me :( . I'm working with GNU/Linux Debian
"Squeeze" (Current Stable), and my tomcat version it's 6. I tried to
modify my /etc/init.d/tomcat6 file adding this (I add some context for
non Debian users):

# Default Java options
# Set java.awt.headless=true if JAVA_OPTS is not set so the
# Xalan XSL transformer can work without X11 display on JDK 1.4+
# It also looks like the default heap size of 64M is not enough for most cases
# so the maximum heap size is set to 128M
if [ -z "$JAVA_OPTS" ]; then
	JAVA_OPTS="-Djava.awt.headless=true -Xmx2000m" <---- RELEVANT

And i tried to modify /usr/share/tomcat6/bin/ like this:

if [ -z "$JPDA_OPTS" ]; then

In two cases i can't obtain favorable results, and it seems that
tomcat ignores me (YES I RESTART THE SERVER) and i get
"java.lang.OutOfMemoryError: Java heap space" error.

Can you help me,


Joel Badia EscolĂ 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message