Handle leak

Think you've found a bug? Post a description here.

Moderator: Serin

Post Reply
mdj
Moderator
Posts: 656
Joined: Mon Aug 18, 2003 4:00 am
Location: Denmark
Contact:

Handle leak

Post by mdj » Fri Sep 29, 2006 9:15 am

I have just observed another leak in Cerberus. This time it is handles to threads, that don't add up. Over time, the handle count reported by task manager slowly increases - probably proportionally with the load on the server. Using procexp from sysinternals.com, I can see that at least the number of thread handles increases over time. At the time of writing, Cerberus has 4 threads running, but procexp reports 41 handles to threads, some duplicates, and many to threads that do not exist (anymore) according to procexp.

I cannot say exactly, when this happens, I see a User ID count of 47 in the log window, but a total connections count on the stats page of 32, so it *might* be a leak on each connection. Hang on, let's see... Oh yes, it appears a connection will increase the handle count, however, I cannot see anymore thread handles than I could before, so thread handles may not hold the entire truth, but I guess there should be something for you, Serin, to figure out too. :-)
Morten Due Jørgensen
http://www.mdjnet.dk

mdj
Moderator
Posts: 656
Joined: Mon Aug 18, 2003 4:00 am
Location: Denmark
Contact:

Post by mdj » Sun Apr 29, 2007 8:34 am

Just checking in on this one again using 2.45, and it seems there is no handle leak anymore. However, using my little stress-script (from http://www.cerberusftp.com/phpBB3/viewtopic.php?t=84), Cerberus is leaking memory. If you look in the task manager, while the script is running, you can see VM size slowly climbing.
Morten Due Jørgensen
http://www.mdjnet.dk

User avatar
Serin
Site Administrator
Posts: 1785
Joined: Sat Jan 01, 2005 6:57 pm
Location: United States
Contact:

Post by Serin » Sun Apr 29, 2007 11:52 pm

Thanks mdj, I'll see what I can find.

Post Reply