• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java Heap Space in Tomcat 5

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings Ranchers,

I would like to kindly ask how to avoid, or eliminate Java Heap Space Error in Apache Tomcat 5.5. And if it is unavoidable is there a way to detect it early, or is there a way to redirect all the session and transaction in other tomcat instance.

Thank you very much in advance for your help!
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on what's causing it.

If your app has a memory leak, then the leak will need to be fixed.
If not, it could just be that your app requires more heap space than the 64M default for Java. In this case, all you need to do is increase the heap size when starting Tocmat.

How did you install Tomcat and how do you start Tomcat?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

And if it is unavoidable is there a way to detect it early,



The "management" application lets you watch Tomcat memory and Thread use among other things. I use it with the HTML interface daily to see what my server is doing.

See the manager documentation.

Bill
 
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic