?
Solved

how to kill process in linux

Posted on 2007-11-16
7
Medium Priority
?
3,534 Views
Last Modified: 2013-12-16
I have a hundred of these on the server. I know they are not valid. If I kill them, they reappear immed with new process id's. How to get rid of them?


nobody   14180  0.0  0.8 14352 7800 ?        S    01:52   0:00 /usr/local/apache/bin/httpd -DSSL

0
Comment
Question by:alcibiades
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 5

Assisted Solution

by:pavaneeshkumar
pavaneeshkumar earned 75 total points
ID: 20296787
use this to

kill -s 0 14180

also check this link
http://linux.about.com/od/commands/l/blcmdl1_kill.htm
kill -s 0 14180

Open in new window

0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 75 total points
ID: 20296815
Hi,

These processes belong to Apache web server. Why do you want to kill them?

If you want to stop them then stop apache. Please see:

http://httpd.apache.org/docs/1.3/stopping.html
http://httpd.apache.org/docs/2.2/stopping.html
http://www.defcon1.org/html/Software_Articles/Apache-start-stop/apache-start-stop.html
0
 
LVL 3

Assisted Solution

by:amirs80
amirs80 earned 75 total points
ID: 20297252
first see either it is parent process or child process, if it is parent process kill it directly by kill command and keep the level 9. if it is child process then observer the parent process and try to kill parent process if it is not required by kill command  
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 3

Assisted Solution

by:fseto
fseto earned 75 total points
ID: 20297309
Like omarfarid said, those are from your apache web server.  If your machine is suppose to be running a web server, it's ok to leave them be... unless they are causing other problems, but then that's another issue.

Note that you have to be running as root to kill it.  Try:
apachectl -k stop
0
 
LVL 9

Assisted Solution

by:binary_1001010
binary_1001010 earned 75 total points
ID: 20297666
they rerun again probably because there is some kind of cronjob . the cronjob will  the status of the process, if the process is not running, the cronjob will run the process.

0
 
LVL 10

Assisted Solution

by:elf_bin
elf_bin earned 75 total points
ID: 20298234
Don't kill 'em - it's your web server, they're not zombies.

Any to kill processes, use the kill coammmand, man kill to find out the syntax
0
 
LVL 2

Accepted Solution

by:
schmendric earned 300 total points
ID: 20302959
You can set the number of threads Apache will launch in the apache config (usually /etc/apache2/httpd.conf).  If you want apache running, but with fewer threads, you can lower the number in the config file (StartThreads, MinSpareThreads, MaxSpareThreads). You can also shut down apache with the init script, usually either `/etc/init.d/apache2 stop` or `/etc/init.d/httpd stop`.
If you do not want apache to start any longer with your server, find the default init level for your server, `less /etc/inittab` (it should be near the top) then edit that runlevels scripts and change S##httpd to s##httpd.  The scripts are case sensitive, so by simply changing the S to lowercase the system will no longer start the process.  So for example, you could, `mv S80httpd s80httpd` and apache would not start next boot.
the init scripts should be in /etc/rc#.d where # is your default runlevel, so for me it is /etc/rc3.d
Cheers.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question