Dear team,
I'm trying to install dspace 5.1 on Ubuntu server LTS 14.4.01 64bit.
I used apt-get command to install OpenJDK 7, Tomcat, postgresql, mvn, ant.
The version of OpenJDK and Tomcat: OpenJDK 7u75, Tomcat 7.0.52.0
My problem is: I always got problem when deploying rest.
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2271)
at
java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
at
java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
at
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
at java.util.jar.JarInputStream.getBytes(JarInputStream.java:113)
at
java.util.jar.JarInputStream.checkManifest(JarInputStream.java:94)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:86)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:62)
If I remove rest from webappst, everything was ok. I can access web
interface, login and perform all administration tasks (there is only 1 issue
in jspui: The recently added item doesn't appear)
I did some research and found that: This problem happens when the server
doesn't have enough memory (describer in parameter: Xmx) for Tomcat to
deploy 1 application. But my server is 8Gb of memory and I tried many ways
to setup Tomcat option to increase Xms, Xmx, MaxPermSize.. Below are some
commands that I tested:
Export TOMCAT_OPTS="-Xms6144M -Xmx6144M -XX:MaxPermSize=512M"
Export JAVA_OPTS="-Xms6144M -Xmx6144M -XX:MaxPermSize=512M"
export CATALINA_OPTS="-Xms6144M -Xmx6144M -XX:MaxPermSize=512M"
I don't know why REST application requires so much memory like that and I
really want to know how much memory is enough for REST. From the wiki, high
end dspace system only requires 8Gb:
https://wiki.duraspace.org/display/DSPACE/EndUserFaq#EndUserFaq-Whatsortofha
rdwaredoesDSpacerequire%3FWhataboutsizingtheserver%3FHowmuchdiskspacedoIneed
%3F
Could someone help me on this?
I really appreciate your help.
Thanks,
Phong
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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