1830048 Members
22299 Online
109998 Solutions
New Discussion

How to kill process ids

 
Pradeep Saxena
Occasional Advisor

How to kill process ids

Hi
I was trying to install JDK and JRE on HP-UX10.20, some how corruption occured.Now I am having around 100 pid entries for vx_inactive_thread command while listing through ps -ef.
I am now not able to login from CDE, though can login from command line. I have tried to safe kill , force kill, reboot, rebuild the kernel,uninstlled the jdk/jre etc. still all pids are alive. Can anyone suggest how to get rid of those pids?
13 REPLIES 13
Kevin Ernst
Regular Advisor

Re: How to kill process ids

As far as I know, the 'vx_inactive_thread's are just side-effects of a running system. They're completely harmless and normal.

But hopefully someone can elaborate on that, because I'd like to know what all those 'inactive threads' mean, too.
Kevin Ernst
Regular Advisor

Re: How to kill process ids

Regarding the CDE problem though, what do the last few lines of your ~/.dt/errlog say? This should clue you in on what's going wrong during the login process.

I'm assuming when you say you can't log in to CDE you mean your username and password validate okay, but a few seconds later you're dumped back to the dtlogin screen?

I've seen something like this before: if the system can't resolve its own hostname with an 'nslookup' (actually a gethostbyname[] system call, I guess)--even if it falls back to /etc/hosts by way of a well-configured nsswitch.conf--CDE will fail to start up. You might check into that.
Kevin Ernst
Regular Advisor

Re: How to kill process ids

This thread, which Kofi just "brought" to my attention (by way of another post), has a more in-depth explanation of the name resolution problem which could be preventing you from starting CDE:

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xeaebf841489fd4118fef0090279cd0f9!1,00.html
Patrick Wallek
Honored Contributor

Re: How to kill process ids

The vx_inactive_thread are not part of your problem. I currently have 52 of them on my system.

I tried searching the Technical Knowledge Base, but eventually got a message that it was unavailable. I will try again tomorrow and post results.
Pradeep Saxena
Occasional Advisor

Re: How to kill process ids

Hi
I am attaching you log file( includes errorlog and startlog files under .dt directory). I have also found nsswitch.conf file missing which I have recreated, still problem in login usig CDE is continue.Attached log file talks about broken pipe, please suggest.
Pradeep Saxena
Occasional Advisor

Re: How to kill process ids

Hi
It looks vx_inactive thread may not be related to CDE login prob, still I would like to know about it if some one is having any details.
secondly ...
I am attaching you log file( includes errorlog and startlog files under .dt directory). I have also found nsswitch.conf file missing which I have recreated, still problem in login usig CDE is continue.Attached log file talks about broken pipe, please suggest.
Pradeep Saxena
Occasional Advisor

Re: How to kill process ids

Thanks Kevin and Patrick for your reply. I was not having enough time to analyse the above problem due to client's pressure so reinstalled everything.
Kevin your link to similar problem was very useful, especially command
/usr/contrib/X11/dr_dt
Dan Hetzel
Honored Contributor

Re: How to kill process ids

Hi Pradeep,

For your information, I have an average count ot 60 vx_inactive_thread on all the systems I checked here.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Tommy Palo
Trusted Contributor

Re: How to kill process ids

The number of vx_inactive_thread processes is probably depending on the number of VxFS (JFS) file systems you have on the system, and on how big they are. Keeping track (journaling) of file system integrity is what they are part of. As said, no effect on CDE login.
Keep it simple
Bill McNAMARA_1
Honored Contributor

Re: How to kill process ids

One comman I love is killall
Bit off the thread though!!!
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: How to kill process ids

One command I love is killall
Bit off the thread though!!!
It works for me (tm)
Patrick Wallek
Honored Contributor

Re: How to kill process ids

Here are a couple of links from the Technical Knowledge Base regarding the vx_inactive_thread process. It is indeed a by product of VxFS/JFS filesystems. There are instructions on how to make these processes go away if you are not using VxFS/JFS filesystems.

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=f1d3d5a6078e0eef25/screen=ckiDisplayDocument?docId=200000032087638

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=f1d3d5a6078e0eef25/screen=ckiDisplayDocument?docId=200000024645221
Shannon Petry
Honored Contributor

Re: How to kill process ids

I use a functins file, and source it in roots login. I.E. in roots .profile add the line
. /usr/local/etc/functions

the contents of /usr/local/etc/functions would include nice things like killproc, statproc and more. I have attached the killproc function, so take a look.
Just remember that some processes like vx_active_threads are required by the OS, so be carefull what you kill!.

Regards,
Shannon
killproc()
{
if [ $# = '1' ] ; then
for PID in `ps -ef | grep $1|grep -v grep|awk '{print $2}'` ; do
echo killing $PID
/bin/kill $PID
done
elif [ $# = '2' ] ; then
for PID in `ps -ef|grep $2|grep -v grep|awk '{print $2}'` ; do
/bin/kill -$1 $PID
done
else
echo "USEAGE: killpid # process"
echo "# is the signal to send, and is optional"
fi
}
Microsoft. When do you want a virus today?