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

Continuous instantiation of EasyUAClient causes ever-growing (?) memory usage - by: mozesa

$
0
0
*Hello*,

I am doing long running tests, and I noticed that my bare-bone python app memory usage was over 1 GB, it started from 90 MB.

I could boil down the issue to this code.



The write_value function is called continuously with 100 ms delay between invocations.

It seems to me as if each object of EasyUAClient would be added to a global collection.

Currently I use EasyUAClient.SharedInstance but I have read the drawbacks of it.

It is really my fault as I would have to instantiate only one EasyUAClient, I investigate further.

I would be appreciate if you could elaborate me on this EasyUAClient vs. EasyUAClient.SharedInstance topic.


I really appreciate your help.

Best Regards!

Viewing all articles
Browse latest Browse all 1794

Trending Articles