On a server with 30GB of memory serving somewhat high-volume traffic.
For some reason recently Apache2 has started running threads with insane memory usage. 500MB-750MB per thread is not uncommon right now.
php.ini has memory_limit = 128M (php7.0 default).
Apache prefork config is on defaults.
The result is that we're running with only ~1GB of free memory.
What am I missing?
We have Nginx proxying requests and it's processes are more like ~60MB per thread. Here is a screenshot of running top
Any insight as to what could be driving this is appreciated!
netstat -aeenpas root periodically during these times. Count the number of connections in time wait, close wait, etc. This is sometimes hard to spot in logs. If that is the issue, I can offer suggestions for a way around it. – Aaron Jun 21 '17 at 19:14topalready? – Wes Jun 21 '17 at 22:10