stopping running process


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers stopping running process
# 1  
Old 08-08-2008
stopping running process

hi all,
I am using red hat AS 4 linux enterprise,i need to run my application such that while its running no other process shuld run all the remaining process should be suspended ,i need to use whole of the process only for that application to run ,can anyone suggest me how to do this.

thanks u all,
lakshmi
# 2  
Old 08-12-2008
That's a bit extreme. Why not just reschedule your app to maximum priority?
Try running your app like:
Code:
nice -n -20 youapp

Or if it's already running, use renice.

To kill every process do
Code:
kill -9 -1

To STOP every process you have to send a SIGSTOP. Although that could lead to unstable behavior for some apps.
# 3  
Old 08-12-2008
You cannot do that safely. Some filesystems have daemons and will not work if the daemon is stopped, for example.

In general do not stop all processes, period. redoubtable gave you good advice. Run your app at higher priority. What the heck are you trying to do?
# 4  
Old 08-13-2008
I think on one hand, he's trying to make sure that the application will have enough resources to run, and on the other hand, no other processes would interfere his application's job. But, if that's the case, just stop unused daemons, like - you don't need sendmail running, disable it, you don't need smart daemon, you don't need beagle, hwscanner, etc, etc - disable them. Making sure no other processes is messing around with yours - consider jailed environment, chroot, etc.
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. 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

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... (1 Reply)
Discussion started by: naveeng
1 Replies

4. 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

5. Shell Programming and Scripting

stopping process started with "while"

Hello unix forum ! how do i get rid of this while thing ? if started some where by crontab for example. while ; do ./script > /dev/null ; done & or for example if in terminal while ; do ./script ; done & and the script is outputing and I can't write commands. other... (2 Replies)
Discussion started by: max_475
2 Replies

6. Shell Programming and Scripting

Duh, can I quit an ssh connection withOUT stopping a program running?

here's the sitch: remote freeBSD device. I am ssh'd in as root and running cgsecurity's TESTDISK program. Testdisk will take DAYS to scan this multi-terabyte RAID. Can I quit my terminal or ssh connection, disconnect from the remote computer, come back to it later and NOT stop or interrupt the... (3 Replies)
Discussion started by: jccbin
3 Replies

7. 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

8. Shell Programming and Scripting

Stopping A process

Hi I want to stop a process using a shell script. how do i do that? ie, to simulate ps -ef|grep Process name get the process id and kill -9 process id plz help... (4 Replies)
Discussion started by: gopsman
4 Replies

9. Shell Programming and Scripting

I can't resume a process after stopping it!

Hello, I have a process running, for example a "top". I send it a signal to stop it kill -s SIGSTOP 3423 It works, but when I want to resume it by kill -s SIGCONT 3423 It does not work. Help me please..... I have Fedora Core 4. Thank you (0 Replies)
Discussion started by: Nene
0 Replies

10. AIX

Stopping multiple process on AIX

I'm trying to update a shared library (*.so) in our AIX machine. However, when I tried to delete the old *.so file, I get this error -> Cannot open or remove a file containing a running program. Based on the information I gather from the net, shared libraries are not unloaded (the file remains... (3 Replies)
Discussion started by: soulfactory2002
3 Replies
Login or Register to Ask a Question