Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Jerome" <Jerome.Forissier@nospam�libertysurf.fr>
Subject: Re: 99% CPU usage
Date: Tue, 1 Apr 2003 00:16:07 +0200	[thread overview]
Message-ID: <newscache$6lwmch$aek$1@news.tiscali.fr> (raw)
In-Reply-To: 2659581.1048063416@dbforums.com

"murthi" <rdakshin@covansys.com> wrote in message
news:2659581.1048063416@dbforums.com...
>
> Hi All,
>
> The executable consists of approximately 110 screens, is running on
> ES40/Tru64 5.1a cluster m/c.
[snip]
> Occasionally/At times, the CPU usage becomes 99.9% for about some
> 15 minutes.
[snip]
> We have completely analyzed the source code. And found that the code
> is perfect.
[snip]
Hmmm... is there such a thing as perfect code? :-)

> How can we find a permanent fix for this problem?
[snip]

Is the CPU used by your application or by another process ? Is it
essentially user or system time ?

If all the CPU is used by by your application process, here is what I
suggest.

Build your app in debug mode (-g). When the problem occurs, attach a
debugger (for instance, ladebug yourapp -pid <pid>).
Then, interrupt the program with Ctrl-C, look at the call stack (bt), then
continue execution (c). Do this several times (Ctrl-C, bt, c). If there is a
loop in your process, you will likely pinpoint the call sequence.
If necessary, step more finely in the code (n).

Hope this helps,

--
Jerome





  reply	other threads:[~2003-03-31 22:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-19  8:43 99% CPU usage murthi
2003-03-31 22:16 ` Jerome [this message]
2003-04-02 10:05 ` murthi
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox