I got a major problem here. I’m trying to solve the problem since 2 weeks now.
I have a gateway (version 7.9.3) that is running a lot of projects and a lot of clients (about 160).
The problem is: When doing a system.tag.write in a tag’s changeValue script, there is a big lag on the write. I may took up to 30 seconds before the write took effect (see the result on the tag). This problem occur with memory tags so the PLC are not the problem.
I add messages log in the script to see if there is delay between the beginning of the execution and the end. The script execute very fast. No problem. But the effect of the system.tag.write is very slow.
Everything on the server looks fine. CPU is about 25%. RAM about 50%. All threads execute fine. The server was a virtual machine with 4 cores and 24 GB of RAM. From the vmware perspective, everything was running fine (almost sleep).
At some times, the problem go away by itself. It look like at some time, a queue is growing and growing and tag write become slow. All others function seems ok. Tag read are ok. Expressions tags ar ok too. A button in a client that write to a tag with system.tag.write is ok too. A system.tag.write in a gateway script (timer) is ok too.
It’s not an easy one and I really need help to identify the problem to take the good decision.