I'm having a problem with TomCat 8.5 và Dspace 5.3, as described below:
When restart tomcat, DSpace run stable in the range of 1 to 2 hours. And then, suddenly crashes without an error message .
- Check Task manager shows tomcat running with high cpu usage, more than 80% (view attached image)
- Check the log files in folders Tomcat8.5 \ logs with the following contents (view attachments)
Stop/start Tomcat, the situation happened the same.
My server.xml's content:
...
<Connector port="80" protocol="HTTP/1.1" URIEncoding="UTF-8"
connectionTimeout="20000"
redirectPort="8443" />
...
<Context path="" docBase="E:/Dspace_data/dspace/webapps/jspui" debug="0" reloadable="true" cachingAllowed="false" allowLinking="true"/>
<Context path="/oai" docBase="E:/Dspace_data/dspace/webapps/oai" debug="0" reloadable="true" cachingAllowed="false" allowLinking="true"/>
<Context path="/mobile" docBase="E:/Dspace_data/dspace/webapps/xmlui" debug="0" reloadable="true" cachingAllowed="false" allowLinking="true"/>
<Context path="/solr" docBase="E:/Dspace_data/dspace/webapps/solr" debug="0" reloadable="true" cachingAllowed="false" allowLinking="true"/>
..."
After Dspace was crashed, I set a setenv.bat in c:\Program Files\Apache Software Foundation\Tomcat 8.5\bin\ with content:
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 -Xms2048m -Xmx2048m -XX:MaxPermSize=512m"
And,
I modified context.txt file in C:\Program Files\Apache Software Foundation\Tomcat 8.5\conf with content:
"...
<Context crossContext="true" sessionCookiePath="/">
<!-- Default set of monitored resources. If one of these changes, the -->
<!-- web application will be reloaded. -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<Resources cachingAllowed="true" cacheMaxSize="300000" />
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
</Context>
..."
And, Stop/Start Tomcat, the situation above occurs again.
Please help me!