Service Desk Practitioners Forum
cancel

Java.exe taking high CPU utilization

Highlighted
Smitha Sajeev
Super Contributor.

Java.exe taking high CPU utilization

Hi there,

In servicedesk application server Java.exe is taking high CPU UTILIZATION. Because of this issue servicedesk and servicepages performance is very bad. To reduce the Cpu utilization what all steps I've to follow?
Pls. advice.

Regards,
Smitha.
11 REPLIES
Ruth Porter
Acclaimed Contributor.

Re: Java.exe taking high CPU utilization

Hi there,

First thing I would check is the log files. Then see if you can increase the amount of memory available for java - you do thus by amending the .BAT file to the larger memory settings.

Hope this helps

Ruth
http://www.teamultra.net
Smitha Sajeev
Super Contributor.

Re: Java.exe taking high CPU utilization

Hi there,

I've set JAVA_OPTS= -server -Xms256m -Xmx256m -XX:PermSize=128m
-XX:MaxPermSize=128m

IN CATALINA.BAT FILE

Regards,
Smitha
Ruth Porter
Acclaimed Contributor.

Re: Java.exe taking high CPU utilization

Hi there,

Check sd_server.bat as well.

Regards

Ruth
http://www.teamultra.net
Ashly A K
Acclaimed Contributor.

Re: Java.exe taking high CPU utilization

hi!
Does the cpu util goes down when u stop the app server ?(i think ur answer must be yes)
pls see the below and hope trying to answer them will guide u what to do.

what is the RAM in the server ?
have you configured the page files ?
which version of java ur using ?
what is the SD Patch level ?
have u fine tuned the sd_server.bat or installservice.bat ?
Is there any ohter java apps running?
Have you opend the Java console and checked ?
http://www.geocities.com/helponhpopenview
Smitha Sajeev
Super Contributor.

Re: Java.exe taking high CPU utilization

Hi there,

I'm attaching server.bat and installservice.bat files along with this.

* CPU utilization goes down when stop tom cat service.
* Server RAM- 2GB.
* Regarding Page files C:\ and E:\ has been configured.
inital size :2048 mb
Max size : 2048 mb
* D:\ is not configured; service desk application is installed in D:\.
* Only SD agent, App server and tom cat is running on the server.

Regards,
Smitha.

Smitha Sajeev
Super Contributor.

Re: Java.exe taking high CPU utilization

Hi there,

We are using SD Service Pack 9 and jdk1.3.1_03.

Smitha.
Akies
Outstanding Contributor.

Re: Java.exe taking high CPU utilization

Hi smitha,

You can change the configurations in installservice.bat file as follows:

@ECHO OFF
rem The argument DEFAULT means that the jvm.dll file ( the java runtime library ) is found by looking in the registry.
rem If you want to use another library, change the DEFAULT to the complete filename ( thus including folder ) of the jvm.dll file.
rem use this options when you have memory problems
sd_serverservice.exe -install "hp OpenView service desk 4.5 server" DEFAULT -XX:MaxNewSize=64M -XX:NewSize=64M -Xms200M -Xmx1000M -Djava.class.path="%SD_SERVERHOME%lib\classloader.jar" "-Duser.dir=%SD_SERVERHOME%\" -start com.hp.startup.Bootstrap -params com.hp.ifc.bus.AppServer -stop com.hp.startup.Bootstrap -method shutdown -params com.hp.ifc.bus.AppServer -current "%SD_SERVERHOME%\"
rem sd_serverservice.exe -install "hp OpenView service desk 4.5 server" DEFAULT -Djava.class.path="%SD_SERVERHOME%lib\classloader.jar" "-Duser.dir=%SD_SERVERHOME%\" -start com.hp.startup.Bootstrap -params com.hp.ifc.bus.AppServer -stop com.hp.startup.Bootstrap -method shutdown -params com.hp.ifc.bus.AppServer -current "%SD_SERVERHOME%\"
echo .
if "%1"=="" pause


Then run reinstallservice.bat file.

Try for the CPU utilization now..

Regards,
Akhil
Smitha Sajeev
Super Contributor.

Re: Java.exe taking high CPU utilization

Hi Akhil,

I've updated the installservice.bat as you said. Now I'm observing the CPU utilization.

Thanks,
Smitha.
Smitha Sajeev
Super Contributor.

Re: Java.exe taking high CPU utilization

Hi there,

After changing the intallservice.bat also still the CPU utilization remains high.

We are using SD SP9. If I want to go for new releases what all steps i've to follow?

Pls. advice.

Regards,
Smitha.
Akies
Outstanding Contributor.

Re: Java.exe taking high CPU utilization

Hi smitha,

Please check the situation,as when the performance goes high?
hw many clients are connected?
hw many scheduled tasks are there in queue?


Regards,
Akhil
Smitha Sajeev
Super Contributor.

Re: Java.exe taking high CPU utilization

Hi Akhil,

During high CPU utilization there are only 25 service desk client users and around 20 service page users.Also NNM is integrated with SD. I've given Java Xms and Xmx as 256M and maxnewsize and newsize as 128M both in SD and in Service pages. Since we are having only 2GB RAM in the server.

Regards,
Smitha