![Wink ;)](./images/smilies/icon_wink.gif)
![Very Happy :D](./images/smilies/icon_biggrin.gif)
![Wink ;)](./images/smilies/icon_wink.gif)
Moderator: AniDB
Put ulimit -H -u 300 (for example) in Apache's init script, make 300 some sane number. It sounds very much like you're describing a fork bomb....exp wrote:But the system load and process count increases with every hour so if you take too long the system reaches a state where it is no longer possible to login.
If its the normal watchdog package, the reason is probably that you didn't configure it to require a certain number of free process slots, load average < x, etc. Settings for these are in /etc/watchdog.conf.And yes, I installed a software watchdog last time, but for some reason it does not seem to take action x_X
If you have loadable module support enabled, you don't need to compile a new kernel.[/quote]Problem is that I would need to update the kernel to really use that. And I don't dare to do that, because the system might no longer boot up for good then. And as you can see the response times of the local admin are pretty bad
Bull. The amount of swap used is utterly irrelevant (so long as you're not out!); what matters is the amount of thrashing. Having 1GB of leaked memory sitting in swap doesn't really hurt anything. Having a single megabyte constantly thrashing in and out of swap will kill performance.MilesMi wrote:But your swap is way too big, and here we have a real problem. Looks like you have about 1GB of swap, and this is what is limiting your system load. 1GB is too much swap for our current harddisk technology.
First off, limiting memory usage is much better done with ulimit. Second, this depends on your system's usage --- if you have a program which, for example, slowly leaks memory, having a lot of swap is perfectly appropriate (of course, fixing the memory leak would be better, but we can't always do that).On all other cases, having a small swap is better. In a swap-intensive situation, where processes allocate memory out of control, they will fill the swap in less time, and get killed quicker without raising the system load.