Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
kalpesh bhavsar
Error500 : java.lang.OutofMemoryException
June 27, 2013 11:37 PM
Answer

kalpesh bhavsar

Rank: New Member

Posts: 1

Join Date: December 17, 2012

Recent Posts

Getting "java.lang.OutofMemoryException" While uploading a big size video ( 500MB )

  1
  2[6/27/13 12:21:14:154 GMT+05:30] 000000d4 srt           W com.ibm.ws.webcontaine                                                                             r.srt.SRTServletResponse addHeader WARNING: Cannot set header. Response already                                                                              committed.
  3[6/27/13 12:21:14:323 GMT+05:30] 000000d4 srt           W com.ibm.ws.webcontaine                                                                             r.srt.SRTServletResponse addHeader WARNING: Cannot set header. Response already                                                                              committed.
  4[6/27/13 12:22:42:908 GMT+05:30] 000000d4 servlet       E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet CSRVideoGalleryForm Servlet in application CSRVideoGalleryForm-portlet. Exception created : java.lang.OutOfMemoryError
  5        at com.ivb.csr.video.portlet.CSRVideoLibPortlet.processAction(CSRVideoLibPortlet.java:85)
  6        at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
  7        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
  8        at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
  9        at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
 10        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)
 11        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)
 12        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
 13        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 14        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 15        at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
 16        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
 17        at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
 18        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
 19        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)
 20        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
 21        at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
 22        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:673)
 23        at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)
 24        at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:579)
 25        at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:294)
 26        at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:944)
 27        at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:688)
 28        at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
 29        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 30        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 31        at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
 32        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 33        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 34        at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
 35        at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
 36        at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
 37        at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
 38        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)
 39        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)
 40        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
 41        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 42        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 43        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 44        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 45        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 46        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 47        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 48        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 49        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 50        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 51        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 52        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 53        at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
 54        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
 55        at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
 56        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
 57        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)
 58        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
 59        at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
 60        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:341)
 61        at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
 62        at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
 63        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)
 64        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)
 65        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
 66        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 67        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 68        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 69        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 70        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 71        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 72        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 73        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 74        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 75        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 76        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 77        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 78        at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
 79        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 80        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 81        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 82        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 83        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 84        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 85        at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:56)
 86        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 87        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 88        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 89        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 90        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:253)
 91        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 92        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 93        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 94        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 95        at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
 96        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 97        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 98        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 99        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
100        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
101        at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
102        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
103        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
104        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
105        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
106        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
107        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
108        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
109        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
110        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
111        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
112        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
113        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
114        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
115        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
116        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
117        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
118        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
119        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
120        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
121        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
122        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
123        at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
124        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
125        at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
126        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
127        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)
128        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
129        at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
130        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
131        at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
132        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
133        at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
134        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
135        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
136        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
137        at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
138        at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
139        at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
140        at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
141        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
142        at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
143        at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
144        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
145        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
146
147[6/27/13 12:22:43:085 GMT+05:30] 000000d4 FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_25312531_13.06.27_12.22.43.0502815798474421299445.txt com.ibm.ws.webcontainer.servlet.ServletInstance.service 290
148[6/27/13 12:22:43:171 GMT+05:30] 000000d4 SystemOut     O http://192.168.2.47:9080/liferay/web/CSR/home
149[6/27/13 12:22:43:535 GMT+05:30] 00000027 srt           W com.ibm.ws.webcontainer.srt.SRTServletResponse setHeader WARNING: Cannot set header. Response already committed.
150[6/27/13 12:22:43:536 GMT+05:30] 000000a7 srt           W com.ibm.ws.webcontainer.srt.SRTServletResponse setHeader WARNING: Cannot set header. Response already committed.
151[6/27/13 12:22:43:947 GMT+05:30] 000000a7 srt           W com.ibm.ws.webcontainer.srt.SRTServletResponse setHeader WARNING: Cannot set header. Response already committed.
152[6/27/13 12:22:43:999 GMT+05:30] 00000027 srt           W com.ibm.ws.webcontainer.srt.SRTServletResponse setHeader WARNING: Cannot set header. Response already committed.
153[6/27/13 12:22:44:004 GMT+05:30] 000000a8 srt           W com.ibm.ws.webcontainer.srt.SRTServletResponse setHeader WARNING: Cannot set header. Response already committed.
Juan Gonzalez
RE: Error500 : java.lang.OutofMemoryException
June 28, 2013 1:15 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1847

Join Date: October 28, 2008

Recent Posts

This would probably be an issue with your custom portlet. Check your source to check how you deal with uploaded files (for example, better storing in a File instead of memory).
Tonu Sri
RE: Error500 : java.lang.OutofMemoryException
June 29, 2013 12:12 AM
Answer

Tonu Sri

Rank: Regular Member

Posts: 188

Join Date: April 15, 2011

Recent Posts

Hi Kalpesh,

It seems that your custom portlet CSRVideoLibPortlet's processAction method is responsible for that.

Please check that method and find the issue.

Thanks:
Tonu
Girish kumar
RE: Error500 : java.lang.OutofMemoryException
July 2, 2013 2:45 AM
Answer

Girish kumar

Rank: Junior Member

Posts: 27

Join Date: June 16, 2013

Recent Posts

kalpesh bhavsar:
Getting "java.lang.OutofMemoryException" While uploading a big size video ( 500MB )



This occurs due to the in sufficient memory allocated to your java application.

Increase your heap size and perm gen size,This may solve your issue.
Juan Gonzalez
RE: Error500 : java.lang.OutofMemoryException
July 2, 2013 3:36 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1847

Join Date: October 28, 2008

Recent Posts

Solution for those OutOfMemory are NOT always increasing the heap. More investigation is needed to find the real issue.