MyBB Community Forums

Full Version: high httpd load
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
*EDIT*Mods please move in necessary.

Lately my site has been slow to connect with the occasional problem of connecting at all. I contacted my web host and after a few emails the issue seems to be resolved. I asked them specifically what happened and they replied by saying the below. I will be honest and say that this is above my head but I am willing to learn.

Quote:We could see that the httpd traffic on the server was high. We have now tweaked the apache by adding the following entries in the httpd.conf file:

=====
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 3
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 120
MaxRequestsPerChild 1000
=====

Now the load has been reduced. You may verify the snippet given below:

=====
root@host [~]# w
15:59:32 up 150 days, 7:09, 1 user, load average: 0.58, 0.46, 1.95
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 support.privates 15:19 0.00s 0.04s 0.00s login -- root
root@host [~]#
=====
root@host [~]# free -m
total used free shared buffers cached
Mem: 512 203 308 0 0 0
-/+ buffers/cache: 203 308
Swap: 0 0 0
=====
root@host [~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vzfs 30G 5.9G 25G 20% /
/dev/simfs 30G 5.9G 25G 20% /tmp
none 7.9G 4.0K 7.9G 1% /dev
/dev/simfs 30G 5.9G 25G 20% /var/tmp
root@host [~]#
=====

We could see several memory alerts through the power panel interface, Desktop > Logs > Resource Alerts. Please contact your developers and optimize the scripts.

Please let us know if the issue persists.

Thanks,
Rachel
KnownHost Support


Towards the end where she says, "Please contact your developers and optimize the scripts.", are my currently installed plugins the problem? This might not be related but I did upgrade from 1.4.11 --->1.1.12--->1.4.13 today.

Any help would be great,

Jeremy
If they didn't use KeepAlive before then that'd add a ton of load, alright. But that's a misconfiguration of the webserver, not MyBB's fault. The stats they printed seem fine though. If that's a dedicated or vserver used only by you, there's plenty of ram left (although zero filesystem buffer/caches sounds a bit scary).

You didn't include the so called alerts, so no one can comment on those...
Thanks for the insight. I knew it wasn't an issue with MyBB, but I figured posting here would be my best bet.

I will post up the so called alerts later. Actually, where do I find these alerts?
the alerts your host is talking about are located in your hosting control panel. nothing to do with MyBB
(2010-05-12, 03:11 AM)pavemen Wrote: [ -> ]the alerts your host is talking about are located in your hosting control panel. nothing to do with MyBB

Yes, I knew this but where exactly in Cpanel?
According to their mail, Desktop > Logs > Resource Alerts