AceStar wrote:
Vito Botta wrote:
The very first suggestion I'd give is to get rid of Apache and replace with Nginx. That alone will save you TONS of memory.
I find it annoying when I see people give advice like this.
Annoying? Really? It's just an advice like any other, and since the topic is about "Apache eating memory", it's IMHO a valid advice and I am surprised somebody could find it annoying in any way...
Quote:
Switching to some other software is a huge job, which will take a lot of time and cause a lot of downtime and isn't actually addressing the cause of the problem, which in most cases is a simple fix.
Setting up Nginx only takes minutes, the configuration can easily be prepared while Apache is still running and when everything is ready you'd just switch one off and the other on.... and start seeing lighter use of the resources right away. Unless we are talking about many servers and very complex configurations etc etc, I don't see how a switch like this could require a lot of downtime.
I do agree though on the fact that if there is a problem at application level or anyway not caused by something related to Apache, just switching to another web server won't help figure out the cause of the problem.
However it can at least by time to investigate the issue, as the box would likely be able to handle the same load more easily

Quote:
By starting from scratch with other software, you might fix your problem but introduce a dozen other small problems which all need to be fixed (and which may all need just as much troubleshooting time). You are at least moving to a new and unfamiliar platform and needing to learn new technologies. It should be the very last resort, if anything.
Again, it was just a suggestion on something that could help, together with other changes, to solve the problem / improve the situation. I really can't see what's wrong with suggesting to switch to another web server if there could be some advantages.