I have had this exact problem while running on windows.  After switching
to linux I ran into it again and fixed it with the following command:

Export CATALINA_OPTS=-Xms1025m -Xmx1024m -XX:MaxPermSize=512m

Honestly, I do not know what Xms and Xmx really stand for or what their
purpose is.  My best guess is that it increases the minimum and maximum
memory pool of java catalina can use.  The MaxPermSize option fixed the
PermGen out of memory errors for me.

Adjust the numbers as you see fit.

Matt Henry

On 2/9/12 9:42 AM, "Alexandre Magaz Graça" <alexandre.ma...@udl.cat> wrote:

>Al 09/02/12 13:37, En/na Gabriel Dina ha escrit:
>> Dear all,
>>
>> We found in our DSpace installation (XMLUI) that JAVA uses a lot of
>> memory for just a few items added in DSpace.
>>
>> Also, from time to time DSpace freeze the tomcat process and we have to
>> kill it.
>>
>> Do you have some suggestions about this issues?
>>
>> [...]
>
>Hello Gabriel,
>
>We're also having memory problems with DSpace. Although we have
>increased Java heap space up to 1 GB it still ends up running out of
>memory.
>
>Which DSpace version do you have? Do you see a trace like the one bellow
>in DSpace logs when your Tomcat freezes?
>
>ERROR org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter @ Serious
>Error Occurred Processing Request!
>javax.servlet.ServletException: Servlet execution threw an exception
>         at 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>onFilterChain.java:313)
>         at 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>Chain.java:206)
>         at 
>org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter.doFilter(SetCharact
>erEncodingFilter.java:111)
>         [...]
>Caused by: java.lang.OutOfMemoryError: Java heap space
>         at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
>         at java.nio.ByteBuffer.allocate(ByteBuffer.java:329)
>         at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:194)
>         [...]
>
>Cheers,
>Àlex
>
>--------------------------------------------------------------------------
>----
>Virtualization & Cloud Management Using Capacity Planning
>Cloud computing makes use of virtualization - but cloud computing
>also focuses on allowing computing to be delivered as a service.
>http://www.accelacomm.com/jaw/sfnl/114/51521223/
>_______________________________________________
>DSpace-tech mailing list
>DSpace-tech@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/dspace-tech
>



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to