pmarsh wrote:
Munin graphs show absolutely nothing. Meaning it stopped recording at the time of the spike.
Well you need to look at what was going on up to that problem. Are you watching Apache and MySQL in Munin? Those aren't on by default.
I was getting similar issues. What I found to help was tuning Apache, removing unneeded features in Virtualmin.
Here's some tips. This is written with Virtualmin in mind, but could be applied elsewhere....
- Don't run BIND DNS for your domains. Use Linode's DNS Manager instead. Turn off this feature in Virtualmin.
- If you forward your emails to another provider (e.g. GMail, Yahoo), disable SpamAssassin and Virus Filtering in Virtualmin
- Disable DAV in Virtualmin if you aren't using it. Also, edit your httpd.conf via Webmin and comment out the following lines:
Code:
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
Then open the subversion.conf file and comment out:
Code:
#LoadModule dav_svn_module modules/mod_dav_svn.so
#LoadModule authz_svn_module modules/mod_authz_svn.so
This keeps Apache from loading an unneeded module. Restart Apache.
- Tune Apache. There's two sections you need to tune up prefork and mpm. These are in the httpd.conf. Here's my setup:
Code:
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 10
ServerLimit 128
MaxClients 128
MaxRequestsPerChild 500
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
Restart Apache to take effect.
-Take a close look at the LoadModule section in your httpd.conf. You may not need every module that's loading. With Virtualmin, there's quite a few.
- Look at the Features and Plugins page. If you aren't using it, uncheck it. Dovecot, Postgres, Mailman, subversion, etc. After you disable the feature, visit the System->Bootup section in Webmin and verify that those services aren't set to start at boot. For some reason Postgres was set to startup on boot for me and I wasn't using it.
- Use SFTP instead of FTP. Then you can stop ProFTPd as well. You can use a client such as Filezilla do your transfers this way. Its also much more secure.
That ought to get you started.