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 » Tue Oct 20, 2009 2:15 pm

Installed 3.0.8 on my XP (well, 2003 actually) the other day, running as service, and today, it was at 22K handles! I have restarted it, and now I can see in process explorer, how the handle count slowly but steadily climbs without even touching server. Procexp reveals lots of unnamed "Event" and "Semaphore" type handles.
Morten Due Jørgensen
http://www.mdjnet.dk

bgbearcatfan
New User
Posts: 8
Joined: Tue Jul 21, 2009 2:57 pm

Re: Handle leak

Post by bgbearcatfan » Tue Oct 20, 2009 8:00 pm

I can confirm this.

I've had the memory usage skyrocket over 500 megs and eventually locks up the system, without any connections to the server

bgbearcatfan
New User
Posts: 8
Joined: Tue Jul 21, 2009 2:57 pm

Re: Handle leak

Post by bgbearcatfan » Tue Oct 20, 2009 8:59 pm

would it be possible to have a link to the previous version, 3.0.7 as that handled fine.

We cannot get cerberus back up and running with this leak.

Nevemrind, 3.0.7 gives the same memory leak

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

Re: Handle leak

Post by mdj » Wed Oct 21, 2009 4:19 am

Note, there is another thread http://www.cerberusftp.com/phpBB3/viewt ... f=4&t=2419 on a memory peek on startup on Vista/W7, I think that is what you are experiencing. This handle leak takes effect slowly over time.
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:

Re: Handle leak

Post by Serin » Thu Oct 22, 2009 1:02 am

bgbearcatfan,

We have a fix coming for the memory leak that affects a small number of users and is likely causing the problem you are seeing. I should have a fix out by the end of the week.

The handle leak is new and I will investigate that immediately.

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

Re: Handle leak

Post by Serin » Thu Oct 22, 2009 10:59 pm

Handle leak confirmed. I will have a fix out this weekend.

bgbearcatfan
New User
Posts: 8
Joined: Tue Jul 21, 2009 2:57 pm

Re: Handle leak

Post by bgbearcatfan » Fri Oct 23, 2009 2:01 pm

Thanks Serin.. I appreciate the info and hard work..

Sorry for posting in the wrong thread..

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

Re: Handle leak

Post by Serin » Sun Oct 25, 2009 10:00 pm

I've posted 3.0.8.1 which should resolve the recurring handle leak. It may also resolve the CPU spike that some people see when first starting the server.

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

Re: Handle leak

Post by mdj » Mon Oct 26, 2009 8:03 am

Yes, it seems much better now, the handle count is stable. - except... Enter the User Manager dialog and exit it again, 6 handles lost (I have 6 users configured, coincidence?). Enter the IP Manager dialog and exit it again, 2 handles lost.

So, there is still slightly wet on the floor. :-)
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:

Re: Handle leak

Post by Serin » Mon Oct 26, 2009 9:41 am

No, I know about the handle loss from opening and closing the User Manager. It is occurring because of the same library that caused the other handle leaks. I only had time to replace the critical sections of code (the ones that were getting called repeatedly every 30 seconds, and a few others). I will have all of the original XML parsing code replaced in the next version and that should resolve all handle leaks.

Thanks for trying it out. Regarding version numbers, I don't print out the 4th version number. I should probably change that for at least the "About" box. You can tell the full version by opening the "Update" box.

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

Re: Handle leak

Post by mdj » Wed Nov 25, 2009 2:38 am

In the latest release (3.1.0.2) the leaks on exiting (yes, exiting actually) the user manager and ip manager are still there. Also, there are quite a few GDI handles leaked in all three managers, and also in the about box.
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:

Re: Handle leak

Post by Serin » Wed Nov 25, 2009 2:47 am

Thanks mdj, I think I am aware of all of the current handle leaks. Many are left over from before and should be fixed within then next few releases.

Post Reply