Part of /etc/apache2/sites-enabled/myproject.conf:
WSGIDaemonProcess myporject user=tester group=tester processes=2 threads=5 python-eggs=xxx display-name=xxx
When one user started browsing the website, memory used was increased by 80M (from output of free -m
) and the memory usage would not go down even though the user logged out and shut down the browser, unless running service apache2 restart
. I tried worker mode
and prefork mode
, but still not released.
When inactivity-timeout
set to 60 seconds, memory usage will go down 60 seconds after log out.
I am new to apache2 and wsgi configuration. I just wonder whether setting inactivity-timeout
is the good way for the memory usage to go down? Any other important configuration missing?
Any comments welcomed. If more information needed, please tell me. Thanks