Matt:

This is something that I have been struggling with for a long time.  Going to 
DSpace 1.8.2 and tomcat 7 seemed to help for a while.   One thing that I found 
that caused Java heap space errors was the solar statistics button on the 
Community, Collection and Item pages.  This isn't a problem on our test 
machine, but only affects our production machine, so I am assuming that it is 
somehow threshold related.  We have a lot of records with a lot of downloads.  
So, I removed the statistics buttons from the JSP pages and that solved a lot 
of our problems, but now I seem to have a problem every Friday night and I need 
to reboot tomcat.

My current setup for java heap is: 
JAVA_OPTS="-server -Xms1024m -Xmx2048m -Xmn64m -Dfile.encoding=UTF-8 
-XX:+UseParallelGC -verbose:gc -Xloggc:/dspace/dspace/log/gc.log 
-XX:+HeapDumpOnOutOfMemoryError -XX:PermSize=1024m -XX:MaxPermSize=1024m 
-XX:-UseGCOverheadLimit"

So, I expect that I will have to up my memory usage.  I think this is a 
creeping problem and I am not sure if this is fixed in DSpace 3.2 or 4.1.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
218 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924

-----Original Message-----
From: Matthew Sherman [mailto:[email protected]] 
Sent: Tuesday, March 25, 2014 3:06 PM
To: dspace-tech
Subject: [Dspace-tech] Java Heap Space Problems

Hi all,

I was hoping some one can give some insight to a problem we are having.  We are 
running DSpace 1.8 and every couple of weeks we end up having to reboot the 
Tomcat because it crashes due to a Java heap space error.  We have been trying 
to correct it since the beginning of the year by incrementally increasing the 
memory assigned to Java.  By now we are at half the server memory, roughly 2 
GB, assigned to Java and while it is taking longer we still are having to 
reboot due to heap space errors.  We are not sure what the issue is and we are 
at loss as to how to fix it because throwing more memory at it is not fixing 
the problem.  I would welcome any thoughts, suggestions, or advice on how to 
fix this.  Thanks for your time and insights.

Matt Sherman

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the 
definitive new guide to graph databases and their applications. Written by 
three acclaimed leaders in the field, this first edition is now available. 
Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to