Agent 2.1.1.1 (OcsService.exe) uses increasing number of handles in XP

Bug #1444215 reported by Scott Saunders
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: Windows Agent
In Progress
Undecided
Unassigned

Bug Description

Yesterday, I noticed a Windows XP machine getting sluggish and found OcsService.exe using more than 27,000 handles. I restarted the service which started out with 128 handles and a day later it is now over 1,500 handles and growing. Another machine shows OcsService.exe with 18,800+ handles. I see this becoming a problem on workstations or servers that are not rebooted every day.

I Recently upgraded the client on a number of machines and am worried about the long term effects of this handle leak. Memory usage seems fine but the handles count keeps growing. I've tried to see what it's doing on Windows 7 but on the 2 I've checked, it shows the OCS Inventory Service is stopped although inventories seem to continue to be updated daily for these machines. How can inventory be reported if the service is not running? I just checked another Windows 7 machine and it show the OCS Inventory Service is running but I don't see a way to list open handles for services in task manager. Any pointers here would be helpful.

By the way, a Windows 2000 Server with OCS Agent v4.0.3.1 and 3 months uptime shows 639 handles.

Revision history for this message
Holger Schletz (holger-schletz) wrote :

I can confirm the leak on Windows XP. The rate appears to be exactly 1 handle per minute.

On a Windows 7 64 bit machine, the amount of handles remains nearly constant about 138. BTW, I used "Process Explorer" to inspect the process.

tags: added: agent
tags: added: 2.1.1.1
Revision history for this message
Scott Saunders (ssaunders) wrote :

I downgraded the agent on a Windows XP client from 2.1.1.1 to 2.0.5.0. The issue also appears to be present in v2.0.5.0; increasing handle count by one per minute.

Tried again with agent v2.0.1.0, same issue.

Revision history for this message
Scott Saunders (ssaunders) wrote :

Although handle count may grow slowly over time (I found an XP client with a handle count of 1,910 but it has been running for 10 months; found another XP x64 client running for a day or two with a handle count of 49) with v4.0.3.1 it does not seem to be increasing at the rate of 1 handle per minute. Agent v4.0.6.1 likewise does not increase handle count at the rate of 1 per minute.

I don't have any other versions, installed or otherwise with which to test.

tags: added: 2.0.1.0 2.0.5.0
Revision history for this message
Scott Saunders (ssaunders) wrote :

I was mistaken on agent version 4.0.6.1 (OcsService.exe v4.0.6.0). I guess I didn't watch it long enough after the initial start up. After a few minutes of first running it will also increase handle count at the rate of 1 per minute.

Agent v4.0.3.2 (OcsService.exe v4.0.3.1) is the only one with which I have not seen this issue occur.

tags: added: 4.0.6.0
tags: added: ocsservice
Changed in ocsinventory-windows-agent:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.