Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* 99% CPU usage
@ 2003-03-19  8:43 murthi
  2003-03-31 22:16 ` Jerome
  2003-04-02 10:05 ` murthi
  0 siblings, 2 replies; 3+ messages in thread
From: murthi @ 2003-03-19  8:43 UTC (permalink / raw)



Hi All,

The executable consists of approximately 110 screens, is running on
ES40/Tru64 5.1a cluster m/c.
This executable is created from the source code written in C/C++ and sql
statements are embedded.
The database is Sybase 11.9.2.3

Occasionally/At times, the CPU usage becomes 99.9% for about some
15 minutes.
Recently in this March 2003, the high CPU usage happened for one
display screen.
Prior to this in January 2003, the high CPU usage happened for some
other display screen. (In those situations we had to kill the process).

We have completely analyzed the source code. And found that the code
is perfect.
Then we looked into the binary error log file for error message on that
particular day.
But there were no error messages.

How can we find a permanent fix for this problem?
Any information in this regard would be highly appreciated.

Thank you,

--
Posted via http://dbforums.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 99% CPU usage
  2003-03-19  8:43 99% CPU usage murthi
@ 2003-03-31 22:16 ` Jerome
  2003-04-02 10:05 ` murthi
  1 sibling, 0 replies; 3+ messages in thread
From: Jerome @ 2003-03-31 22:16 UTC (permalink / raw)


"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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 99% CPU usage
  2003-03-19  8:43 99% CPU usage murthi
  2003-03-31 22:16 ` Jerome
@ 2003-04-02 10:05 ` murthi
  1 sibling, 0 replies; 3+ messages in thread
From: murthi @ 2003-04-02 10:05 UTC (permalink / raw)



Hi Jerome,

Thank you for your quick response and support.

I just want to inform that all the CPU is used by our application.

As you adviced by you after compiling the program with "-g" option, I
did the following.
After getting into ladebug mode I attached the process "28512" and
pressed control C. The control was still there. How to come out and type
"bt" and "c".
Can you kindly provide me steps?

covan@alpha2>> ladebug /wms/dvl/bin/cms.covan
Welcome to the Ladebug Debugger Version 67 (built Mar 10 2002 for
Compaq Tru64 U
NIX)
------------------
object file name: /wms/dvl/bin/cms.covan
Reading symbolic information ...done
(ladebug) attach 28512
Reading symbolic information ...done
Attached to process id 28512  ....
^C


Thank you,

--
Posted via http://dbforums.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-02 10:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-19  8:43 99% CPU usage murthi
2003-03-31 22:16 ` Jerome
2003-04-02 10:05 ` murthi

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