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

Potential Memory Leak? (Python) - by: support

$
0
0
From: C.
Sent: Monday, November 13, 2017 1:20 PM
To: Z.
Subject: Potential Memory Leak?

Hi Z.,

[..] using QuickOPC in Python and [..] may have found a small memory leak that I wanted to get your input on. It seems to only happen when writing to arrays. If reading/writing to normal tags, there is no upward slope in memory. I was able to reproduce the growth here (seems to be about 1 MB an hour for me), so I wanted to send over a copy of the code and a sample TOP Server project to see if you can replicate this on your side. [...] using 2017.1 currently, but I did test with 2017.2 over the weekend and the behavior was still there for me.

The “[...]” python file is (very rough) code that just writes to two array tags on a 15 second interval. I used the “py2exe” library to compile the code into an executable – so that’s what the “setup.py”, “build” and “dist” folders are. If you open the “dist” folder, you can run the “[...].exe”.

I’ve included a sample TOP Server project as well and generated a temporary license (will be at the bottom of the email) for TOP Server (unfortunately this won’t with the “KEPServer” version) for you, since the [...] sample uses the “Advanced Simulator” driver in TOP Server – which requires a license to run longer than 2 hours at a time. [...], I’m using version 5.21 of TOP Server (you can download it here)

I still need to run some further tests on my side, but I wanted to get this into your hands to at least see if you could replicate the behavior I am seeing thus far. I do want to test with other OPC Servers to rule out it being a problem specifically with TOP Server as well.

Please let me know if there’s any other info I can provide, and I will keep you updated with my other tests as well.

Thank you in advance for the help,
C.

Viewing all articles
Browse latest Browse all 1794

Trending Articles