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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Not reloading on changes

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2009, 10:57 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
Default Not reloading on changes

I have a sevrer in which lsws is not reloading on changes. I tried the binary wrapper and when you issue the restart script from cpanel, it shows it giving signal and whatnot but the pids are same and it does not reload.

This has been a problem when new domains and subdomains are added.

Here is example
root@sl [~]# nano -w /scripts/restartsrv_httpd*
root@sl [~]# ps -u nobody
PID TTY TIME CMD
9829 ? 00:00:02 lshttpd
9832 ? 00:00:02 lshttpd
10688 ? 00:00:00 lshttpd
10689 ? 00:00:00 lshttpd
10690 ? 00:00:00 lshttpd
10691 ? 00:00:00 lshttpd
10692 ? 00:00:00 lshttpd
10693 ? 00:00:00 lshttpd
10694 ? 00:00:00 lshttpd
10695 ? 00:00:00 lshttpd
root@sl [~]# /scripts/restartsrv_httpd
root@sl [~]# ps -u nobody
PID TTY TIME CMD
9829 ? 00:00:02 lshttpd
10688 ? 00:00:00 lshttpd
10689 ? 00:00:00 lshttpd
10690 ? 00:00:01 lshttpd
10691 ? 00:00:00 lshttpd
10692 ? 00:00:00 lshttpd
10693 ? 00:00:00 lshttpd
10694 ? 00:00:00 lshttpd
10695 ? 00:00:00 lshttpd
10917 ? 00:00:00 lshttpd
10918 ? 00:00:00 lshttpd
10919 ? 00:00:00 lshttpd
10920 ? 00:00:00 lshttpd
10921 ? 00:00:00 lshttpd
10923 ? 00:00:00 lshttpd
10924 ? 00:00:00 lshttpd
10925 ? 00:00:00 lshttpd
root@sl [~]# ps -u nobody
PID TTY TIME CMD
9829 ? 00:00:02 lshttpd
10692 ? 00:00:00 lshttpd
10917 ? 00:00:00 lshttpd
10918 ? 00:00:00 lshttpd
10919 ? 00:00:00 lshttpd
10920 ? 00:00:00 lshttpd
10921 ? 00:00:00 lshttpd
10923 ? 00:00:00 lshttpd
10924 ? 00:00:00 lshttpd
10925 ? 00:00:00 lshttpd

Seems like it cannot kill the process or something.

I tried auto reload on changes and got same effect
Reply With Quote
  #2  
Old 05-22-2009, 11:03 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
I notice it also says it is using 2 gb of ram
Reply With Quote
  #3  
Old 05-23-2009, 10:08 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
Ok I totally deleted the old directory and done a fresh install. Same thing, showing over 2gb ram usage. Will not restart/reload after config is added to. Graceful restart does not work, must kill -9 the lshttpd in order for it to reload.

This is an 8 core license, is it possible this is the problem?
Reply With Quote
  #4  
Old 05-23-2009, 10:59 PM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
since 8 core license, there'll be 9 lshttpd processes running.
assume each process consume 200MB memory, the total memory usage may be reported as 200MB x 9 = 1.8G. but needn't worry much, since within the 200MB memory, many of them are shared. the memory usage reported by "top" is same case. using "free -m" can check the actually available memory.

using "pmap -x <pid of an process>" can display the memory map of the process.

however I have no clue about why graceful restart not working well.
Reply With Quote
  #5  
Old 05-27-2009, 09:47 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
Got the restart thing resolved with George via email. thanks George!

Ram usage is still showing well over 2gb, Awaiting his reply on that. It may be normal for 8 core but my 4 core servers show no where near half of that.
Reply With Quote
  #6  
Old 05-27-2009, 11:04 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I think it is normal, the memory usage depends on the how complex the httpd.conf is.
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 08:42 AM.



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