DEV Community

Valentin Degenne
Valentin Degenne

Posted on • Edited on

1 1

ngxtop

If you are looking for a fast way for live monitoring your server http(s) traffics here's a tool that is easy to install : ngxtop

All you need is to have python and pip installed on your system :

apt-get install python python-pip

And then use pip to install the tool

pip install ngxtop

If the installation fails, there is a big chance that you need to update the setup tools as well and try again :

pip install --upgrade setuptools
pip install ngxtop

After the tool is installed you can type ngxtop. The tool assumes you didn't modify the access log in your nginx configuration (/var/log/nginx/access.log) and run successfully.

Next you can visit one page of your server and you should see live update in the terminal.

More details on the github

Further

If you search for a more advanced tool you should also consider checking goaccess. goaccess is more like a log analyzer, it is also real-time but the stats is made from all the data in the log versus ngxtop that starts making stats from the moment you run the command.

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay