Page 1 of 1

java memory usage

PostPosted:Tue May 26, 2015 6:23 pm
by gwaitsi
I have an OMV NAS running OpenKM with 4GB memory.

the command below is showing up as using 35% of my memory and 3% CPU in the process list - all the time
/usr/lib/jvm/java-7-openjdk-amd64/bin/java -Dnop -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms256m -Xmx1256m -XX:PermSize=256m -XX:MaxPermSize=512m /Djava.awt.........

Is this correct, or does something seem wrong that it is using so much memory?
I am basically using as a single user document system.

gracias

Re: java memory usage

PostPosted:Wed May 27, 2015 8:43 am
by jllort
When you start tomcat, automatically are reserving the memory for its process, if you set 2GB automatically should reserve this amount of memory. Application by default consume between 1,2 - 1,5 GB depending of OpenKM version. Is normal you get it used after started application.

Re: java memory usage

PostPosted:Fri May 29, 2015 3:20 am
by gwaitsi
Hi jilort,

ok thanks. so memory usage is consistent with what you said.

but i am also seeing 25-30% CPU utilisation from the same java line, even when the application is idle with no users.
MySQL is showing only 0.4% utilisation in ideal but has not only openkm.

any ideas please?

Re: java memory usage

PostPosted:Fri May 29, 2015 5:55 pm
by jllort
Take in mind that this application is working in background, not only while users are logged. There are batch processes, for example indexing and others, specially when you start application are several process that are immediately load and take some time to be finished, etc. OpenKM is not the typical web page, is something more like a service up on your server what obviously does response by web, but also does something more. For example each 5 minutes are executed extraction queue, that can cause 100% usage on a single CPU, etc.