which thread is consuming much time ?


 
Thread Tools Search this Thread
Operating Systems HP-UX which thread is consuming much time ?
# 1  
Old 12-11-2008
which thread is consuming much time ?

Hi

How do i check which thread is consuming much time ?

In my process it is tacking much %CPU so i want to check whick thread tacking much time?

Any suggestion highly appriciated.

I am using HP-UX B.11.31 U ia64

Regards,
Ashok
# 2  
Old 12-11-2008
You could use the glance tool.
# 3  
Old 12-13-2008
I do not have in my system.
Can i down load it from any where?

I am not getting any useful links.
Thanks,
# 4  
Old 12-14-2008
You can install a 60 day trial version of Glance from your application CDs.
# 5  
Old 01-20-2009
you can use "top"


Quote:
Originally Posted by ashokd001
Hi

How do i check which thread is consuming much time ?

In my process it is tacking much %CPU so i want to check whick thread tacking much time?

Any suggestion highly appriciated.

I am using HP-UX B.11.31 U ia64

Regards,
Ashok
# 6  
Old 01-23-2009
I don't know about looking up individual "threads" but if you don't have glance, you can run top and locate the process id <pid> of whatever is taking your cpu time:

(top output)
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
2 ? 8076 www 152 20 117M 63900K run 0:07 0.55 0.55 httpd

ps -ef |grep <pid> - which should give you an output.

root 8076 1975 0 Jan 13 ? 0:00 /usr/sbin/<process name>

You can then run ps -ef |grep <ppid> <--- parent process id

That should tell you all of the processes involved with the one item taking your cpu.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. HP-UX

Files consuming more space in HP-UX

Hi, Could you please provide OS command to find large files in size MB and GB... under specific directory in HP-UX? Regards, Maddy (4 Replies)
Discussion started by: Maddy123
4 Replies

2. Shell Programming and Scripting

Time-consuming simple script

Hi, I need some simple but time-consuming script, I would like to compare run time in different shells. I thought about factorial or exponentiation in many loop, but I don't know it's a good idea. Do you know some simple, time-consuming (arithmetic) script ?? I would be thankful for every... (8 Replies)
Discussion started by: Physix
8 Replies

3. Shell Programming and Scripting

How much space I am consuming?

Hi i want to know if many users are logging in system then how would i know that how much space in system i am consuming.. Thanks Vijay sahu (4 Replies)
Discussion started by: vijays3
4 Replies

4. Solaris

Help to trace process consuming more space

Hi all, We have a server having much processes running. It is very difficuilt to trace the exact consuming more memory. Howerver, it shows CPU usage in sequence but how memory? Tried working with TOP command. Please let me know if something not clear. Thanks, Deepak (5 Replies)
Discussion started by: naw_deepak
5 Replies

5. AIX

Process consuming most memory

How can i find the processes that is consuming most memory? I tried TOPAS and SVMON and this didn't gave me the desired result. (1 Reply)
Discussion started by: shabu
1 Replies

6. Programming

How system deamons consuming less memory

Dear all, When I write the daemon programs it is consuming high memory and processor time. How can I avoid this? But, the system daemons are not consuming more. How? Can any one explain how the system daemons are handling the memory consumption and processor time. Thanks,... (1 Reply)
Discussion started by: nagalenoj
1 Replies

7. UNIX for Dummies Questions & Answers

How ti kill a process which is consuming so much time

There is a process which is consuming too much time.. how to find that process and kill it. (3 Replies)
Discussion started by: shreenivas
3 Replies

8. Programming

Help -fwrite consuming lot of memory !!!

Hi , I am running a C/C++ program on a solaris 5.8 machine. This parituclar application has a module which saves data to a file. The module uses fwrite() function to save data. The fwrite function write about 500 MB of data to a file. The problem which I am facing is, the memory consumtion... (2 Replies)
Discussion started by: ajphaj
2 Replies
Login or Register to Ask a Question