PyS2OPC client abnormal memory consumption
Description
The client consume abnormal amounts of memory when sending lots of Read or Write requests.
Analysis
A first identified culprit is the Connection objects, which keeps all Requests and their Responses in its _dRequestContexts
.
However, another "leak" source must be investigated: the client may take up to 2.4 GB while sending 12 million write request items.
This payload is not in memory anymore when exiting the with PyS2OPC.Initialize():
context.