Memory leak on Mac OSX
If you're using FogBugz for Mac OSX, and you're observing a memory leak, it could be due to what appears to be a bug in mod_php. When fogutil.so is loaded dynamically by a dl() call, it appears that the .so stays in memory, but PHP forgets it's there, so it's loaded into memory AGAIN on the next page load.
- First upgrade to the latest version of PHP. (At least version 4.3.11 as of the writing of this article).
- Next, find your php.ini file, and add a line telling PHP to load fogutil.so, like this (first making sure that fogutil.so exists in this location on your system):
extension=fogutil.so - Also, change the line that says
extension_dir=./
to
extension_dir=/Library/WebServer/fogbugz/Website - Then restart Apache. If you have a memory leak that this does not fix, then please contact us via email.
