• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Tomcat: Out Of Memory Exception

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a problem, I'm using Tomcat 7.0.4 in JDK 1.6.0.22 web server to deploy my web application.

The problem after a day my tomcat says: "OutOfMemoryException: Java Heap Space", and the memory that I assigned is 500 MB in JAVA_OPTS and CATALINA_OPTS environments variables.

I'm using the Nio Protocol in my application because I need some comet procedures.

My server is ubuntu 10.04 LTS
 
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
If this was my problem I would be using the Tomcat management app to monitor Thread and memory use. Perhaps you will be able to see a pattern emerge.

For example, you might see some request threads that never complete a request.

Bill
reply
    Bookmark Topic Watch Topic
  • New Topic