Re: approaches and tools to debug excessive cpu usage...
- From: Eric Sosman <Eric.Sosman@xxxxxxx>
- Date: Tue, 13 Mar 2007 10:32:39 -0400
Sheth Raxit wrote On 03/13/07 03:15,:
Hi
OS : Solaris 10, sparc,
Having a user level multitreaded,socket program (having i/o intensive
task for disk read/write).
after running few hours normally it is Eating more cpu (checked using
top) , and going to eat towards eating 100% cpu. (b4 it eat 100%, root
is killing by signal 9)
load remains the same during normal operation and excessive cpu
consumption,
non-repeatable problem :(
how to debug and control the cpu usage ? (is gdb/dbx is helpful ?)
(or do i required strace and some other tools) ?
Is there any code checklist (for C-*Nix) to avoid excessive cpu
usage. ?
The Sun Studio tool suite (free) includes the Collector and
the Analyzer, which are designed to help with just this sort of
problem. You can run the program under Collector control from
the outset, or you can attach to a running process with dbx and
use it to start collection in mid-stream.
Disclaimer: I work for Sun, but don't speak for Sun.
--
Eric.Sosman@xxxxxxx
.
- Follow-Ups:
- Re: approaches and tools to debug excessive cpu usage...
- From: Paul Pluzhnikov
- Re: approaches and tools to debug excessive cpu usage...
- References:
- approaches and tools to debug excessive cpu usage...
- From: Sheth Raxit
- approaches and tools to debug excessive cpu usage...
- Prev by Date: Re: GNU Makefile with phony target and source files as dependencies of a target
- Next by Date: Re: approaches and tools to debug excessive cpu usage...
- Previous by thread: Re: approaches and tools to debug excessive cpu usage...
- Next by thread: Re: approaches and tools to debug excessive cpu usage...
- Index(es):
Relevant Pages
|