Page 1 of 1

Updating Tomcat & ehcache + change from standard config

PostPosted:Sun May 22, 2016 9:36 am
by gwaitsi
Just wanted to share a note in case it can help someone.

I have 6.3.1 community installed on OMV (NAS) box - Debian wheezy based.
I originally installed using the standard packaged tomcat install.
I had previously standard libreoffice 3.3x and tessaract working with doc previews.
I wanted to create a more standard install i.e. moved the logs to var/log/openkm and was having issues with high cpu utilization of openkm.
after trying to solve the high cpu utilization issue, i concluded i needed at least tomcat 7.0.63 to get a new parameter.

here is what i upgrade;
LibreOffice 4.4.x - with backports
MySQL 5.5.49
Tomcat 7.0.69
Tomcat Native 1.1.34
hyperic-sigar-1.6.4
javax.mail-1.5.5
mysql-connector-java-5.1.39-bin
java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-2~deb7u1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

After doing all of the above updates, i was receiving a jodconverter error with bad links and couldn't preview office docs
After removing the openkm.war file and upgrading ehcache to ehcache-core-2.4.8 the jodconverter was working again

The only issue i have now is, my log is still full of the warning below.
Code: Select all
WARN  net.sf.ehcache.hibernate.AbstractEhcacheRegionFactory- Couldn't find a specific ehcache configuration for cache named [org.hibernate.cache.StandardQueryCache]; using defaults.
and i am also getting two logs, which seem duplicates
catalina.out - none rotated
catalina.log - rotated

otherwise, all is good

Re: Updating Tomcat & ehcache + change from standard config

PostPosted:Sat May 28, 2016 9:05 am
by jllort
Thanks for your feedback. Seems the problems of high cpu usage was caused for older tomcat version ?

Re: Updating Tomcat & ehcache + change from standard config

PostPosted:Sat May 28, 2016 9:53 am
by pavila
This log message is only a warning. You don't have to worry about it.

Re: Updating Tomcat & ehcache + change from standard config

PostPosted:Mon May 30, 2016 2:46 am
by gwaitsi
Hi jllort,

i tried MaxSpareThreads based on the this to get my cpu down.
http://www.coderanch.com/t/86515/Tomcat ... -cpu-usage

i got the message, this was only from 7.0.63 onwards, which is what triggered me to move the /usr/share/openkm from local and to move the logs to /var/log/openkm. in the process, i decided to try also updating to the tomcat.

I have just checked my config, and don't have the maxsparethreads in there.
But i don't have the cpu issues any more and my system is working the best it ever has. So i can't be sure which one of these it was that solved the root
Tomcat 7.0.69
Tomcat Native 1.1.34
hyperic-sigar-1.6.4
but i can say, i spent over a day trying to get libreoffice preview working again after upgrading and as soon as i updated to
ehcache-core-2.4.8 it was working again.

Re: Updating Tomcat & ehcache + change from standard config

PostPosted:Tue May 31, 2016 2:02 pm
by jllort
What can provide best profiling is tomcat native? About the post seems and old post and old tomcat version affected 5.5