Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

out of Heap Space

 
Pendurthi prashanth
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

I'm using apache tomcat server. I've run a jsp program which has to insert records into a database. I'm receiving the following error. What is it that I have to do.. to overcome that error?

javax.servlet.ServletException: Java heap space
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658)
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:806)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.HCFA.ADMIN.errreports_jsp._jspService(org.apache.jsp.HCFA.ADMIN.errreports_jsp:231)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


Thanks in advance



P-R-E-S-I
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you memory settings for your server, and have you tried giving it more?
 
Pendurthi prashanth
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...


Thank you David O'Meara. I've found my solution. Did'nt think of server startup settings until now. I was wrestling with the problem during runtime. Now I've found a solution.

Thanks



P-R-E-S-I
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad you worked it out. Thanks for coming back with the solution.

Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic