Welcome! Log In Create A New Profile

Advanced

Re: Application performance of Nginx

Sergey A. Osokin
August 09, 2022 04:08PM
Hi Nikhil,

hope you're doing well.

On Tue, Aug 09, 2022 at 02:41:37PM -0400, nikhilagrawal577 wrote:
> We are using Nginx open source flavour. We are running few lua scripts in
> nginx layer.
> Nginx is very slow in processing those programs. We required to increase
> number of instance to support load.
>
> We want to check why nginx is slow ?
> How do we check performance of Nginx application ? Not talking about
> stub-module.
> Metrics like:
> 1. CPU breakdown of Nginx app
> 2. Response time
> 3. Memory breakfown of nginx app

It's possible to use DTrace for nginx debugging, [1]. And it's possible
to use a debugging log, [2] to see how nginx processes a request.

Please note, nginx lua module is the third-party product, so I'd recommend
to ask the module's vendor how to debug an execution of a lua script.

Also, nginx functionality can be extended with NGINX JavaScript module, [3].

Thank you.

References
1. https://nginx.org/en/docs/nginx_dtrace_pid_provider.html
2. https://nginx.org/en/docs/debugging_log.html
3. https://nginx.org/en/docs/njs/

--
Sergey A. Osokin
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Application performance of Nginx

nikhilagrawal577 August 09, 2022 02:41PM

Re: Application performance of Nginx

Sergey A. Osokin August 09, 2022 04:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 95
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready