Apache restart during web creation takes long time

3 posts / 0 new
Last post
#1 Wed, 05/25/2011 - 01:46

Apache restart during web creation takes long time

Here it is log webmin.debug - before it took about 1 sec to restart apache - now it takes 10.

If I run it from commandline it is fast as hell. Less than 1 sec.

12975 [25/May/2011 08:34:44.884620] easy virtual-server CMD "cmd=diff \/etc\/security\/limits.conf.webminorig \/etc\/security\/limits.conf 2>/dev/null" 12975 [25/May/2011 08:34:44.891371] easy virtual-server KILL "signal=USR1 pids=12972" 12975 [25/May/2011 08:34:45.893113] easy apache CMD "cmd=/usr/sbin/apache2ctl stop" 12975 [25/May/2011 08:34:50.931760] easy - apache CMD "cmd=/usr/sbin/apache2ctl start" 12975 [25/May/2011 08:35:01.035417] easy virtual-server READ "/usr/share/webmin/proc/module.info" 12975 [25/May/2011 08:35:01.036077] easy proc CMD "cmd=ps V 2>&1"

Debian 6. Default packages. Can anyone advice me, why this can happen?



Wed, 05/25/2011 - 09:20


Well, that's just running a "/usr/sbin/apache2ctl stop" and "/usr/sbin/apache2ctl start" afterwards.

If it's taking awhile, that means for some reason, those commands are taking some time to process.

You may want to make sure you're using those specific commands while doing your test.


Fri, 05/27/2011 - 04:24

When I run those commands in ZSH (classicaly) it takes them about 1 sec. I found in code that there is 5 sec sleep between Start and Stop.

I will let this to solve problem "on the fly" - as I need this because I am expecting very fast creation of individual instances of our RoR app runed by Phusion Passenger.


Topic locked