aio thread - socket leaks?

hungnv nginx-forum at forum.nginx.org
Fri Mar 1 15:46:23 UTC 2019


Hello, 

We ran into a strange issue today. We start settings aio thread  on our
storage (streaming) server. There’s 2 server which different settings: 

Server 1: 

aio on; 

Server 2: 

thread_pool streaming threads=128 max_queue=65536;
aio threads=streaming;


Just after restart 2 servers, server1 can run well without any problem.
On server2, which run by server www, cannot do anything else (for example
execute bash by www), resource temporary unavailable 
I try to check what is going on. 

On server1: 

lsof | grep -i www | wc -l
3188


Server 2: 
lsof | grep -i www | wc -l
346716

There’s many socket open on server 2: 
lsof | grep -i www

nginx 188346 190631     www   43u     unix 0xffff91a357d1fc00        0t0    
14505437 socket
nginx 188346 190631     www   45u     unix 0xffff91a357d1d800        0t0    
14505439 socket
nginx 188346 190631     www   47u     unix 0xffff91a357d1dc00        0t0    
14505441 socket
nginx 188346 190631     www   49u     unix 0xffff91a357d1c800        0t0    
14505443 socket
nginx 188346 190631     www   51u     unix 0xffff91ab9ada5800        0t0    
14505445 socket
nginx 188346 190631     www   53u     unix 0xffff91a364637800        0t0    
14505447 socket
nginx 188346 190631     www   55u     unix 0xffff91a364633000        0t0    
14505449 socket
nginx 188346 190631     www   57u     unix 0xffff91a364636000        0t0    
14505451 socket
nginx 188346 190631     www   59u     unix 0xffff91a364631c00        0t0    
14505453 socket
nginx 188346 190631     www   61u     unix 0xffff91a364632000        0t0    
14505455 socket
nginx 188346 190631     www   63u     unix 0xffff91a364636800        0t0    
14505457 socket
nginx 188346 190631     www   65u     unix 0xffff91a364634000        0t0    
14505459 socket
nginx 188346 190631     www   67u     unix 0xffff91a364637400        0t0    
14505461 socket
nginx 188346 190631     www   69u     unix 0xffff91a364632400        0t0    
14505463 socket
nginx 188346 190631     www   72u     unix 0xffff91b278e95c00        0t0    
14505466 socket

Can you tell me what is going on here? 

-
hungnv

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283242,283242#msg-283242



More information about the nginx mailing list