Application performance of Nginx
Sergey A. Osokin
osa at freebsd.org.ru
Tue Aug 9 20:05:32 UTC 2022
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
More information about the nginx
mailing list