Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to increase the Xmx in Tomcat 4.1.27?

 
sreenivas kup
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Apache 2.0/Tomcat (4.1.27) is throwing OutOfMemoryException when I am trying to export large data to excel. I use my custom Servlet for this purpose on a 1 GB RAM Linux box. I didn't get this kind of problem with Tomcat 3. I don't know how to increase the Xmx.

Could you plz help me to sorting out this problem?

Thanks,
Sreenivas
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look in catalina.sh. There are notes in there on setting $JAVA_OPTS. You can set various -x parameters using $JAVA_OPTS
 
satish sathineni
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

U can Increase the JAVA_OPTS value in the Catalina.sh for linux box
Catalina.bat for win box

Open the respective file in the respective text editors

Modify JAVA_OPTS variable value

for Linux Box
export JAVA_OPTS = Xmx256m /// for 256 MB or what ever ur requirement is

for Windows Box
set JAVA_OPTS = Xmx256m


Satish Kumar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic