| Author |
Need clarification --- Avg. CPU usage data
|
Dwijen Bhattacharjee
Greenhorn
Joined: Mar 31, 2008
Posts: 26
|
|
HI all, I am using Jboss profiler and found my application average CPU usage data As below Screen1 32452 micro second Screen2 35996 micro second so on Now , my questions are 1. How to calculate the % of CPU utilization from the above data.As we used to see in the window task manager. 2. What is industry standard for CPU Utilization.Means whatever I know that If CPU utilization is 100% then it is not good.and It should be as low as possible.But what is the threshold value. Please help. I am very new to JProfiler. so all the thing are not clear to me.
|
 |
Vilmantas Baranauskas
Ranch Hand
Joined: Dec 20, 2006
Posts: 89
|
|
From the point of application, 100% CPU utilization is good and desired. If application has a work to do then I expect it to use 100% CPU to complete the work as fast as possible. This is even more important when you have multiple CPUs and threads. It is best if application loads ALL CPUs 100% to complete work as fast as possible. If application has work but doesn't use CPU 100% then there are other bottlenecks (IO, bad synchronization, etc). E.g. you have a web application running on a server with 2 CPUs. You load-test it with "ab -c 4 -n 1000 http://localhost:8080/myapp/" (4 concurent users, 1000 requests). If your application is implemented correctly it will use 100% of 2 CPUs and process n requests/second. Other application may only use 50% of 2 CPUs and process less requests/second. The second application is implemented wrongly because it doesn't use all available resources. Now, what profiler helps you to do, is to optimize application that it may deliver even more requests per second. Of course, if you have constant number of requests per second, then you will lower CPU usage. Regarding the CPU load on production systems. We try to keep CPU load below 50% on each server in a 2-server-cluster. In this case one server may still process all load if another goes down.
|
Author of <a href="http://www.newsinjector.com" target="_blank" rel="nofollow">NewsInjector</a>
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
Originally posted by Dwijen Bhattacharjee: 1. How to calculate the % of CPU utilization from the above data.As we used to see in the window task manager.
You can't. You simply are missing information.
2. What is industry standard for CPU Utilization.Means whatever I know that If CPU utilization is 100% then it is not good.and It should be as low as possible.But what is the threshold value.
I totally agree with Vilmantas.
|
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
|
 |
 |
|
|
subject: Need clarification --- Avg. CPU usage data
|
|
|