Process spawining


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Process spawining
# 1  
Old 07-26-2006
Process spawining

hi,
i have this prolem on my system
whnever a run a process on my linux machine it spawns 2 more of the same process.

say the process is x
then on running x i get 3 processes which are spawned by one another.
x
-x
--x

how do i stop this
# 2  
Old 07-26-2006
Give us an example using the output of "ps aux"
Regards.
# 3  
Old 07-26-2006
Does this happen for every login process? ie., you login and get three processes...

What does
Code:
ps

show for you right now?
# 4  
Old 07-26-2006
process spawning

Send us a "ptree" output so we can see the process relationship.

If you're running various shells, the #!/bin/Xsh directive will do this (normal).

Could be something funny in the script as well, or init issues.

If it's a runaway parent-child spawn loop, kill -KILL the topmost PID.
This can happen with alias loops and other bad programming.

-Phrazz
# 5  
Old 07-27-2006
asamant 6228 0.0 0.1 46888 7500 pts/1 S 16:38 0:00 nameserv -OAhost 10.65.18.49 -OAport 12345
asamant 6233 0.0 0.1 46888 7500 pts/1 S 16:38 0:00 nameserv -OAhost 10.65.18.49 -OAport 12345
asamant 6234 0.0 0.1 46888 7500 pts/1 S 16:38 0:00 \_ nameserv -OAhost 10.65.18.49 -OAport 12345
asamant 6263 0.0 0.1 46888 7500 pts/1 S 16:39 0:00 \_ nameserv -OAhost 10.65.18.49 -OAport 12345
asamant 6321 0.0 0.1 46888 7500 pts/1 S 16:39 0:00 \_ nameserv -OAhost 10.65.18.49 -OAport 12345
asamant 6853 0.0 0.1 46888 7500 pts/1 S 16:39 0:00 \_ nameserv -OAhost 10.65.18.49 -OAport 12345
asamant 7379 0.0 0.1 46888 7500 pts/1 S 16:39 0:00 \_ nameserv -OAhost 10.65.18.49 -OAport 12345



This is what i get wen is do ps -fux

i started the process using this command

nameserv -OAhost 10.65.18.49 -OAport 12345&
# 6  
Old 07-27-2006
That might be ists usual behaviour. It seems that this process is a network service (ORB name server, perhaps?), and the fact that it forks that way is to be able to process connections. Apache, for instance, does the same. You can set how many processes are created (max/min) through its config file. It's possible that you can do the same with this service. Are there any other processes that behave that way?
Regards.
# 7  
Old 07-28-2006
this is just one example.most of the processes do the same thing
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies

2. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies

3. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies

4. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

5. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

6. Shell Programming and Scripting

script to monitor the process system when a process from user takes longer than 15 min run.

get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same. hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Discussion started by: kirankrishna3
1 Replies

7. Shell Programming and Scripting

[KSH/Bash] Starting a parent process from a child process?

Hey all, I need to launch a script from within 2 other scripts that can run independently of the two parent scripts... Im having a hard time doing this, if anyone knows how please let me know. More detail. ScriptA (bash), ScriptB (ksh), ScriptC (bash) ScriptA, launches ScriptB ScirptB,... (7 Replies)
Discussion started by: trey85stang
7 Replies

8. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

9. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

10. Shell Programming and Scripting

how to start a process and make it sleep for 5 mins and then kill that process

how to start a process and make it sleep for 5 mins and then kill that process (6 Replies)
Discussion started by: shrao
6 Replies
Login or Register to Ask a Question