You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Dave Newton (JIRA)" <ji...@apache.org> on 2009/06/07 20:40:42 UTC

[jira] Commented: (STR-3187) Java.Lang.OutOfMemoryError while posting huge data with enctype="multipart/form-data"

    [ https://issues.apache.org/struts/browse/STR-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46349#action_46349 ] 

Dave Newton commented on STR-3187:
----------------------------------

> I have more than 1000 hidden fields in this jsp.

Why?!

> Java.Lang.OutOfMemoryError while posting huge data with enctype="multipart/form-data" 
> --------------------------------------------------------------------------------------
>
>                 Key: STR-3187
>                 URL: https://issues.apache.org/struts/browse/STR-3187
>             Project: Struts 1
>          Issue Type: Bug
>         Environment: Tomcat 5.0, JDK 1.4.2_09, SQLServer 2000, Struts 1.1, Spring 1.2.4, Commons-fileupload.jar 1.0 
>            Reporter: Samba siva Rao
>
> 1: I am getting java.lang.OutOfMemoryError when the form in my jsp code is as below. 
> <html:form action="/actnMpng" enctype="multipart/form-data" method ="post" > 
> - JSP code ? containing very huge data (hidden parameters) with file upload attachment facility (<html:file/>). 
> </html:form> 
> This is throwing OutOfMemoryError eventhough I am not attaching/uploading any files.
> I have more than 1000 hidden fields in this jsp.
> When i check the used memory in my action class, i came to know that nearly 200 MB memory is utilizing on each action submit from this jsp (i have more actions / buttons in this form in different tabs).
> 2:*** The same data is getting posted successfully if the form is submitted with out 
> enctype="multipart/form-data" and without providing the attachment facility. (by removing <html:file/> tags)
> 3: I am facing this problem only when my form is containing more hidden parameters to post.
> Where as when my form is  containg less fields (which are dynamic), then i am not facing this problem eventhough my form is with enctype="multipart/form-data"
> Please find the below log generated in Tomcat.
> 2009-06-02 16:51:42 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
> java.lang.OutOfMemoryError
> plese let me know if anybody came across this problem. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.