Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

OutOfMemory with JSF RI, RichFaces, Faclets, and Tomcat  RSS feed

 
Chris Stewart
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's my environment:

JSF RI 1.2
RichFaces 3.2.1
Facelets 1.1.13
Tomcat 6.0.14

The application runs very well for the first few days. Around 7-10 days in, we get an OutOfMemoryError thrown and here's the stack trace:



Has anyone had problems like this? None of the errors point to specific points in the code. I can only imagine there are issues with the libraries we're using and possibly the mix of them working together. Any help is appreciated.
 
Chris Stewart
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone?
 
tapeshwar sharma
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try increasing the memory arguments -Xms and -Xmx (JAVA_OPTS in Catalina.bat or may be a similar place in your version of tomcat)
However, I am feeling that its more likely a memory leak in your application because it runs fine for the 1st 7-10 days.

If you are using Java 1.5/1.6, then you can get the MemoryHeapUsage, Garbage Collection details etc. using java.lang.management.
Alternatively, a profiler like JProfiler will provide a better understanding through utilities like HeapWalker.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!