Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Too many open files



ݣ :

  nginx.conf :

user nginx;

 ӣ    Max open files  ң  
root'a,      .
worker_rlimit_nofile        -  
 ulimit -n 5000     .

         -
 .

17  2009 . 6:08   (systeamx@xxxxxxxxx) :
> C  ӣ  ,  1024  - bytes-log' 
>  .
>
>   ulimit -n 5000 ( ),   nginx
>   .
>
>       nginx?  - 
> init        
> /etc/sudoers.
>   .
>
>  ݣ:
>
> root@*** [~]# for pid in $(pgrep nginx); do cat /proc/$pid/limits; done
> Limit           Soft Limit      Hard Limit      Units
> Max cpu time       unlimited      unlimited      ms
> Max file size       unlimited      unlimited      bytes
> Max data size       unlimited      unlimited      bytes
> Max stack size      8388608       unlimited      bytes
> Max core file size    0          unlimited      bytes
> Max resident set     unlimited      unlimited      bytes
> Max processes       57344        57344        processes
> Max open files      5000         5000         files
> Max locked memory     65536        65536        bytes
> Max address space     unlimited      unlimited      bytes
> Max file locks      unlimited      unlimited      locks
> Max pending signals    57344        57344        signals
> Max msgqueue size     819200        819200        bytes
> Max nice priority     0          0
> Max realtime priority   0          0
> Max realtime timeout   unlimited      unlimited      us
> Limit           Soft Limit      Hard Limit      Units
> Max cpu time       unlimited      unlimited      ms
> Max file size       unlimited      unlimited      bytes
> Max data size       unlimited      unlimited      bytes
> Max stack size      8388608       unlimited      bytes
> Max core file size    0          unlimited      bytes
> Max resident set     unlimited      unlimited      bytes
> Max processes       57344        57344        processes
> Max open files      20192        20192        files
> Max locked memory     65536        65536        bytes
> Max address space     unlimited      unlimited      bytes
> Max file locks      unlimited      unlimited      locks
> Max pending signals    57344        57344        signals
> Max msgqueue size     819200        819200        bytes
> Max nice priority     0          0
> Max realtime priority   0          0
> Max realtime timeout   unlimited      unlimited      us
> Limit           Soft Limit      Hard Limit      Units
> Max cpu time       unlimited      unlimited      ms
> Max file size       unlimited      unlimited      bytes
> Max data size       unlimited      unlimited      bytes
> Max stack size      8388608       unlimited      bytes
> Max core file size    0          unlimited      bytes
> Max resident set     unlimited      unlimited      bytes
> Max processes       57344        57344        processes
> Max open files      20192        20192        files
> Max locked memory     65536        65536        bytes
> Max address space     unlimited      unlimited      bytes
> Max file locks      unlimited      unlimited      locks
> Max pending signals    57344        57344        signals
> Max msgqueue size     819200        819200        bytes
> Max nice priority     0          0
> Max realtime priority   0          0
> Max realtime timeout   unlimited      unlimited      us
> Limit           Soft Limit      Hard Limit      Units
> Max cpu time       unlimited      unlimited      ms
> Max file size       unlimited      unlimited      bytes
> Max data size       unlimited      unlimited      bytes
> Max stack size      8388608       unlimited      bytes
> Max core file size    0          unlimited      bytes
> Max resident set     unlimited      unlimited      bytes
> Max processes       57344        57344        processes
> Max open files      20192        20192        files
> Max locked memory     65536        65536        bytes
> Max address space     unlimited      unlimited      bytes
> Max file locks      unlimited      unlimited      locks
> Max pending signals    57344        57344        signals
> Max msgqueue size     819200        819200        bytes
> Max nice priority     0          0
> Max realtime priority   0          0
> Max realtime timeout   unlimited      unlimited      us
> Limit           Soft Limit      Hard Limit      Units
> Max cpu time       unlimited      unlimited      ms
> Max file size       unlimited      unlimited      bytes
> Max data size       unlimited      unlimited      bytes
> Max stack size      8388608       unlimited      bytes
> Max core file size    0          unlimited      bytes
> Max resident set     unlimited      unlimited      bytes
> Max processes       57344        57344        processes
> Max open files      20192        20192        files
> Max locked memory     65536        65536        bytes
> Max address space     unlimited      unlimited      bytes
> Max file locks      unlimited      unlimited      locks
> Max pending signals    57344        57344        signals
> Max msgqueue size     819200        819200        bytes
> Max nice priority     0          0
> Max realtime priority   0          0
> Max realtime timeout   unlimited      unlimited      us
>
>
> 15  2009 . 12:09  Gena Makhomed (gmm@xxxxxxxxx) :
>> On Wednesday, July 15, 2009 at 9:06:10, Artyom Nosov wrote:
>>
>>>> security-  nginx     .
>>>>    http://wiki.opennet.ru/SecurityTop
>>>> nginx       .
>>
>> AN>         .
>>
>>   -         
>>   : sendmail/exim/postfix, proftpd/wuftpd/vsftpd  ..
>>
>> AN>       :  postfix^Wnginx
>> AN>   OpenSSL     chroot?
>>
>> .    nginx  OpenSSL    nginx+OpenSSL.
>> PS  , "chroot is not and never has been a security tool".
>>
>> --
>> Best regards,
>> Gena
>>
>>
>>
>


 




Copyright © Lexa Software, 1996-2009.