1835989 Members
6029 Online
110088 Solutions
New Discussion

Dead process

 
SOLVED
Go to solution
O'lnes
Regular Advisor

Dead process

Our system suddenly run slowly, i think it is due to some dead processes in the system, but i can find it by 'top' function, can suggest how to find what process affect the speed of the system?
Thanks.
Andy
25 REPLIES 25
Scott Van Kalken
Esteemed Contributor

Re: Dead process

if it's a user process it will generally have a high amount of execution time.

If it's truly "dead" it will more than likely have a PPID of 1.

Some processes are supposed to have a PPID of 1, but some aren't.

Scott.
Sajid_1
Honored Contributor

Re: Dead process

hello,

Yes, there are couple of methods:
a) Run GlancePlus (gpm) if you have it loaded on the system, This is a performance analysis tool and will list you all processes running on the system and the resource usage
b) Run sar. Read the man pages for spefic informations.
c) if you have downloaded 'lsof' then run that against processes and find out any issues.
d) A full process list can be get from:
# ps -aef

gl,
learn unix ..
Kenneth_19
Trusted Contributor

Re: Dead process

Some dead processes will lost their process names in "ps -aef" and will show ""
in their names, these processes cannot be killed and a server reboot will clear all those defunct processes.

Regards,
Kenneth
Always take care of your dearest before it is too late
Printaporn_1
Esteemed Contributor

Re: Dead process

Hi,

#ps -ef | grep defunct
enjoy any little thing in my life
O'lnes
Regular Advisor

Re: Dead process

i can't find defunct process, where can get "glance" ? is it free?

Thanks.
Andy
Kenneth_19
Trusted Contributor

Re: Dead process

A free trial version with limited trial period comes together with the software installation CD, it's called GlancePlus.

Kenneth
Always take care of your dearest before it is too late
O'lnes
Regular Advisor

Re: Dead process

I have downloaded the program "glance", but can't run it even it is mode 777 , it shows "sh: ./glance: Execute permission denied." . Thanks.

Andy
T G Manikandan
Honored Contributor

Re: Dead process

Glance is a depot software
It is found on one of the application cds.
you have to use swinstall to install it.

Thanks
O'lnes
Regular Advisor

Re: Dead process

When intall 'glance', it pop up the message "
An I/O error occurred while performing this task" . how to solve ? Thanks.
Andy
Kenneth_19
Trusted Contributor

Re: Dead process

Can you please supply the command that you used to install Glance?

Kenneth
Always take care of your dearest before it is too late
O'lnes
Regular Advisor

Re: Dead process

'swinstall' then select local directory, and type in the path.
Andy
T G Manikandan
Honored Contributor

Re: Dead process

If it is a I/O error check the download size of the file whether the download was complete.

If you had transfered the download file from windows to Hpux.re-ftp the file from windows using the binary mode.

Thanks
O'lnes
Regular Advisor

Re: Dead process

I tried to install the file in the cd - "Glance/GLANCE/opt/perf/bin/glance" , but the same error occur. Thanks.
Andy
T G Manikandan
Honored Contributor

Re: Dead process

I think probably you are missing something.

you have Glance and GlanceplusPak in your application CDs.

Glance is the performance monitoring product.
To my knowing
GlancePlusPak product includes the Measureware/Perfview/Glance

You can install any of the two.


you can mount the application cd which contains the Glance.

do a swinstall

From the GUI screen window of swinstall select,
Local CDROM,
then select Glance
then
Actions---->Mark for install
then
Actions---->install analysis

which will install the product.
I am sure whether you are following the steps.

Please post back

Thanks
O'lnes
Regular Advisor

Re: Dead process

I copied the file "Glance/GLANCE/opt/perf/bin/glance" to local drive and run the swinstall, then it pop up the error "There is currently no depot software on host "xxx" at location /temp/", do i copy the right file? Thanks.
Andy
Kenneth_19
Trusted Contributor
Solution

Re: Dead process

To copy a software depot, instead of using cp, you need to use swcopy.

Regards,
Kenneth
Always take care of your dearest before it is too late
Trond Haugen
Honored Contributor

Re: Dead process

Take a look at 'Managing HP-UX Software With SD-UX (HP-UX 11.0)'.
http://www.docs.hp.com/hpux/onlinedocs/B2355-90154/B2355-90154.html

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
O'lnes
Regular Advisor

Re: Dead process

Hi Kenneth,
1. even i directly install from CD-ROM , it still pop up the I/O error.

2. When i use swcopy to copy from CD-ROM to local drive , it pop up "
swcopy ./GLANCE/opt/perf/bin/glance

======= 08/05/02 21:26:04 EAT BEGIN swcopy SESSION (non-interactive)

* Session started for user "root@xxx".

* Beginning Selection
* Target connection succeeded for "xxx:/var/spool/sw".
ERROR: "xxx:/var/spool/sw": This target or source is already in use
either within this same session or by another session. A read
or write lock was denied.
* Source connection failed for "xxx:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this
target (default location is gpe:/var/adm/sw/swagentd.log).
* Selection had errors."

How to solve ? Thanks.
Andy
T G Manikandan
Honored Contributor

Re: Dead process

do a
ps -ef|grep sw
Stop or kill all other swcopy,swinstall sessions.
Then do a
restart of the swagentd daemon.
#/usr/sbin/swagentd -r

now retry the operation

Thanks
O'lnes
Regular Advisor

Re: Dead process

i have restart the daemon, and run swinstall again, it still have error.


* Session started for user "root@xxx".

* Beginning Selection
* Target connection succeeded for "xxx:/var/spool/sw".
ERROR: "xxx:/var/spool/sw": This target or source is already in use
either within this same session or by another session. A read
or write lock was denied.
* Source connection failed for "xxx:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this
target (default location is xxx:/var/adm/sw/swagentd.log).
* Selection had errors.
Andy
T G Manikandan
Honored Contributor

Re: Dead process

Did you check ps -ef|grep sw
and stop or kill all swinstall,swcopy,swlist processes.

Then restart swagentd

If this is not working then

#mv /var/adm/sw/products/swlock /var/adm/sw/products/swlockold

#swagentd -r


Thanks
O'lnes
Regular Advisor

Re: Dead process

The same error when run swinstall again.

I have grep the sw process, but seems no error.

# ps -ef |grep sw
root 0 0 0 May 10 ? 439:48 swapper
root 1381 1 0 18:19:41 ? 0:00 swagentd -r
root 1404 29949 0 18:20:50 ttyr7 0:00 grep sw



Andy
T G Manikandan
Honored Contributor

Re: Dead process

#rm /var/adm/sw/products/swlock

#/usr/sbin/swagentd -r

Thanks
O'lnes
Regular Advisor

Re: Dead process

The same error when run the swcopy.
Andy