Hello,
I am using Nginx 0.7.43 with php-fpm(php 5.2.8) on Debian 5. I have
observed a strange behavior:
When I compiled and installed it, the total memory usage of my VPS was
91 M. After some time it became 131M and is increasing slowly. Now it
stands at 191M. I suspect some memory leak.
blankdot@alpha:~$ free -m
total used free shared buffers
cached
Mem: 512 191 320 0
0 0
-/+ buffers/cache: 191 320
Swap: 0 0 0
blankdot@alpha:~$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME
COMMAND
root 1 0.0 0.1 1904 688 ? Ss Mar29 0:00 init
[2]
root 20313 0.0 0.2 34104 1312 ? Sl Mar29 0:00 /usr/
sbin/rsyslogd -c3
root 20326 0.0 0.1 5212 1000 ? Ss Mar29 0:00 /usr/
sbin/sshd
99 20345 0.0 0.1 12092 796 ? S Mar29 0:00 /usr/
sbin/maradns -f /etc/maradns/mararc
root 20346 0.0 0.1 1560 532 ? S Mar29 0:00
logger -p daemon.notice -t maradns.etc_maradns_mararc
root 20376 0.0 0.2 2624 1300 ? S Mar29 0:00 /bin/
sh /usr/bin/mysqld_safe
mysql 20415 0.0 2.4 61236 12680 ? Sl Mar29 0:15 /usr/
sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-
file=/var/run/my
root 20416 0.0 0.1 1560 536 ? S Mar29 0:00
logger -p daemon.err -t mysqld_safe -i -t mysqld
root 21537 0.0 0.9 8160 4728 ? S Mar29 0:00
python /usr/sbin/denyhosts --daemon --purge --config=/etc/
denyhosts.conf --config=/etc/denyh
104 21804 0.0 0.1 6112 928 ? Ss Mar29 0:00 /usr/
sbin/exim4 -bd -q30m
root 21808 0.0 0.3 6884 1744 ? Ss Mar29 0:00
nginx: master process /usr/sbin/nginx
www-data 21809 0.0 0.5 7452 2716 ? S Mar29 0:04
nginx: worker process
root 21812 0.0 0.4 14324 2312 ? Ss Mar29 0:00 /usr/
local/bin/php-cgi --fpm --fpm-config /usr/local/etc/php-fpm.conf
www-data 21813 0.1 3.9 29112 20908 ? S Mar29 3:04 /usr/
local/bin/php-cgi --fpm --fpm-config /usr/local/etc/php-fpm.conf
www-data 21814 0.1 3.8 29044 20308 ? S Mar29 3:02 /usr/
local/bin/php-cgi --fpm --fpm-config /usr/local/etc/php-fpm.conf
www-data 21815 0.1 3.1 25372 16348 ? S Mar29 3:09 /usr/
local/bin/php-cgi --fpm --fpm-config /usr/local/etc/php-fpm.conf
root 21835 0.0 0.1 1972 792 ? Ss Mar29 0:00 /usr/
sbin/cron
www-data 11619 0.1 3.4 26488 18224 ? S Mar29 2:59 /usr/
local/bin/php-cgi --fpm --fpm-config /usr/local/etc/php-fpm.conf
www-data 11857 0.1 3.9 29424 20484 ? S Mar29 3:04 /usr/
local/bin/php-cgi --fpm --fpm-config /usr/local/etc/php-fpm.conf
root 23705 0.0 0.4 7968 2612 ? Ss 15:13 0:00 sshd:
blankdot [priv]
blankdot 23736 0.0 0.2 7968 1528 ? S 15:13 0:00 sshd:
blankdot@pts/0
blankdot 23737 0.0 0.3 3264 1828 pts/0 Ss 15:13 0:00 -bash
blankdot 26348 0.0 0.1 2236 900 pts/0 R+ 15:18 0:00 ps
aux