Потребление памяти nginx'ом

Alex Vorona voron at amhost.net
Tue Nov 4 20:34:37 MSK 2008


04.11.2008 19:10, Igor Sysoev wrote:
> On Tue, Nov 04, 2008 at 06:49:24PM +0200, Alex Vorona wrote:
> 
>>>> [root at host]# uname -rm
>>>> 7.0-RELEASE i386
>>> Возможно, дело в новом malloc()е. Можно попробовать запустить так:
>>>
>>> MALLOC_OPTIONS=Dm /usr/local/nginx/nginx
>>>
>>> И добавить в nginx.conf:
>>>
>>> env   MALLOC_OPTIONS=Dm;
>>>
>>> на случай апгрэйда.
>>>
>>>
>> [root at host]# MALLOC_OPTIONS=Dm `which nginx`
>> nginx: (malloc) Unsupported character in malloc options: 'D'
>> nginx: (malloc) Unsupported character in malloc options: 'm'
>> ^C
> 
> Это появилось в 7-STABLE в марте 2008.
> 
> 
аналогичную проблему (с тем же конфигом) наблюдаю на линуксе
host nginx # /etc/init.d/nginx start
  * Checking nginx' configuration ...
2008/11/04 17:33:18 [info] 3960#0: the configuration file /etc/nginx/nginx.conf syntax is ok
2008/11/04 17:33:18 [info] 3960#0: the configuration file /etc/nginx/nginx.conf was tested 
successfully                                                 [ ok ]
  * Starting nginx ... 
                                                      [ ok ]
host nginx # ps uax|grep nginx
root      3964  0.0 21.3 134672 109112 ?       Ss   17:33   0:00 nginx: master process 
/usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx     3965  0.0 21.6 135988 110500 ?       S<   17:33   0:00 nginx: worker process
root      3974  0.0  0.1  67460   728 pts/3    S+   17:33   0:00 grep --colour=auto nginx
host nginx # kill -1 3964
host nginx # ps uax|grep nginx
root      3964 10.5 41.0 236732 209660 ?       Ss   17:33   0:01 nginx: master process 
/usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx     3975  0.0 40.9 236732 209368 ?       S<   17:33   0:00 nginx: worker process
root      3977  0.0  0.1  67476   736 pts/3    S+   17:33   0:00 grep --colour=auto nginx
host nginx #






More information about the nginx-ru mailing list