File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat: Out Of Memory Exception

 
Adalberto Toledo
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic