1 Reply Latest reply: Apr 28, 2011 8:13 AM by Wolf-Dieter Fink RSS

java.lang.OutOfMemoryError while uploading heavy file.

P18Mar ch ;) Newbie

Whenever I upload a zip file around 200 mb (extracted 1 GB) file from a jsf than I get This message

I already changed

heap size to 512MB and MAX perm SIze to 1024MB in run.bat as well run_debug.bat file in jboss,

 

 

 

 

 

java.lang.OutOfMemoryError

java.io.FileInputStream.readBytes(Native Method)

java.io.FileInputStream.read(FileInputStream.java:177)

org.apache.myfaces.custom.fileupload.UploadedFileDefaultMemoryImpl.<init>(UploadedFileDefaultMemoryImpl.java:43)

org.apache.myfaces.custom.fileupload.HtmlFileUploadRenderer.decode(HtmlFileUploadRenderer.java:162)

javax.faces.component.UIComponentBase.decode(UIComponentBase.java:503)

javax.faces.component.UIInput.decode(UIInput.java:224)

javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:609)

javax.faces.component.UIInput.processDecodes(UIInput.java:154)

javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:605)

javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:605)

javax.faces.component.UIForm.processDecodes(UIForm.java:56)

javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:605)

javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:605)

javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:138)

org.ajax4jsf.component.AjaxViewRoot.access$001(AjaxViewRoot.java:57)

org.ajax4jsf.component.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:260)

org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)

org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:170)

org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:276)

org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java:32)

org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)

org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)

javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)

org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)

org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)

com.bursys.baaja.basis.filter.LoginFilter.doFilter(LoginFilter.java:146)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)