How to determine whether nginx uses epoll
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 17:19:03
0
3
784

nginx documentation says that the appropriate method can be automatically selected:

There is normally no need to specify it explicitly, because nginx will by default use the most efficient method.

Use epoll is not specified in the configuration file. How to determine whether nginx uses epoll?

过去多啦不再A梦
过去多啦不再A梦

reply all(3)
刘奇

Download the source code and log
Compile your own version orz

In fact, just compile a version that can be debugged by gdb, and then use gdb to start it, and you can track and see where nginx is blocked when no events arrive (whether it is blocked in the epoll event processing function

For specific tools and methods, please refer to "In-depth Analysis of Nginx" written by Chinese people

小葫芦

Linux versions above 2.6 should all support epoll.

You can use strace to check whether nginx calls the epoll series syscall

刘奇

The default is epoll, in the Linux version

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!