The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Monitoring Processes - Killing hung processes ukndoit UNIX for Advanced & Expert Users 4 01-17-2008 12:30 AM
Identifying and grouping OS processes and APP processes wilsonee SUN Solaris 0 09-17-2007 05:18 PM
Processes Beetlejuice UNIX for Dummies Questions & Answers 4 04-06-2005 09:33 AM
processes master_6ez Shell Programming and Scripting 3 11-24-2004 05:48 AM
processes mma_buc_98 UNIX for Dummies Questions & Answers 1 08-13-2002 02:25 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-14-2006
Registered User
 

Join Date: Feb 2006
Posts: 6
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Run away processes

Hi,

My server runnning on SUN Solaris rel.5.5.1. I have been facing this issues for years. I have some Xbase databases running on the server. User is using emulation software to telnet to server for accessing application. If user logout application abnormally - by closing windows session, then it will become a run away process. And if user login system again, there will be 2 user login if you issue who command, and if you use ps -ef, and it will also show 2 process existed, both also active. But from ps -ef, or from ps -u, there will be 2 different process existed, and in fact there is only active, the earlier process is considered ran away and can be killed off. Those ran away processes, you will realised that the time will keep growing and it will create unnecessary load and slow down the system.

In normal circumstances, the system will only show 1 active user and processes may be have 2, so that i will know which is the active one and I can kill it off, but now our SunOS seems like having some problem in identifying.

Is there a command to show that which are the active process so that I can kill it off safely. Would appreciate any comment or advise from you.

Thank you and have a nice day.

Regards
T.W.Low
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-15-2006
Registered User
 

Join Date: Feb 2006
Posts: 61
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
is there a way to tell the difference between a rnuaway process and one that is legitimate?
Reply With Quote
  #3 (permalink)  
Old 02-15-2006
Registered User
 

Join Date: Feb 2006
Posts: 6
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
we have another server running the same OS which do not have this problem.

Below is the scenerio,

root # who |grep bwopn1
bwopn1 pts/27 Feb 16 08:18 (10.3.1.251)
bwopn1 pts/153 Feb 16 09:03 (10.3.1.251)
bwopn1 pts/163 Feb 16 09:07 (10.3.1.251)

root # ps -ef |grep db |grep bwopn1
bwopn1 3818 3811 2 08:18:11 pts/27 6:35 /u/recital/db.exe -x tntbw
bwopn1 6691 6652 0 09:07:08 pts/163 0:01 /u/recital/db.exe -x tntbw
bwopn1 6321 6304 0 09:03:24 pts/153 0:02 /u/recital/db.exe -x tntbw

from here you will see that the session login at 8:18, it's probably inactive due to user accidentally close the screen.

If under normal circumstances, when you do a who, it should show 2 active users only, but the ps -ef will still show 3 session, at least from who will tell there are only 2 active users.

Is there any command that can output that only inactive or active session ?

Thanks & Rgds
T.W.Low
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 09:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102