Ticket #4399 (new defect)
trac.fcgi process memory usage increases with HTTP hits
| Reported by: | Pistos | Owned by: | jonas |
|---|---|---|---|
| Priority: | high | Milestone: | not applicable |
| Component: | general | Version: | 0.10.3 |
| Severity: | critical | Keywords: | memory |
| Cc: | docwhat@… |
Description
# ps aux | grep trac | grep -v grep apache 28347 1.0 1.8 51164 13816 ? S 22:39 0:01 /usr/bin/python /var/www/localhost/cgi-bin/trac.fcgi # ps aux | grep trac | grep -v grep apache 28347 1.0 1.8 51164 13816 ? S 22:39 0:01 /usr/bin/python /var/www/localhost/cgi-bin/trac.fcgi # ps aux | grep trac | grep -v grep apache 28347 1.2 1.8 51752 14420 ? S 22:39 0:01 /usr/bin/python /var/www/localhost/cgi-bin/trac.fcgi # ps aux | grep trac | grep -v grep apache 28347 1.4 1.9 51992 14600 ? S 22:39 0:02 /usr/bin/python /var/www/localhost/cgi-bin/trac.fcgi # ps aux | grep trac | grep -v grep apache 28347 1.6 1.9 52104 14760 ? S 22:39 0:02 /usr/bin/python /var/www/localhost/cgi-bin/trac.fcgi # ps aux | grep trac | grep -v grep apache 28347 1.7 1.9 52320 14848 ? S 22:39 0:02 /usr/bin/python /var/www/localhost/cgi-bin/trac.fcgi # ps aux | grep trac | grep -v grep apache 28347 1.8 1.9 52320 14856 ? S 22:39 0:02 /usr/bin/python /var/www/localhost/cgi-bin/trac.fcgi # ps aux | grep trac | grep -v grep apache 28347 1.8 1.9 52320 14944 ? S 22:39 0:03 /usr/bin/python /var/www/localhost/cgi-bin/trac.fcgi
Above shows the trac.fcgi process going up in memory usage after every page refresh of a subtree in my svn repository. I only noticed this behaviour two or three weeks ago. I also have several lines in /var/log/messages indicating the Linux OOM killer killing off trac.fcgi processes when I did not notice them myself to SIGKILL them; these by-kernel kills are spread out maybe once every one or two days.
At first I thought this had to do with the svn problems that were fixed from 0.10.2 -> 0.10.3, but I just upgraded, and the behaviour remains. The memory also increases when refreshing a ticket list.
I periodically upgrade the packages on my system, so that might have caused something. e.g. a Python upgrade, library upgrade, or somesuch.
This is on a Gentoo server (kernel version 2.6.17), running FastCGI (2.4.0) under Apache (2.0.58). Python version 2.4.3.


