title: Constant dspace error java.lang.OutOfMemoryError: Java heap space
body: <p>I have a DSpace server, after uprading from version 4.3 to 5.1, it constantly stops working after some hours with following error:</p>
  
  <blockquote>
    <p>java.lang.OutOfMemoryError: Java heap space</p>
  </blockquote>
  
  <p>I've read answers to the same questions, but they didn't help me.</p>
  
  <p>My JAVA_OPTS: <code>-Xmx4096M -Xms4096M -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8</code></p>
  
  <p>Here are my logs:</p>
  
  <ul>
  <li>dspace.log.2015-04-21: <a href="http://jpst.it/ylU4" rel="nofollow">http://jpst.it/ylU4</a></li>
  <li>tomcat7-stderr.2015-04-20.log: <a href="http://jpst.it/ylTN" rel="nofollow">http://jpst.it/ylTN</a></li>
  <li>localhost_access_log.2015-04-20.txt: <a href="http://jpst.it/ylTT" rel="nofollow">http://jpst.it/ylTT</a></li>
  </ul>
  
  <p>I searched the internet for a solution and could not find one, does any one have a clue?</p>