<br><font size=2 face="sans-serif"><br>
Put a </font><font size=2 face="Arial">Xmx256m</font><font size=2 face="sans-serif"> parameter higher to alow using more memory. Or if you can not increment that amount, then put the xms and the xmx parameter with te same value: This means that the VM will use the hard disk when reaching that amount instead of throwing the out of memory exception.<br>
<br>
------------------------------------------------<br>
Felipe Ramos<br>
Steria Espaņa<br>
Paseo de las Doce Estrellas, 2<br>
Campo de las Naciones<br>
28042 Madrid, Spain<br>
Tel.: 913 939 888<br>
-------------------------------------------------<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>"Rodrigo Baptista" <rbaptista@criticalsoftware.com></b></font>
<br><font size=1 face="sans-serif">Sent by: opencms-dev-bounces@opencms.org</font>
<p><font size=1 face="sans-serif">08/09/2004 18:18</font>
<br><font size=1 face="sans-serif">Please respond to The OpenCms mailing list</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To: <opencms-dev@opencms.org></font>
<br><font size=1 face="sans-serif"> cc: </font>
<br><font size=1 face="sans-serif"> Subject: [opencms-dev] outOfMemoryException OpenCms 5.0.1</font></table>
<br>
<br>
<br><font size=2 face="Arial"> </font>
<p><font size=2 face="Arial">Dear all,</font>
<p><font size=2 face="Arial"> </font>
<p><font size=2 face="Arial">I'm using the photo album, so I'm uploading several pictures to the OpenCms workplace, but when I publish the folder I get a outOfMemoryException. </font>
<p><font size=2 face="Arial"> </font>
<p><font size=2 face="Arial">The folder has 71 pictures each with +/- 500 KB, which gives the folder a size of aprox. 36 MB.</font>
<p><font size=2 face="Arial"> </font>
<p><font size=2 face="Arial"> I'm using JProfiler to see what is happening to the memory (see file in attach ) and it seems the problem is in the CmsDbAcess.readFile method, which gets a size of 98 MB and the byte [] gets up to 90 MB when the server throws the outOfMemoryException.</font>
<p><font size=2 face="Arial"> </font>
<p><font size=2 face="Arial">I want to publish 600 pictures, and the only way to avoid this error is to publish one by one. This is a haste of time and is very buring. I've patched the CmsResourceBroker as mentioned in bugzilla in the bug 274 but the problem still happens.</font>
<p><font size=2 face="Arial"> </font>
<p><font size=2 face="Arial">I'm using:</font>
<p><font size=2 face="Arial">-</font><font size=1 face="Times New Roman"> </font><font size=2 face="Arial">OpenCms 5.0.1</font>
<p><font size=2 face="Arial">-</font><font size=1 face="Times New Roman"> </font><font size=2 face="Arial">JBoss+Jetty 3.0.4</font>
<p><font size=2 face="Arial">-</font><font size=1 face="Times New Roman"> </font><font size=2 face="Arial">MySql 4.0.17</font>
<p><font size=2 face="Arial">-</font><font size=1 face="Times New Roman"> </font><font size=2 face="Arial">512 MB RAM</font>
<p><font size=2 face="Arial">-</font><font size=1 face="Times New Roman"> </font><font size=2 face="Arial">Java VM –Xms128m –Xmx256m</font>
<p><font size=2 face="Arial"> </font>
<p><font size=2 face="Arial">Anyone has an idea how to solve this problem,</font>
<p><font size=2 face="Arial"> </font>
<p><font size=2 face="Arial">Thanks all,</font>
<p><font size=2 face="Arial">Rodrigo</font>
<p><font size=2 color=#b23040 face="Arial"><b> </b></font>
<p><font size=2 color=#b23040 face="Arial"><b>Critical Software SA</b></font>
<p><font size=2 color=#b23040 face="Arial"><b>Parque Industrial de Taveiro, Lote 48</b></font>
<p><font size=2 color=#b23040 face="Arial"><b>3045-504 Coimbra, Portugal</b></font>
<p><font size=2 color=#b23040 face="Arial"><b>Tel: +351.239989100 - Fax: +351.239989119 - Mobile: 965870656 </b></font>
<p><a href=http://www.criticalsoftware.com/><font size=3 color=blue face="Times New Roman"><b><u>http://www.criticalsoftware.com</u></b></font></a><font size=2 color=#b23040 face="Arial"><b> </b></font>
<p><a href=mailto:rbaptista@criticalsoftware.com><font size=3 color=blue face="Times New Roman"><b><u>mailto:rbaptista@criticalsoftware.com</u></b></font></a><font size=2 color=#b23040 face="Arial"><b> </b></font>
<p><font size=3 face="Times New Roman"> </font>
<p><font size=3 face="Times New Roman"><br>
</font><font size=1 color=blue face="Times New Roman"><br>
DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise dissimenate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard-copy version if verification is required. Critical Software.</font><font size=3 face="Times New Roman"><br>
</font><font size=2 face="Courier New"><br>
<br>
_______________________________________________<br>
This mail is send to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
http://mail.opencms.org/mailman/listinfo/opencms-dev</font>
<p>
<p>