File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes out of Heap Space Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "out of Heap Space" Watch "out of Heap Space" New topic
Author

out of Heap Space

Pendurthi prashanth
Greenhorn

Joined: Sep 13, 2005
Posts: 15
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

Joined: Mar 06, 2001
Posts: 13459

What are you memory settings for your server, and have you tried giving it more?
Pendurthi prashanth
Greenhorn

Joined: Sep 13, 2005
Posts: 15
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

Joined: Mar 06, 2001
Posts: 13459

Glad you worked it out. Thanks for coming back with the solution.

Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: out of Heap Space