Run away processes


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Run away processes
# 1  
Old 02-15-2006
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
# 2  
Old 02-15-2006
is there a way to tell the difference between a rnuaway process and one that is legitimate?
# 3  
Old 02-16-2006
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run feeding each other processes simultaneously?

Hello, I need to run multiple shell processes simultaneously and output of the first process shall be the input of the second process but first process is never ending so both should be running in parallel. I do not wish to wait the end of the first process. I am under ubuntu 16.04. ... (3 Replies)
Discussion started by: baris35
3 Replies

2. UNIX for Dummies Questions & Answers

Maximum no of processes that can run

Is there any limit in UNIX that only a MAXIMUM no of processes can run at a time? If so, it exceeds then what would be the error we would receive? (4 Replies)
Discussion started by: jansat
4 Replies

3. Solaris

Slow run processes after abnormal reboot

hi all, I'm working Solaris 5.10 (5.10 Generic_137137-09 sun4u sparc SUNW,SPARC-E nterprise) Few days ago, my junior engineer made a mistake! He is execute shutdown command on the live server. He mis understand between live and test servers! :wall: The live... (0 Replies)
Discussion started by: buyantugs
0 Replies

4. UNIX and Linux Applications

how to run more than two processes parallely

I would like to call a function called CIRCLE which is further beind called by other function but in a loop that CIRCLE fuction is being called. And this CIRCLE function starts another process which takes 3 hours to complete again, if i put that process in nohup &, I can go to the next command... (2 Replies)
Discussion started by: venugopalsmartb
2 Replies

5. Shell Programming and Scripting

kill my processes which are run by hacker

how can I kill my processes which are run by hacker or another person who log in with my username and password (1 Reply)
Discussion started by: thsecmaniac
1 Replies

6. UNIX for Dummies Questions & Answers

Run Processes Sequentially Using Process ID (PID)

Hi, I'm a newbie when it comes to using UNIX, and I'm hoping someone here can help me out. I have a set of processes that I want to run sequentially: process1.py process2.py process3.py I want to know I can run these sequentially using their process IDs (PIDs). Ideally, I want to... (2 Replies)
Discussion started by: shelata
2 Replies

7. UNIX for Advanced & Expert Users

script to run different shells which run different processes

Hi, Would like to ask the experts if anyone knows how to run a script like this: dtterm -title shell1 run process1 on shell1 dtterm -title shell2 run process2 on shell2 cheers! p/s: sorry if i used the wrong forum, quite concussed after watching world cup for several nights; but I... (2 Replies)
Discussion started by: mochi
2 Replies

8. Programming

Run 4-processes concurrently

How can i run a back ground process.... I.e for example by using fork() i need to run seperate 4 background processes.. How can send a process to background ??? (9 Replies)
Discussion started by: ugp
9 Replies

9. UNIX for Advanced & Expert Users

preventing others to run processes on my machine

I am in a multi-user Linux environment at work. Other users easily run processes on my machine when my machine is idle, but when I try to use my machine, it is dead slow. The processes run by them always grab the top spot using 99% of my CPU time. Is there a way I can prevent others to run... (3 Replies)
Discussion started by: besharam
3 Replies

10. Shell Programming and Scripting

How to run processes in parallel?

In a korn shell script, how can I run several processes in parallel at the same time? For example, I have 3 processes say p1, p2, p3 if I call them as p1.ksh p2.ksh p3.ksh they will run after one process finishes. But I want to run them in parallel and want to display "Process p1... (3 Replies)
Discussion started by: sbasak
3 Replies
Login or Register to Ask a Question