Tomcat 8.5.5 high cpu usage and Dspace 5.3 hang up

754 views
Skip to first unread message

Le Duong

unread,
Oct 4, 2016, 4:02:52 AM10/4/16
to DSpace Technical Support

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!

cpu_high_usage.png
catalina.2016-10-04.log

Le Duong

unread,
Oct 4, 2016, 4:13:29 AM10/4/16
to DSpace Technical Support

additional information:

OS:Windows server 2012 Standar Edition 64 bit  (Virtual Server)
Processor: Intel(R) Xeon(R) E5-2650 v2@ 2.60GHz

Dspace v5.3
Java7: JDK1.7.0_80
Tomcat 8.55
Posgesql 9.3


Alan Orth

unread,
Oct 5, 2016, 1:47:56 AM10/5/16
to Le Duong, DSpace Technical Support
Hi,

I'd recommend trying again with Tomcat 7 and Java 8. DSpace 5.x has
some issues with Tomcat 8[0], and Java 8 is highly recommended by the
Solr project[1] (which DSpace relies on heavily). Also, Java 7 has
been end of life for a while now[2]. This would be a much more sane
base configuration.

Regards,

[0] https://jira.duraspace.org/browse/DS-3092
[1] https://wiki.apache.org/solr/ShawnHeisey
[2] https://java.com/en/download/faq/java_7.xml
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech...@googlegroups.com.
> To post to this group, send email to dspac...@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.



--
Alan Orth
alan...@gmail.com
https://englishbulgaria.net
https://alaninkenya.org
https://mjanja.ch
"In heaven all the interesting people are missing." ―Friedrich Nietzsche
GPG public key ID: 0x8cb0d0acb5cd81ec209c6cdfbd1a0e09c2f836c0
Message has been deleted

Le Duong

unread,
Oct 11, 2016, 4:49:26 AM10/11/16
to DSpace Technical Support, lhd...@gmail.com
Hi, Alan Orth!

I removed Tomcat 8.5.5 and Java 1.7.0_80 ,and installed Tomcat 8.0.37 and Java 1.8.0_102. 
And now, My Dspace's running good.

Thanks you so much!


----------

Vào 12:47:56 UTC+7 Thứ Tư, ngày 05 tháng 10 năm 2016, Alan Orth đã viết:

Alan Orth

unread,
Oct 14, 2016, 7:17:47 PM10/14/16
to Le Duong, DSpace Technical Support
Hah, for the record I said to use Tomcat 7, but glad your DSpace is
working better. :)
Reply all
Reply to author
Forward
0 new messages