Page 1 of 1

Open KM 5.1.7 is slow and getting hang when getting used!

PostPosted:Thu Sep 29, 2011 12:36 pm
by raths
Hi all

I'm using open KM for past one week. When i add more users and allow them access from different computers , Its getting very slow and getting Hanged up . And I'm getting the following error . And when i try to restart the server I'm getting the following error as show in screenshot . So i have to give force close and again run run.bat its getting fine . and when more than one user tries to log in and upload some 3 to 4 files , its getting the same problem. Can any one help on this ?

Error log :
Code: Select all
17:20:46,525 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 

51s:425ms
17:23:21,627 WARN  [ExecutionUtils] Abnormal program termination: 1
17:50:20,718 ERROR [Http11Protocol] Error reading request, ignored
java.lang.OutOfMemoryError: PermGen space
17:42:10,118 ERROR [Http11Protocol] Error reading request, ignored
java.lang.OutOfMemoryError: PermGen space
17:36:44,796 ERROR [Http11Protocol] Error reading request, ignored
java.lang.OutOfMemoryError: PermGen space
17:32:25,580 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: PermGen space
17:32:04,846 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: PermGen space

Re: Open KM 5.1.7 is slow and getting hang when getting used

PostPosted:Sun Oct 02, 2011 11:26 am
by jllort
open the run.sh file ( linux script ) , look first lines JAVA_OPT set the same variables in run.bat file

How among of memory do you got on that server, put here your cpu, disk, OS version etc... do you have more apps installed there ?

Re: Open KM 5.1.7 is slow and getting hang when getting used

PostPosted:Sun Oct 02, 2011 5:15 pm
by pavila
raths wrote:17:50:20,718 ERROR [Http11Protocol] Error reading request, ignored
java.lang.OutOfMemoryError: PermGen space
Take a look at http://wiki.openkm.com/index.php/Troubl ... Gen_errors.

Re: Open KM 5.1.7 is slow and getting hang when getting used

PostPosted:Mon Oct 03, 2011 10:04 pm
by raths
Hi

As per your advice I changed the run.bat file to

from

rem JVM memory allocation pool parameters. Modify as appropriate.
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m

to

rem JVM memory allocation pool parameters. Modify as appropriate.
set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m

after changing if click the run.bat i'm getting error as show in screen-shot

i have
Microsoft windows server 2003
Enterprise edition
Service pack 2

Computer :
Intel Core 2 duo cpu
E7500 @ 2.93 Ghz
3.9 GB RAM

Hard disk :
only C drive with total size 74.2 GB with free space of 43.9 GB space

Could any advice how to resolve this ?

Regards
Rathnavel

Re: Open KM 5.1.7 is slow and getting hang when getting used

PostPosted:Tue Oct 04, 2011 6:20 am
by jllort
Try with it:
Code: Select all
set JAVA_OPTS="-Xms256m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m -Djava.awt.headless=true"
Seems this older computer with few memory. Next release will have tomcat support and the actual jboss memory need will not be necessary.

Re: Open KM 5.1.7 is slow and getting hang when getting used

PostPosted:Tue Oct 04, 2011 9:34 pm
by raths
Hi jillort ..

I'm just curious to know how you are setting the value for JAVA_OPTS ? does it depends on CPU configuration ? If so my configuration is
Intel Core 2 duo cpu
E7500 @ 2.93 Ghz
3.9 GB RAM..

For the above configuration , what is the optimum value for JAVA_OPTS ?

When will the next release will come with that TOMCAT support ?

Regards
Raths

Re: Open KM 5.1.7 is slow and getting hang when getting used

PostPosted:Fri Oct 07, 2011 6:47 pm
by jllort
Depends of your available memory in this case you could increase to -Xmx2048m, 2GB used by application server and other 2GB for OS

Re: Open KM 5.1.7 is slow and getting hang when getting used

PostPosted:Sat Oct 15, 2011 8:06 am
by raths
Hi jllort,

Do you know how to install and configure jRockit as JVM and point to JAVA_HOME variable to the JVM path ?

I read the forum http://forum.openkm.com/viewtopic.php?f=4&t=3908 .
But i'm not able to proceed how to configure this tool after downloading it . do you have any idea ? If so can you help me ?

Regards
Rathnavel

Re: Open KM 5.1.7 is slow and getting hang when getting used

PostPosted:Sat Oct 15, 2011 6:23 pm
by jllort
I've never installed jRockit as JVM you should use java jdk 1.6 is version what we've tested and we can ensure all goes fine.