Hi,
So I suspect that something happens to DansGuardian over time. I suspect that and update somewhere along the line introduced the problem since this is something relatively new for this particular machine.
The Ubuntu guys uploaded a new Dansguardian version a couple of weeks ago. From 2.8.8 to 2.9.8, so as you said, this new version could be using more RAM and causing troubles that you didn't have before. As far as I know Dansguardian start quite a few processes.
So my question is, is it likely that 256 RAM simply isn't enough RAM for router/proxt type applications? Is it possible that over-dependence on swap can break an Ubuntu server? I'd like a better understanding of this before I attempt deploying old hardware with a similar configuration in a high priority production environment.
Performance drops dramatically when the system has to swap in/out very often, so yeah, you could be running into that situation. Having said that, if you are only using routing + proxy/content filter, I think we should be able to run those process in 256 MB.
First of all,
Did you only install the eBox modules you needed or instead you used our cd installer which installs by default all the modules and its dependencies? If you did the latter, you should get rid of those modules and dependencies that are not used.
Make sure you have installed apache2-mpm-prefork.
You can also stop the normal apache if you are not using the webserver module:
sudo /etc/init.d/ebox apache stop
eBox 1.2 will use less memory, in order to make eBox 1.0 use less memory you can modify this file:
/var/lib/ebox/conf/apache2.conf
Change from:
<IfModule mpm_prefork_module>
StartServers 1
MinSpareServers 1
MaxSpareServers 1
MaxClients 2
MaxRequestsPerChild 20
</IfModule>
to :
<IfModule mpm_prefork_module>
StartServers 1
MinSpareServers 1
MaxSpareServers 1
MaxClients 1
MaxRequestsPerChild 200
</IfModule>