Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HPUX performance

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi !
I am facing a problem in which my application starts hogging 95% or more resources and hence make it impossible to run any other application ( sometimes even dont allow to telnet on the server ) . Just to make sure that there is no memory leak i ran purify and it showed that there is no memory leakage .
Interestingly the application hogs less % of CPU when it is active and working , the max hog happens when it is in idle state.
Thanks
 
Hi,

I'm presuming that this is your application.

Have you tried killing the process, forcing it to core dump, and then analysing the core file to find which routine it is executing when it takes up so much CPU? Mike
"Experience is the comb that Nature gives us after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Hi,
Possibly you 'IDLE' loop is written incorrectly.

Check to make sure you are passing the correct value into sleep.

I don't know about HP since I am just learning it but on Microsoft for example sleep takes MILLI Seconds so if you want to sleep for a second you pass in 1000.

If you pass in a 1 it will barely sleep. Maybe HP is the same way.


if you are passing in the correct value, Maybe you need to sleep longer.

Another possibilty is to change the application to sleep indefinitly and wait for a signal and once you get the signal wake up and process whatever.









 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top