My users are complaining that FogBugz is running slowly all of a sudden. When I run top on my FogBugz web server (which is on Linux), I see that the mod-mono-server2.exe process is consuming 99% CPU.
How can I prevent this from happening?
|
4
1
|
My users are complaining that FogBugz is running slowly all of a sudden. When I run How can I prevent this from happening? |
|||
|
|
|
3
|
We're still working on getting a reliable repro of this problem. This issue has been very tough to replicate and minimize into a small test case, but once we do, we'll report it to the Mono team for a fix. As a workaround, your best bet is to setup up a nightly cronjob which restarts FogBugz. This has worked pretty well as a stopgap for most customers. The command to restart FogBugz on *nix is:
The default path is If this doesn't work try the steps in the Not Working? section below. Deprecated as of FogBugz 8.3:Contact Fog Creek Customer Service before trying this option. Feel free to use the simple script restart further below, however. There was a more elegant way to reset FogBugz without having to use a cronjob. In your
This should force Mono to restart after a certain number of requests or a certain number of seconds of uptime, and should keep the memory leak problem at bay. The best solution is to perform a simple restart cron job described below. Not Working?Sometimes mono doesn't restart when it should. If you find that Setup a cron job to do the following:
If you don't have pkill, you should be able to get it through your package manager. You could also do an analog of the above in the fogbugzctl script itself. If you do so, we recommend having the script sleep for a couple of seconds between the |
|||||||||||||||
|
|
1
|
FogBugz 8.1.1 running on Ubuntu 9.2: After running for several days, ran ‘ps alx | grep mono’ and found two processes:
Notice that 12502 is using a significant amount of memory (8.6%) but so far the CPU utilization looks fine. Restarted FogBugz (/etc/init.d/fogbugzctl restart) and checked for mono processes:
Now we have three … one “old” process (12502) – and it is using nearly all of the CPU. The amount of free memory has been reduced significantly. Stopped FogBugz, killed all mono processes, and started FogBugz:
Notice that the available memory is of the order of 50MB more than it was after running FogBugz for several days. My conclusions: 1. mono has a memory leak 2. Neither restarting nor stopping FogBugz terminates the mono process spawned by FogBugz. Temporary fix: • Run a job daily that (a) stops FogBugz, (b) searches for and kills all mono processes, and (c) starts FogBugz again. |
|||
|
|
|
1
|
I tried using the script with
per the answer given above, but I found that I needed to insert a sleep statement before the start command in order for the server to come back up properly. Being the cautious type, my script now looks like this:
She's set to fire every morning around 3:00! |
||
|
|
|
0
|
Seeing this also with Version 7.3.1 (DB 743, Build 1866) on CentOS 5.5 |
||
|
|
|
0
|
I'm still seeing this with 8.1.4 (DB 770, Build 1). Any new answers from the fogcreek people? |
|||
|
|
0
|
I see this as well. I'm going to put a "kill nightly" script on the Linux server because once mono goes "runaway" like this, the performance hit on the server is severe! |
||
|
|
|
0
|
I'm interested to see if there have been any updates on this as well! Going to try implementing the suggested fix to see what happens. Any chance this is related to having a previous install of Mono on the server? We ran FB6 on the same machine and have not as of yet un-installed Mono that was installed to support that older configuration. Server is RHEL5 on Intel. |
||
|
|
|
0
|
Been seing this regurlarly too. Both in ver 7 and now in latest ver 8.x |
||
|
|