Title: RE: [JBoss-user] [Persistence & CMP/JBoss] - create CMP with large amount of data (file content)

What is your -Xmx value set to when starting up Jboss. You might need to increase the value.

Find the following line "rem set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m" in the run.bat and remove the rem at the front.

There should be an equivalent in the run.sh

Ricardo


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of yura22
Sent: 08 April 2004 13:33
To: [EMAIL PROTECTED]
Subject: [JBoss-user] [Persistence & CMP/JBoss] - create CMP with large
amount of data (file content)


When I trying create a CMP bean that have a field with big amount of data
JBoss throw OutOfMemoryError.
My application has a possibility to upload files. When file size less 1Mb uploaded all is fine. But when you try upload bigger file then OutOfMemoryError thrown.

I am using JBoss 3.2.3 and Postgres 7.4


  | public abstract class DocBean implements EntityBean {
  |     public java.lang.Integer ejbCreate(Doc doc) throws javax.ejb.CreateException {
  |         try {
  |             // ...
  |             setContent(doc.getContent());
  |             // ...
  |         } catch (Exception e) {
  |             //...
  |         }
  |
  |         return null;
  |     }
  |     public abstract byte[] getContent();
  |     public abstract void setContent(byte[] value);
  |
  | }
  |

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829781#3829781

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829781


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
__________________________________________________________________________
· This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to which they are addressed.

· Any unauthorized copying, disclosure, or distribution of the material within
this email is strictly forbidden.

· Any views or opinions presented within this e-mail are solely those of the
author and do not necessarily represent those of Odyssey Asset Management
Systems SA unless otherwise specifically stated.

· An electronic message is not binding on its sender.  Any message referring to
a binding engagement must be confirmed in writing and duly signed.

· If you have received this email in error, please notify the sender immediately
and delete the original.

Reply via email to