I'm running an ecommerce website and it's been running fine for a while now, but lately it keeps on crashing on me. It seems like the RAM gets exhausted on the server and then the server stops responding because RAM is at 99%.
I checked "netstat" through SSH and I see a lot of TIME_WAITED listings but not that many ESTABLISHED listing. I think this is either due to malicious crawling from bots or certain IPs that are attacking my website.
Is there a way I can check any logs to see what/who is actually causing my RAM to get exhausted?