> Hi,
> i've noticed that every 10/20 redirects, from "/path" to "/path/", one of
> them is very slow. They all take 1ms, except some of them that take
> 0.5-3s.
> Is there a way to configure uwsgi to save traceback and/or a profile file
> for these slow requests in production?
>
> Thanks
>


unfortunately when you know that request is "slow" its to late to
enable/disable the profiler.

Probably the best solution is adding a middleware (i suppose you are
running a python app) that enables the python profiler for specific uri
and store the output in a specific file.

This is a good start:

https://docs.python.org/2/library/profile.html


-- 
Roberto De Ioris
http://unbit.com
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to