Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346362 - HTTP error 500 from OutOfMemoryError using help.eclipse.org
Summary: HTTP error 500 from OutOfMemoryError using help.eclipse.org
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Website (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: phoenix.ui CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 354297
  Show dependency tree
 
Reported: 2011-05-18 22:51 EDT by Nitin Dahyabhai CLA
Modified: 2011-08-09 15:49 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin Dahyabhai CLA 2011-05-18 22:51:41 EDT
Any attempt to load the navigation pane seems to instead just generate an OOME.


HTTP ERROR 500

Problem accessing /help/index.jsp. Reason:

    INTERNAL_SERVER_ERROR
Caused by:

java.lang.OutOfMemoryError
	at java.util.zip.ZipEntry.initFields(Native Method)
	at java.util.zip.ZipEntry.<init>(ZipEntry.java:117)
	at java.util.zip.ZipFile$3.nextElement(ZipFile.java:488)
	at java.util.zip.ZipFile$3.nextElement(ZipFile.java:466)
	at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.getEntryPaths(ZipBundleFile.java:276)
	at org.eclipse.osgi.baseadaptor.BaseData.getEntryPaths(BaseData.java:124)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.findLocalEntryPaths(AbstractBundle.java:1454)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.findEntries(AbstractBundle.java:1393)
	at org.eclipse.equinox.jsp.jasper.JspServlet$ServletContextAdaptor.getResource(JspServlet.java:172)
	at org.apache.jasper.JspCompilationContext.getResource(JspCompilationContext.java:274)
	at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:362)
	at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:332)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:560)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet.java:112)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:76)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:318)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:924)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Comment 1 Eclipse Webmaster CLA 2011-05-19 09:25:01 EDT
I've restarted the help service.

-M.
Comment 2 Martin Oberhuber CLA 2011-08-09 10:41:16 EDT
It's down again.

You should consider increasing VM Size as per bug 310809 comment 2 and maybe enabling a heap dump to analyze what's taking up all the memory...
Comment 3 Eclipse Webmaster CLA 2011-08-09 11:01:59 EDT
Here's the current startup options:

-Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError 

If you'd like to help decipher the 110M heap file I'm more than willing to send a copy along.

In the mean time I've restarted the help service.

-M.
Comment 4 Denis Roy CLA 2011-08-09 11:06:23 EDT
When a server app struggles to serve static web pages with 1G of RAM allocated to it, that has to be a bug, right?  Should we move this to platform/ua?
Comment 5 Martin Oberhuber CLA 2011-08-09 11:42:08 EDT
Yep, that's just what I was about to suggest ... clone a bug into platform UA that it takes too much mem. ZIP and upload your heap dump to a place where it's accessible. 

Using Eclipse Memory Analyzer (MAT) it should be pretty straightforward to see what's taking up all the mem ... download the http://eclipse.org/mat/ RCP, then load the heapdump, within 10 minutes you should have a first impression.
Comment 6 Eclipse Webmaster CLA 2011-08-09 15:39:50 EDT
I tried to use MAT to open the heap dump but it throws the following:

Error opening heap dump 'heapdump.20110809.080814.31640.0008.phd'. Check the error log for further details.
Not a HPROF heap dump (java.io.IOException)
Not a HPROF heap dump

I'll clone this bug and attach the dump.

-M.