Posting to the group, since I believe a solution has been found.

It appears that my issue was something like a buffer overrun in the jsp.
A solution that we are testing is the following code snippet:

<%@ page buffer="1024kb" autoFlush="false" %>

The current size might be a little overkill but, my issue seems to have
vanished.

Thanks goes to my co-worker you pointed me in this direction.  Thanks,
also to the great support from this mailing list.

Mike

-----Original Message-----
From: Forsberg, Mike 
Sent: Friday, May 18, 2007 2:06 PM
To: user@struts.apache.org
Subject: OOM Error (Java heap space) from 1800+ form elements, am I
doing something wrong?

A form of approximately 1800 form elements is causing
"java.lang.OutOfMemoryError: Java heap space".  When 1000 form elements
are used, no such error.

The environment:
- JBoss 4.0.5
- Struts 1.1
- A jsp page using struts <html:form> tags to start and end the form
block.  Then inside the form, xslt is used to parse a 300 element xml
document into 6 input tags per element.

What seems to be happening, the reset method for the form bean is
called. Then before any set methods are called, the OOME is thrown.

Any help would be appreciated.

Mike Forsberg
Software Engineer II
APM - APC
T 512.602.0220




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to