Server continues to crash due to heavy use of RAM - real-time IP monitoring?

Is there a way to track the real-time IP traffic coming to my server and find out how much bandwidth and RAM is being used?

From time to time it seems that I get a type of DOS attack where my site becomes immune, and I can not do anything until I ask for a hard reset from my hosting company. I would like to be able to see which IP addresses are currently listed on my server at a time when the server becomes unresponsive due to exhausted use of RAM so I can block these IP addresses from accessing my website in the future.

Thanks!

+4
source share
1 answer

There are many tools you can use:

  • Command Line Tools: iptraf , iftop , jnettop

  • Ntop web interface tools (it works as a daemon and you can see many graphs and summaries of all traffic on your server)

  • Old Nagios (nice and reliable, but it may take you a while to familiarize yourself with it)

Here you can find a good article about the best monitoring tools in the Unix / Linux world: Linux Performance Monitoring Tools .

+2
source

Source: https://habr.com/ru/post/1432626/


All Articles