Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exception-type entry in web.xml

 
Shantanu Puranik
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have single web application running in tomcat 5.0.
While generating some report, application is running out of memory.
hence throws exception
java.lang.OutOfMemoryError: Java heap space
I know, this can be solved by increasing JVM memory allocation.
But at first place, I want to avoid the exception being seen by the user.
Hence I, tried out web.xml enrty for the outOfmemory error, still it shows the exception on the screen.



Am I missing any thing?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think, this exception is thrown by your servlet container i.e tomcat , and not by your apps java code .. Hence , I thought your not getting that error page ..

Correct me, If I was wrong somewhere !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic