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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to increase the Xmx in Tomcat 4.1.27?

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?

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

U can Increase the JAVA_OPTS value in the 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
She's brilliant. She can see what can be and is not limited to what is. And she knows this tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic