• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Process consuming high cpu utilisation  RSS feed

 
jaya kemmannu
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

When I execute top command in RHEL i see that java process is consuming 700% CPU. Can anyone tell me what are the possible chances causing this much high utilisation.

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
6 ? 11689 root 152 20 3347M 1729M run 30827:35 775.7 774.35 java


OS : RHEL
Application server JBOSS 4.2.2
Database : ORacle10g

Regards,
Joy
 
harshvardhan ojha
Ranch Hand
Posts: 157
1
Android Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jaya, this might be due to computations or initialization that you are doing in your application. Monitor behavior of program over an extended period of time using jvisualvm, and see if your GC is running periodically and keeping your app stable.

Usage of more CPU shouldn't be only determining factor for you, as we design applications to use max CPU cycle and do work concurrently.
 
jaya kemmannu
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Harsha,

Once I restart j boss server my application run smoothly for a week with utilization approx %CPU = 50%. But after week i see continuous increase in this value. Can you give idea on how to use jvisualvm in HP-UX server.

Regards,
Joy
 
harshvardhan ojha
Ranch Hand
Posts: 157
1
Android Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaya, you need to open the jmx port on jboss server and you are done
Also this doesn't seem to be a problem until you are facing issue with your heap and full GC.

If CPU utilization is increasing, look into your connections or any resource which is not cleaned up in your app. Again if heap is not a problem for you, you can be sure that you are on right track.
 
jaya kemmannu
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Harsha,

Are you talking about oracle db connection used in our application. I observed through jmx console In one of the stand alone module oracle connection are not handled properly. I have allocated total 100 connection for that module but in jmx console "Available connection count" keep on reducing.


Regards,
Jaya

 
harshvardhan ojha
Ranch Hand
Posts: 157
1
Android Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If connections count are dereasing and you dont have open connections, then its not a problem. or you can use maxActive connections. See if this helps you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!