why apache graceful restart take long time

fandlr

Registered
May 19, 2010
1
0
51
apache graceful restart take long time, anyone can help me?

Code:
[Thu Mar 10 20:07:41 2011] [notice] Graceful restart requested, doing restart
[Thu Mar 10 20:22:35 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Thu Mar 10 20:22:35 2011] [notice] mod_bw : Memory Allocated 0 bytes (each conf takes 36 bytes)
[Thu Mar 10 20:22:35 2011] [notice] mod_bw : Version 0.92 - Initialized [0 Confs]
[Thu Mar 10 20:22:35 2011] [notice] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 configured -- resuming normal operations
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
cPanel Access Level
Root Administrator
Graceful restarts are the "pretty please" of restarts. Apache child processes can block the restart, which can result in behavior you noted. Non-graceful restarts tell the children to "quiet down and go to bed OR ELSE" which results in Apache restarting in a timely manner.