Sue,
What are the specs of the machine you are running DSpace on? It's
always good to compare notes... :)
I find that every few months, as our capacity grows, I have to allocate
a few hundred more megabytes to Tomcat. Right now Tomcat's defaults
look like this for us:
JAVA_OPTS="-Djava.awt.headless=true -Xmx768m -Xms768m -XX:MaxPermSize=256m"
Our machine is only 32 bit, and only has 2 gigs of RAM, so I'm starting
to plan for a migration soon. On a semi-related note, I'll also plan to
move to a 64-bit OS and possibly a multi-core system.
Thanks,
Alan
On 10/12/2011 05:35 PM, Thornton, Susan M. (LARC-B702)[LITES] wrote:
I periodically get this error and sometimes stopping and restarting
your web server will at least temporarily solve this problem.
What memory size are you using? We use the following and rarely see
this error anymore:
JAVA_OPTS="-Xms2048m -Xmx3072m -Xss512k -Dfile.encoding=UTF-8"
Hope this helps.
Best regards,
Sue
*/Sue Walker-Thornton/*
*/(757) 864-2368/*
*From:*Lewatle Phaladi [mailto:[email protected]]
*Sent:* Wednesday, October 12, 2011 4:59 AM
*To:* [email protected]
*Subject:* [Dspace-tech] Memory isues on Java
Dear Dspace Team
I have tried increasing memory size in java configuration file but I
still get this error when I want to create image thumbnails, any idea
on what I can do to erase this error for good?
-bash-3.00$ ./dspace filter-media
Exception: Java heap space
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.<init>(DataBufferByte.java:58)
at
java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleModel.java:397)
at java.awt.image.Raster.createWritableRaster(Raster.java:938)
at
javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier.java:1056)
at javax.imageio.ImageReader.getDestination(ImageReader.java:2879)
at
com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:980)
at
com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:948)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at javax.imageio.ImageIO.read(ImageIO.java:1326)
at
org.dspace.app.mediafilter.JPEGFilter.getDestinationStream(JPEGFilter.java:67)
at
org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:737)
at
org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:561)
at
org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:511)
at
org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:479)
at
org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:414)
at
org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:333)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
-bash-3.00$
Regards,
Lewatle
This communication is intended for the addressee only. It is
confidential. If you have received this communication in error, please
notify us immediately and destroy the original message. You may not
copy or disseminate this communication without the permission of the
University. Only authorized signatories are competent to enter into
agreements on behalf of the University and recipients are thus advised
that the content of this message may not be legally binding on the
University and may contain the personal views and opinions of the
author, which are not necessarily the views and opinions of The
University of the Witwatersrand, Johannesburg. All agreements between
the University and outsiders are subject to South African Law unless
the University agrees in writing to the contrary.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
--
Alan Orth
[email protected]
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my wish
has come true because I can no longer figure out how to use my telephone." -Bjarne
Stroustrup, inventor of C++
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech