Please see the following screenshot. There are too many apache processes all in D(disk sleep) state with very high ram usage.
Is there a way to know what's causing these processes to stay in D state and eating so much memory?
I would first look at
You are out of memory (look at your swap figures), so you need to down-tune the number of processes that are started in your apacheconf. Look at