Sponsored Content
Full Discussion: Process going to 100% CPU
Operating Systems HP-UX Process going to 100% CPU Post 302878254 by chacko193 on Thursday 5th of December 2013 08:35:50 AM
Old 12-05-2013
Process going to 100% CPU

I have a httpd process which uses up 100% cpu. This makes my application to stop working and it just gets hung.

I tried getting the tusc output looks something like this:
Code:
# /usr/local/bin/tusc -pl 26516
( Attached to process 26516 ("/opt/hpws22/apache/bin/httpd -d /opt/hpws22/apache -k start") [64-bit] )
[26516]{579822} ksleep(PTH_CONDVAR_OBJECT, 0x6000000000177090, 0x6000000000347640, NULL) .............. [sleeping]
[26516]{579821} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579820} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579819} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579818} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579817} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579816} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579815} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579814} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579813} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579812} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579811} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579810} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579809} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579808} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579807} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579806} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579805} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579804} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579803} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579802} In user-mode .......................................................................... [running]
[26516]{579801} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579800} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579799} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579798} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579797} ksleep(PTH_MUTEX_OBJECT, 0x6000000000027df8, 0x6000000000347140, NULL) ................ [sleeping]
[26516]{579795} read(8, 0x9fffffffffff7080, 1) ........................................................ [sleeping]
( Detaching from process 26516 ("/opt/hpws22/apache/bin/httpd -d /opt/hpws22/apache -k start") )

I am using HP-UX B.11.31 and my apache version is B.2.2.15.15.
Any idea how can I proceed further on my analysis?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

process -> 1 cpu

Is there a way I can assign processes to different processors? I know in windows xp you can set process affinity, and wondered if there is a *nix equivelant. (2 Replies)
Discussion started by: Solitare
2 Replies

2. UNIX for Dummies Questions & Answers

process not using enough cpu

I am running solaris 9 on a SUn 480r. It is running SAS statistical software, these processes in full flow normally run at about 50-60% cpu (theres nothing else really running on the box) this is fine, and the SAS jobs get run nice and quick. However over the last few weeks everytime a SAS job is... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

3. Solaris

How to find which process is using up too much CPU

Hi, I need to find which processes are hogging the cpu up. please advise. Thanks (1 Reply)
Discussion started by: 0ktalmagik
1 Replies

4. UNIX for Advanced & Expert Users

how to bind a process to a CPU

Hi all please can any body please suggest me how to bind a process to a particular CPU on unix machine. i have a unix machine with 2 CPUs and i wanna have my process running on CPU 0. please suggest. (11 Replies)
Discussion started by: Raom
11 Replies

5. AIX

cpu utilization of a process

Hi, How can i find out the average cpu utilization of a particular long-running process in AIX? is there some command for this Thanks (2 Replies)
Discussion started by: iam
2 Replies

6. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

hi, i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies

7. 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

8. UNIX for Dummies Questions & Answers

100% cpu process

hi guys you know we got an issue and my support line is linux I need to make sure my linux is OK...now the issue I have this process db2sysc reaching 10% CPU utilization yeah that's a DB2 process my DB guys wants to make sure linux is not the culprit but I have no idea the situation is... (3 Replies)
Discussion started by: karlochacon
3 Replies

9. Red Hat

Process by CPU

Hello All, I am preparing a script to capture the processes consuming more CPU. So is there any way that i can sort & redirect to file only those processes consuming more than 5.0 % using ps command itself. Regards Ankit (3 Replies)
Discussion started by: ajaincv
3 Replies

10. Emergency UNIX and Linux Support

CPU and memory utilization of a process, by process name

Can someone please help me with a script that will help in identifying the CPU & memory usage by a process name, rather than a process id.This is to primarily analyze the consumption of resources, for performance tweaking. G (4 Replies)
Discussion started by: ggayathri
4 Replies
TM::Coverage(3pm)					User Contributed Perl Documentation					 TM::Coverage(3pm)

NAME
TM::Coverage - Topic Maps, Code Coverage DESCRIPTION
This auxiliary package keeps track of the code coverage. Probably quite irrelevant for a user. Automatically generated for TM (1.44). ---------------------------- ------ ------ ------ ------ ------ ------ ------ File stmt bran cond sub pod time total ---------------------------- ------ ------ ------ ------ ------ ------ ------ blib/lib/TM.pm 96.4 84.5 58.0 93.7 90.6 27.5 89.6 blib/lib/TM/Analysis.pm 100.0 90.9 n/a 100.0 100.0 0.0 97.5 blib/lib/TM/AsTMa/Fact.pm 100.0 n/a n/a 100.0 n/a 0.0 100.0 blib/lib/TM/AsTMa/Fact2.pm 100.0 n/a n/a 100.0 n/a 0.0 100.0 blib/lib/TM/Bulk.pm 76.8 71.4 62.5 85.7 100.0 0.0 75.3 blib/lib/TM/CTM/CParser.pm 65.6 34.3 31.0 84.6 0.0 1.6 52.5 blib/lib/TM/CTM/Parser.pm 90.9 50.0 n/a 100.0 0.0 0.0 79.4 blib/lib/TM/DM.pm 100.0 65.0 66.7 100.0 n/a 0.0 96.5 blib/lib/TM/Graph.pm 99.1 88.5 n/a 100.0 100.0 0.0 97.4 blib/lib/TM/Index.pm 100.0 80.0 60.0 100.0 83.3 0.3 87.8 .../Index/Characteristics.pm 100.0 100.0 n/a 100.0 0.0 0.0 97.0 blib/lib/TM/Index/Match.pm 98.5 87.5 n/a 100.0 100.0 0.5 97.6 blib/lib/TM/LTM/CParser.pm 84.9 45.3 42.7 98.2 0.0 0.2 67.8 blib/lib/TM/LTM/Parser.pm 95.7 62.5 50.0 100.0 0.0 0.0 87.1 blib/lib/TM/Literal.pm 45.8 0.0 11.8 30.0 0.0 0.4 24.2 blib/lib/TM/MapSphere.pm 96.5 84.6 68.8 100.0 100.0 0.0 91.7 .../TM/Materialized/AsTMa.pm 100.0 n/a n/a 100.0 0.0 0.0 95.5 ...ib/TM/Materialized/LTM.pm 100.0 n/a n/a 100.0 0.0 0.0 95.5 .../TM/Materialized/MLDBM.pm 100.0 83.3 n/a 100.0 0.0 0.0 92.6 ...b/TM/Materialized/Null.pm 100.0 n/a n/a 100.0 n/a 0.0 100.0 ...TM/Materialized/Stream.pm 100.0 100.0 100.0 100.0 0.0 0.0 96.0 ...ib/TM/Materialized/XTM.pm 100.0 n/a n/a 100.0 0.0 0.0 96.7 blib/lib/TM/PSI.pm 100.0 n/a n/a 100.0 n/a 0.0 100.0 blib/lib/TM/QL.pm 91.4 61.5 66.7 100.0 50.0 0.1 83.9 blib/lib/TM/QL/CParser.pm 76.2 42.4 41.9 90.3 0.0 9.1 62.0 blib/lib/TM/QL/PE.pm 83.8 77.3 80.0 91.7 0.0 52.5 80.5 blib/lib/TM/QL/TS.pm 65.2 35.4 27.8 70.8 53.3 2.4 56.9 blib/lib/TM/ResourceAble.pm 88.1 87.5 n/a 100.0 100.0 0.0 90.0 .../TM/ResourceAble/MLDBM.pm 100.0 75.0 n/a 100.0 0.0 0.0 94.2 blib/lib/TM/Serializable.pm 94.9 65.6 100.0 100.0 100.0 0.0 84.1 .../TM/Serializable/AsTMa.pm 99.1 87.9 66.7 100.0 100.0 0.0 94.2 ...TM/Serializable/Dumper.pm 100.0 n/a n/a 100.0 0.0 0.0 93.5 ...ib/TM/Serializable/LTM.pm 94.1 n/a n/a 83.3 100.0 0.0 92.0 ...ib/TM/Serializable/XTM.pm 96.3 85.2 72.9 100.0 100.0 0.2 91.5 .../lib/TM/Synchronizable.pm 100.0 75.0 100.0 100.0 100.0 0.0 97.2 ...M/Synchronizable/MLDBM.pm 100.0 50.0 n/a 100.0 0.0 0.0 89.3 ...nchronizable/MapSphere.pm 100.0 63.6 64.3 100.0 100.0 0.0 88.6 ...TM/Synchronizable/Null.pm 100.0 n/a n/a 100.0 0.0 0.0 87.5 blib/lib/TM/Tau.pm 100.0 91.7 80.0 100.0 0.0 0.0 95.6 blib/lib/TM/Tau/Federate.pm 63.2 39.3 n/a 62.5 27.3 0.0 54.5 blib/lib/TM/Tau/Filter.pm 100.0 91.7 66.7 100.0 50.0 0.0 90.0 .../TM/Tau/Filter/Analyze.pm 100.0 n/a n/a 100.0 100.0 0.0 100.0 blib/lib/TM/Tree.pm 100.0 57.1 44.4 100.0 66.7 0.0 88.0 blib/lib/TM/Utils.pm 100.0 50.0 n/a 100.0 0.0 0.0 89.3 ...ib/TM/Utils/TreeWalker.pm 100.0 100.0 n/a 100.0 0.0 0.0 96.0 ...ib/TM/Workbench/Plugin.pm 100.0 n/a n/a 100.0 0.0 0.0 75.0 ...M/Workbench/Plugin/Tau.pm 87.5 50.0 n/a 80.0 0.0 0.0 73.1 yapp/astma-fact.yp 96.9 91.5 73.3 97.8 0.0 4.8 92.7 yapp/astma2-fact.yp 97.4 91.6 58.3 100.0 0.0 0.2 91.6 Total 76.8 45.2 40.2 91.2 57.0 100.0 63.8 ---------------------------- ------ ------ ------ ------ ------ ------ ------ SEE ALSO
TM COPYRIGHT AND LICENSE
Copyright 200[8] by Robert Barta, <drrho@cpan.org> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2008-10-05 TM::Coverage(3pm)
All times are GMT -4. The time now is 05:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy