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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] A few litespeed instances running at the same time after graceful

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2012, 01:38 AM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
Default [solved] A few litespeed instances running at the same time after graceful

Is it the way it suppose to be like this ?


masterj 16819 0.2 0.2 40436 21100 ? DN 10:23 0:01 | \_ lsphp:ocal/home/masterj/some.se/page5.php
masterj 29605 0.3 0.2 33240 14812 ? DN 10:27 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
masterj 30874 0.3 0.1 32604 13724 ? SN 10:27 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
masterj 30941 0.2 0.1 32444 13156 ? DN 10:28 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
masterj 31117 0.2 0.1 32444 13224 ? SN 10:28 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
masterj 31186 0.4 0.2 33220 14676 ? SN 10:28 0:00 | \_ lsphp
masterj 31420 0.7 0.2 33656 15560 ? DN 10:29 0:00 | \_ lsphp:ocal/home/masterj/some.se/page2.php
masterj 301 0.4 0.1 33476 13996 ? DN 10:29 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
masterj 412 0.3 0.1 32948 13572 ? DN 10:29 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
masterj 479 0.4 0.1 32948 13568 ? DN 10:30 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
hasselgr 492 5.5 0.3 42936 22952 ? RN 10:30 0:02 | \_ lsphp:hasselgren.no/eventfoto/index.proxy.php
masterj 553 0.8 0.2 33352 14548 ? DN 10:30 0:00 | \_ lsphp:ocal/home/masterj/some.se/page2.php
patrick 644 0.6 0.1 28876 9976 ? SN 10:30 0:00 | \_ lsphp
254329 711 8.2 0.4 50504 32488 ? SN 10:30 0:01 | \_ lsphp
245375 719 7.2 0.3 43452 25872 ? SN 10:30 0:01 | \_ lsphp
magazine 720 6.6 0.4 51352 33360 ? SN 10:30 0:00 | \_ lsphp:l/home/magazine/ort.se/wp-cron.php
moll3434 723 8.3 0.5 55608 37572 ? RN 10:30 0:01 | \_ lsphp:here/local/home/moll3434/d.dk/index.php
245067 738 2.4 0.2 33672 15832 ? SN 10:30 0:00 | \_ lsphp
emschen 757 8.1 0.3 40672 22956 ? SN 10:30 0:00 | \_ lsphp
244980 782 3.0 0.1 28564 9256 ? SN 10:30 0:00 | \_ lsphp
root 16574 0.0 0.0 1840 416 ? SN 10:22 0:00 \_ lscgid
root 16600 1.5 0.7 80040 56248 ? SN 10:22 0:07 litespeed (lshttpd)
httpd 22799 3.3 0.9 111644 67228 ? SNl 10:25 0:10 \_ litespeed (lshttpd)
lsadm 29492 0.6 0.1 10396 8032 ? S 10:27 0:01 | \_ admin_php
masterj 29612 0.3 0.2 33236 14824 ? DN 10:27 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
masterj 31036 0.1 0.1 32444 13152 ? SN 10:28 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
patrick 31452 0.5 0.1 28584 9936 ? SN 10:29 0:00 | \_ lsphp:/local/home/patrick/y.nu/yshout/yshout.php
carola 31481 0.7 0.2 38248 19948 ? DN 10:29 0:00 | \_ lsphp:/home/carola/johang.se/page9.php
masterj 31653 0.3 0.1 33476 14084 ? DN 10:29 0:00 | \_ lsphp:ocal/home/masterj/se.se/page5.php
245112 300 0.7 0.2 38008 19784 ? DN 10:29 0:00 | \_ lsphp:local/home/tasom/tm.se/Gastbok.php
masterj 352 0.3 0.1 33212 13896 ? DN 10:29 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
masterj 554 0.9 0.2 33332 14768 ? DN 10:30 0:00 | \_ lsphp:ocal/home/masterj/some.se/page2.php
masterj 568 0.7 0.1 32552 13076 ? DN 10:30 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
masterj 678 0.9 0.1 32288 12924 ? DN 10:30 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
245444 695 9.6 0.3 39008 21408 ? SN 10:30 0:01 | \_ lsphp
hasselgr 741 6.2 0.2 40540 20464 ? SN 10:30 0:00 | \_ lsphp
asgeir 742 1.0 0.1 29136 10904 ? SN 10:30 0:00 | \_ lsphp
akusk 760 7.3 0.2 38520 20672 ? SN 10:30 0:00 | \_ lsphp
httpd 22800 0.3 0.7 100336 56100 ? SNl 10:25 0:00 \_ litespeed (lshttpd)
root 22807 0.0 0.0 1840 420 ? SN 10:25 0:00 \_ lscgid
root 22822 2.3 0.7 80096 56252 ? SN 10:25 0:07 litespeed (lshttpd)
httpd 31655 1.9 0.9 109908 64800 ? DNl 10:29 0:01 \_ litespeed (lshttpd)
masterj 376 0.5 0.2 34012 15232 ? DN 10:29 0:00 | \_ lsphp:ocal/home/masterj/some.se/page2.php
244778 520 4.2 0.1 29656 11376 ? SN 10:30 0:01 | \_ lsphp
masterj 527 0.4 0.1 32816 13344 ? DN 10:30 0:00 | \_ lsphp:ocal/home/masterj/some.se/page5.php
magazine 573 5.6 0.4 45976 28584 ? SN 10:30 0:01 | \_ lsphp
krnd1256 634 9.6 0.2 38328 20688 ? SN 10:30 0:02 | \_ lsphp
karvegar 642 5.3 0.3 44756 27008 ? SN 10:30 0:01 | \_ lsphp
245665 652 12.1 0.4 51944 34112 ? RN 10:30 0:02 | \_ lsphp:e/local/home/mikaela1/as.se/index.php
jeanett 660 3.5 0.2 38040 18004 ? SN 10:30 0:00 | \_ lsphp
bang123 664 1.7 0.2 33480 15680 ? SN 10:30 0:00 | \_ lsphp
patrick 704 0.8 0.1 28876 9984 ? SN 10:30 0:00 | \_ lsphp
asgeir 705 2.7 0.1 33672 13284 ? SN 10:30 0:00 | \_ lsphp:e/local/home/asgir/gnsetter.dk/index.php
244675 727 6.6 0.3 40676 22976 ? SN 10:30 0:00 | \_ lsphp
renetbk 746 2.6 0.1 32372 12520 ? SN 10:30 0:00 | \_ lsphp
bcc1955 747 3.6 0.2 33780 16296 ? SN 10:30 0:00 | \_ lsphp
httpd 749 0.6 0.1 29168 8928 ? SNs 10:30 0:00 | \_ lsphp -c /usr/local/lsws/lsphp53/etc/php.ini
httpd 750 0.0 0.0 29444 6080 ? SN 10:30 0:00 | | \_ lsphp
245392 759 7.1 0.2 33748 15288 ? SN 10:30 0:00 | \_ lsphp
244652 770 1.2 0.1 28588 9480 ? SN 10:30 0:00 | \_ lsphp
244980 784 2.0 0.1 28564 9348 ? SN 10:30 0:00 | \_ lsphp
httpd 31656 0.3 0.7 100268 56100 ? SNl 10:29 0:00 \_ litespeed (lshttpd)
root 31657 0.0 0.0 1840 424 ? RN 10:29 0:00 \_ lscgid
root 31674 8.3 0.7 75504 54408 ? SN 10:29 0:05 litespeed
root 31675 0.0 0.0 1840 416 ? SN 10:29 0:00 \_ httpd (lscgid)


One say

2012-10-02 10:29:35.397 [INFO] Stop listener 127.0.0.1:80.
2012-10-02 10:29:35.410 [NOTICE] [Child: 31655] Setup swapping space...
2012-10-02 10:29:35.410 [NOTICE] [child: 31655] Successfully change current user to httpd
2012-10-02 10:29:35.410 [NOTICE] [Child: 31655] Core dump is enabled.
2012-10-02 10:29:35.429 [NOTICE] [Child: 31655] LiteSpeed/4.1.13 Enterprise starts successfully!
2012-10-02 10:29:35.429 [NOTICE] [Child: 31655] Start shutting down gracefully ...
2012-10-02 10:29:35.430 [INFO] Stop listener 212.97.132.176:443.
2012-10-02 10:29:35.430 [INFO] Stop listener 212.97.132.176:80.
2012-10-02 10:29:35.430 [INFO] Stop listener *:7080.
2012-10-02 10:29:35.430 [NOTICE] [Child: 31656] Setup swapping space...
2012-10-02 10:29:35.430 [NOTICE] [child: 31656] Successfully change current user to httpd
2012-10-02 10:29:35.430 [NOTICE] [Child: 31656] Core dump is enabled.
2012-10-02 10:29:35.431 [NOTICE] [Child: 31656] LiteSpeed/4.1.13 Enterprise starts successfully!
2012-10-02 10:29:35.530 [NOTICE] [Child: 31656] Start shutting down gracefully ...

# date
Tue Oct 2 10:35:26 CEST 2012


Wonder how long it can shut down the instance, what the settings responsible for it.

The server itself is under heavy load, high traffic. With huge io.


top - 10:37:08 up 17:36, 1 user, load average: 15.62, 15.25, 14.48
Tasks: 172 total, 15 running, 157 sleeping, 0 stopped, 0 zombie
Cpu0 : 4.5%us, 21.7%sy, 52.8%ni, 9.0%id, 6.4%wa, 0.0%hi, 5.5%si, 0.0%st
Cpu1 : 3.0%us, 15.0%sy, 33.0%ni, 6.9%id, 3.6%wa, 16.1%hi, 22.3%si, 0.0%st
Mem: 7090156k total, 6489728k used, 600428k free, 61204k buffers
Swap: 1048568k total, 43836k used, 1004732k free, 4589096k cached


It is running 2 lsphp versions, 5.2 and 5.3.
Will appreciate any help!

Last edited by NiteWave; 10-03-2012 at 04:33 AM..
Reply With Quote
  #2  
Old 10-02-2012, 01:52 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Quote:
Wonder how long it can shut down the instance, what the settings responsible for it.
lsws admin console->Server->General->Graceful Restart Timeout (secs):
"Graceful Restart Timeout During graceful restart, the new server instance is up, while the old instance will continue to handle existing requests. This timeout defines how long the previous instance shall wait before exit. Default value is 300 seconds, -1 means wait forever, 0 means no wait and abort immediately. "
Reply With Quote
  #3  
Old 10-02-2012, 02:02 AM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
Apparently it takes up to 10 min to gracefully shut down.
Is it normal?
Reply With Quote
  #4  
Old 10-02-2012, 02:07 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
yes, it may be normal. the reason:
1.the process will complete the request before it shut down itself. the request may take long time. for example: downloading a big video file.

2.the server is under high load, so the request may take longer time to complete than usual time.
Reply With Quote
  #5  
Old 10-03-2012, 04:28 AM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
Perfect! Thank you!
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:23 AM.



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