LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > httpd -n ## processess

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2011, 10:53 PM
strebel strebel is offline
Member
 
Join Date: Nov 2010
Posts: 13
Default httpd -n ## processess

At times when we see a server under load and struggling we see processes spawned by root with the command httpd -n 41 or some other number.

What are these processes?

We recently provisioned a new lsws 4.1.7 node and with 6 cores and load of 2 we are seem many httpd -n ## procs. (as if it was under load)
Reply With Quote
  #2  
Old 11-02-2011, 09:43 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
pls do 'httpd -h' to find out what the option '-n' do for your httpd.
Reply With Quote
  #3  
Old 11-02-2011, 12:41 PM
strebel strebel is offline
Member
 
Join Date: Nov 2010
Posts: 13
no httpd service.

root@PAGE01VMW03:/home/jstrebel# which httpd
root@PAGE01VMW03:/home/jstrebel# httpd -h
bash: httpd: command not found
Reply With Quote
  #4  
Old 11-02-2011, 01:10 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
use pstree to check who own those processes.
Reply With Quote
  #5  
Old 11-02-2011, 01:15 PM
strebel strebel is offline
Member
 
Join Date: Nov 2010
Posts: 13
owned by root
Reply With Quote
  #6  
Old 11-02-2011, 02:04 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
It is not related to LSWS.
You should find out what it is doing with "lsof" and "strace".
Reply With Quote
  #7  
Old 11-02-2011, 02:20 PM
strebel strebel is offline
Member
 
Join Date: Nov 2010
Posts: 13
Sorry, guess my next reply did not save, it is owned by litespeed



├─litespeed─┬─httpd
│ └─litespeed─┬─admin_php
│ ├─httpd
Reply With Quote
  #8  
Old 11-03-2011, 03:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Our lscgid should be listed as
Quote:
httpd (lscgid)
in "ps -ef" output, and usually only one.
not httpd -n ##
Reply With Quote
  #9  
Old 11-03-2011, 03:25 PM
strebel strebel is offline
Member
 
Join Date: Nov 2010
Posts: 13
See this image: http://cl.ly/3V1q283Y41151r0L2A3Y

The httpd -n 72 process is under the litespeed thread.

As I said, we see these from time to time when a server is really under load, but in this case the load on a 8 core machine is ~2 and these are spawning 2 or 3 at a time.
Reply With Quote
  #10  
Old 11-03-2011, 04:48 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
That's normal for PHP suEXEC, it will change user ID and execute lsphp5, usually it is not visible in ps, nothing to worry about.
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:06 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.