I'm using version 8.1.28, Ignition Gateway has been experiencing frequent crashes recently, and I'm trying to analyze the issue using VisualVM, but I can't seem to connect.
Recently we often see errors like 'Clock drift, degraded performance, or pause-the-world detected. Max allowed deviation=1000ms, actual deviation=5741ms'.
Did you set the debugging parameters in ignition.conf ? There are samples in an original file that are commented out. Ignition's JVM doesn't listen for debugger connections without those settings.
Edit: Hmmm, these are what I use to enable VisualVM:
Also, I'd guess your hardware is somewhat underpowered, and garbage collection is making those spikes. Consider the following settings in ignition.conf:
Following your previous suggestions, we made some modifications:
Modified the Ignition.conf file.
• wrapper.java.additional.7=-XX:MaxGCPauseMillis=100
• wrapper.java.additional.8=-XX:+PrintGCDetails
Changed the gateway settings.
• Set the CPU Usage Threshold to about 15%
• Set CPU Usage Exceedance Duration to 5
We encountered another round of batch clock drift errors. Shortly after, the gateway crashed. During the time when the issue occurred, we kept receiving error messages like this:
However, we are unsure how to analyze these logs to identify the problem. What should be our next steps after exporting the logs?
For example, in the exported file, we saw many threads named perspective-worker and Jython-Netty-Client.
What are these threads used for?
Under what circumstances would there be so many of these threads running?
Is this phenomenon normal?
How can we avoid these situations?
That's a lot of material. I suggest you open a support ticket. (Given the TxTimeouts, I suspect you have some UI element that can create extreme database loads, and the processing of such a dataset swamps your system.)
Another phenomenon is that VisualVM shows a high CPU usage, but when checking Windows Task Manager, the CPU usage never exceeds 10%. Regarding the -XX:ActiveProcessorCount=<N> parameter, what is the default value for Ignition? Is the slowdown related to this?