Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

Possible Memory Growth in Unmanaged Data Client Code - by: gkalipershad

$
0
0
Z,

Please see the below email that I received from a customer:

"I have written a number of Windows services in C# running on Server 2012 R2 that use your OpcLabs.BaseLib and OpcLabs.EasyOpcClassic .dlls version 5.50.323.1 to read and write values from and to Automation Direct PLCs under KepServerEx control. The latest service is experiencing memory buildup when polling a dozen PLCs at 60 second intervals in a thread. Indications on Windows Task Manager are that it is growing at about 100MB per day. I have used Ants Memory Profiler and the growth is entirely in Unmanaged Code. The only Unmanaged Code source in this service is the referenced Opc .dlls. There are no C# arrays, lists or objects being constructed in the polling thread, only objects that were constructed at service startup. I have tried disposing of the EasyDAClient by calling the client.Dispose method in the dll interface, nulling the object reference, and calling GC.Collect() all to no avail."

Please let me know what additional details I need to obtain from them, or if you have any questions I should ask.

Thanks,
GK

Viewing all articles
Browse latest Browse all 1794

Trending Articles