Visit Our UNIX and Linux User Community


CPU Usage


 
Thread Tools Search this Thread
Operating Systems HP-UX CPU Usage
# 1  
Old 06-22-2012
CPU Usage

Hi Experts,

We encountered problem in one of the production system where some processes were taking higher CPU and after some time it came back to normal..

From system prespective, is there any way to check why processes took more cpu during that particular period.
# 2  
Old 06-22-2012
What processes are you talking about?
To see why is to be monitoring constantly... without more information from you it will be difficult to answer...
# 3  
Old 06-22-2012
Quote:
Originally Posted by sai_2507
From system prespective, is there any way to check why processes took more cpu during that particular period.
From system perspective, no. It's not psychic. Only the process itself "knows" what it's actually doing.
# 4  
Old 06-22-2012
Maybe you can try tusc.
tusc-8.1(1)
# 5  
Old 06-23-2012
There is nothing wrong with processes using CPU Smilie

Problem is, if your machine is constantly using 100% of CPU (you should have atleast 5% for system).

In general, you need to find out what is being ran @ that time you saw a spike of CPU usage (database layer if db is used).

The tools for developers are : tusc, gdb and execution plans (db)
The tools for system folks are : sar, lsof, iostat, vmstat, glance

I would like to emphasize sar here, as a most useful tool (at least for me) for constant monitoring on HPUX systems. Have it run in cron collecting data all the time.

Something like :
Code:
0       *       *       *       *       /usr/lbin/sa/sa1 300 12

Be sure to inspect the /usr/lbin/sa/sa1 script and select where you want the actual log (/var/adm/sa being default)

Then you will be able to inspect the files generated using sar -A -f /var/admsa/sadate
Check man sar for additional switches, there is plenty for everything.

There is also free software which will enable you to draw graphs from those files, or use awk to draw some conclusions.


Regards
Peasant.
# 6  
Old 06-23-2012
And first of all, is there a problem and why/how?
# 7  
Old 06-25-2012
Thanks all for the reply. As per your feedbacks I have sent along the ouput of sar command to them.

However my higher management is asking the reason for sudden spike in cpu usage,so wanted to check if that can be checked from system side (i.e why process took higher cpu during that particular time) or it should be checked from application team...

Previous Thread | Next Thread
Test Your Knowledge in Computers #641
Difficulty: Medium
NeXTSTEP had a Unix operating system based on the Minix kernel, plus source code from System V.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

Overall CPU Usage

Hi Guys, I am a newbie on the forum. This is my first post, so first of all I would like to introduce myself. I am a SAS Analyst programmer working for an Health Insurance client. SAS is installed on a 16 CPU AIX Server with partitions running with shared processor. I have couple of... (2 Replies)
Discussion started by: saurabhiim2003
2 Replies

2. Programming

CPU usage

Hi all, I'm using python and psutil a library to get system informations like cpu usage (percent) for a given process. My question is if I have the value in % of the cpu usage how I could get the cpu usage in cycle number I mean not in percent? Thanks a lot D. (5 Replies)
Discussion started by: Dedalus
5 Replies

3. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

4. Solaris

Multi CPU Solaris system shows 100% CPU usage.

Hello Friends, On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization. ========================================================================= $ prstat -a ... (4 Replies)
Discussion started by: mahive
4 Replies

5. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

6. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

7. Programming

Cpu usage

Hi all, When I have a below while loop in my code (This observation is same for C and Perl) i= 0; while(1) { i++; } for above the CPU uses goes beyond 49% on hp-ux machine, why cpu usage increase at this level for just a simple while loop? and if I have a single print statement... (2 Replies)
Discussion started by: zing_foru
2 Replies

8. UNIX for Advanced & Expert Users

Cpu Usage

System FreeBSD. Issue: I see that system idle = 0% in the same time top and other commands show that all process eat 0% of cpu. System calls 98% CPU states: 7.9% user, 0.0% nice, 91.8% system,<==!!! But top does not show any process which eats more than 0% Question: how can I see... (0 Replies)
Discussion started by: mirusnet
0 Replies

9. Programming

CPU usage and memory usage

Please tell me solaris functions/api for getting following information 1- Function that tells how much memory used by current process 2- Function that tells how much memory used by all running processes 3- Function that tells how much CPU is used by current process 4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

10. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies

Featured Tech Videos