Dspace java.lang.OutOfMemoryError constant error: Java heap space

I have a DSpace server after fixing it from 4.3 to 5.1, it constantly stops working after a few hours with the following error:

java.lang.OutOfMemoryError: Java heap space

I read the answers to the same questions but it didn't work for me.

My JAVA_OPTS: -Xmx4096M -Xms4096M -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8

Here are my logs:

I searched internet for a solution and couldn't find it, does anyone have a clue?


source to share

1 answer

Your tomcat log file makes it clear enough that it does not use JAVA_OPTS where you go through:

INFO: Command line argument: -Xmx256m

In my experience, DSpace 5 requires at least 512MB; your 4GB looks a little over the top if your DSpace is not very large / gets a lot of traffic.

You don't tell us which operating system you are using, so it is difficult to give advice on how to install them correctly. Start by running your tomcat script and / or tomcat config files. In my Red Hat Enterprise Linux 6.6 (with tomcat6) blocks, the correct place for memory settings is /etc/tomcat6/tomcat6.conf




All Articles