<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C495C7.D543AFF0">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;
        mso-font-charset:2;
        mso-generic-font-family:auto;
        mso-font-pitch:variable;
        mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:536871559 0 0 0 415 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:620458372;
        mso-list-type:hybrid;
        mso-list-template-ids:-614037700 841747890 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Arial;
        mso-fareast-font-family:"Times New Roman";}
@list l1
        {mso-list-id:1031032319;
        mso-list-type:hybrid;
        mso-list-template-ids:-241942728 841747890 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:54.0pt;
        mso-level-number-position:left;
        margin-left:54.0pt;
        text-indent:-18.0pt;
        font-family:Arial;
        mso-fareast-font-family:"Times New Roman";}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:36.0pt'>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=PT style='font-size:10.0pt;
font-family:Arial;mso-ansi-language:PT'>Dear all,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=PT style='font-size:10.0pt;
font-family:Arial;mso-ansi-language:PT'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’m using the photo album, so I’m uploading
several pictures to the <span class=SpellE>OpenCms</span> workplace, but when I
publish the folder I get <span class=GramE>a</span> <span class=SpellE>outOfMemoryException</span>.
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The folder has 71 pictures each with +/- 500 KB, which gives
the folder a size of <span class=SpellE>aprox</span>. 36 MB.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><span style='mso-spacerun:yes'> </span>I’m using <span
class=SpellE>JProfiler</span> to see what is happening to the memory (see file
in <span class=GramE>attach )</span> and it seems the problem is in the <span
class=SpellE>CmsDbAcess.readFile</span> method, which gets a size of 98 MB and
the byte [] gets up to 90 MB when the server throws the <span class=SpellE>outOfMemoryException</span>.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family: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 <span
class=SpellE>buring</span>. I’ve patched the <span class=SpellE>CmsResourceBroker</span>
as mentioned in <span class=SpellE>bugzilla</span> in the bug 274 but the
problem still happens.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’m using:<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt;mso-list:l1 level1 lfo2;
tab-stops:list 54.0pt'><![if !supportLists]><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;mso-fareast-font-family:Arial'><span
style='mso-list:Ignore'>-<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>         
</span></font></span></span></font><![endif]><span class=SpellE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>OpenCms</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> 5.0.1<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt;mso-list:l1 level1 lfo2;
tab-stops:list 54.0pt'><![if !supportLists]><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;mso-fareast-font-family:Arial'><span
style='mso-list:Ignore'>-<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>         
</span></font></span></span></font><![endif]><span class=SpellE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>JBoss+Jetty</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> 3.0.4<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt;mso-list:l1 level1 lfo2;
tab-stops:list 54.0pt'><![if !supportLists]><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;mso-fareast-font-family:Arial'><span
style='mso-list:Ignore'>-<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>         
</span></font></span></span></font><![endif]><span class=SpellE><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>MySql</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> 4.0.17<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt;mso-list:l1 level1 lfo2;
tab-stops:list 54.0pt'><![if !supportLists]><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;mso-fareast-font-family:Arial'><span
style='mso-list:Ignore'>-<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>         
</span></font></span></span></font><![endif]><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>512 MB RAM<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt;mso-list:l1 level1 lfo2;
tab-stops:list 54.0pt'><![if !supportLists]><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;mso-fareast-font-family:Arial'><span
style='mso-list:Ignore'>-<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>         
</span></font></span></span></font><![endif]><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Java VM –Xms128m –Xmx256m<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Anyone has an idea how to solve this problem,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks all,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Rodrigo<o:p></o:p></span></font></p>

<p><b><font size=2 color="#b23040" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#B23040;font-weight:bold;mso-no-proof:yes'><o:p> </o:p></span></font></b></p>

<p><b><font size=2 color="#b23040" face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:#B23040;font-weight:bold;mso-no-proof:yes'>Critical
Software SA</span></font></b><b><font size=2 color="#b23040" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#B23040;font-weight:bold;
mso-no-proof:yes'><o:p></o:p></span></font></b></p>

<p><b><font size=2 color="#b23040" face=Arial><span lang=PT style='font-size:
10.0pt;font-family:Arial;color:#B23040;mso-ansi-language:PT;font-weight:bold;
mso-no-proof:yes'>Parque Industrial de Taveiro, Lote 48</span></font></b><b><font
size=2 color="#b23040" face=Verdana><span lang=PT style='font-size:10.0pt;
font-family:Verdana;color:#B23040;mso-ansi-language:PT;font-weight:bold;
mso-no-proof:yes'><o:p></o:p></span></font></b></p>

<p><b><font size=2 color="#b23040" face=Arial><span lang=PT style='font-size:
10.0pt;font-family:Arial;color:#B23040;mso-ansi-language:PT;font-weight:bold;
mso-no-proof:yes'>3045-504 Coimbra, Portugal</span></font></b><b><font size=2
color="#b23040" face=Verdana><span lang=PT style='font-size:10.0pt;font-family:
Verdana;color:#B23040;mso-ansi-language:PT;font-weight:bold;mso-no-proof:yes'><o:p></o:p></span></font></b></p>

<p><b><font size=2 color="#b23040" face=Arial><span lang=PT style='font-size:
10.0pt;font-family:Arial;color:#B23040;mso-ansi-language:PT;font-weight:bold;
mso-no-proof:yes'>Tel: +351.239989100 - Fax: +351.239989119 - Mobile: 965870656
</span></font></b><b><font size=2 color="#b23040" face=Verdana><span lang=PT
style='font-size:10.0pt;font-family:Verdana;color:#B23040;mso-ansi-language:
PT;font-weight:bold;mso-no-proof:yes'><o:p></o:p></span></font></b></p>

<p><b><font size=2 color="#b23040" face=Verdana><span lang=PT style='font-size:
10.0pt;font-family:Verdana;color:#B23040;mso-ansi-language:PT;font-weight:bold;
mso-no-proof:yes'><a href="http://www.criticalsoftware.com/"><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>http://www.criticalsoftware.com</span></font></a></span></font></b><b><font
size=2 color="#b23040" face=Arial><span lang=PT style='font-size:10.0pt;
font-family:Arial;color:#B23040;mso-ansi-language:PT;font-weight:bold;
mso-no-proof:yes'> </span></font></b><b><font size=2 color="#b23040"
face=Verdana><span lang=PT style='font-size:10.0pt;font-family:Verdana;
color:#B23040;mso-ansi-language:PT;font-weight:bold;mso-no-proof:yes'><o:p></o:p></span></font></b></p>

<p><b><font size=2 color="#b23040" face=Verdana><span lang=PT style='font-size:
10.0pt;font-family:Verdana;color:#B23040;mso-ansi-language:PT;font-weight:bold;
mso-no-proof:yes'><a href="mailto:rbaptista@criticalsoftware.com"><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>mailto:rbaptista@criticalsoftware.com</span></font></a></span></font></b><b><font
size=2 color="#b23040" face=Arial><span lang=PT style='font-size:10.0pt;
font-family:Arial;color:#B23040;mso-ansi-language:PT;font-weight:bold;
mso-no-proof:yes'> </span></font></b><font size=2><span lang=PT
style='font-size:10.0pt;mso-ansi-language:PT;mso-no-proof:yes'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=PT
style='font-size:12.0pt;mso-ansi-language:PT'><o:p> </o:p></span></font></p>

</div>

<br><br><Font size="1" color="#0000ff">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><br><br>
</body>

</html>