# VisualVM cannot detect the Ignition gateway process

**URL:** <https://forum.inductiveautomation.com/t/visualvm-cannot-detect-the-ignition-gateway-process/85983>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [February 20, 2024, 3:00am UTC](https://forum.inductiveautomation.com/t/visualvm-cannot-detect-the-ignition-gateway-process/85983 "2024-02-20T03:00:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheng\_YD](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Sheng\_YD](https://forum.inductiveautomation.com/u/Sheng_YD)\
**Post date:** [February 20, 2024, 3:00am UTC](https://forum.inductiveautomation.com/t/visualvm-cannot-detect-the-ignition-gateway-process/85983/1 "2024-02-20T03:00:32Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/4/64d3e3d53988f5aea6dc1a9fc81738b77cbdfed0.png)  
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'.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/f/af87ab523193a6af350be647910f99e58218b266.png)  
The CPU usage on the server is consistently low, and it only increases when these errors occur. Is this normal?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 20, 2024, 1:12pm UTC](https://forum.inductiveautomation.com/t/visualvm-cannot-detect-the-ignition-gateway-process/85983/2 "2024-02-20T13:12:30Z")

</div>

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:

```auto
wrapper.java.additional.11=-Dcom.sun.management.jmxremote
wrapper.java.additional.12=-Dcom.sun.management.jmxremote.port=1089
wrapper.java.additional.13=-Dcom.sun.management.jmxremote.ssl=false
wrapper.java.additional.14=-Dcom.sun.management.jmxremote.authenticate=false

```

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 20, 2024, 1:24pm UTC](https://forum.inductiveautomation.com/t/visualvm-cannot-detect-the-ignition-gateway-process/85983/3 "2024-02-20T13:24:02Z")

</div>

Also, I'd guess your hardware is somewhat underpowered, and garbage collection is making those spikes. Consider the following settings in `ignition.conf`:

```auto
wrapper.java.additional.A=-XX:MaxGCPauseMillis=100
wrapper.java.additional.B=-XX:+PrintGCDetails

```

(Where `.A` and `.B` are integers that do not conflict with any other additional parameters.)

---

<div class="post-metadata">

**Author:** ![Sheng\_YD](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Sheng\_YD](https://forum.inductiveautomation.com/u/Sheng_YD)\
**Post date:** [February 29, 2024, 5:04am UTC](https://forum.inductiveautomation.com/t/visualvm-cannot-detect-the-ignition-gateway-process/85983/4 "2024-02-29T05:04:18Z")

</div>

Following your previous suggestions, we made some modifications:

1. Modified the Ignition.conf file.  
• wrapper.java.additional.7=-XX:MaxGCPauseMillis=100  
• wrapper.java.additional.8=-XX:+PrintGCDetails
2. 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:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/3/d326b933918ec08d82fc3cbc6e5d548b04d0d189.jpeg)  
The Thread Dumps file automatically exported by Ignition during the exception：  
[thread-dump-2024-02-28-144211-1.json](https://forum.inductiveautomation.com/uploads/short-url/m2s5LZOvNUEf5gldCgpB70Zlsru.json) (7.9 MB)  
[thread-dump-2024-02-28-144211-2.json](https://forum.inductiveautomation.com/uploads/short-url/dpCjBBs457DRaQw5rtkcnsXiLcN.json) (5.7 MB)  
[thread-dump-2024-02-28-144211-3.json](https://forum.inductiveautomation.com/uploads/short-url/qBIB2QeUafiihAbV99jo8M7GMya.json) (3.4 MB)  
Additionally, the JVM status observed through VisualVM is shown in the image below.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/b/fb3d3a5092ca7f4d0ba89093cc42db283135049c.jpeg)  
The status of the VMware virtual machine running Ignition:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1ca1c5a38687632904bc14b47794651075dffc18.png)  
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?

---

<div class="post-metadata">

**Author:** ![Sheng\_YD](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Sheng\_YD](https://forum.inductiveautomation.com/u/Sheng_YD)\
**Post date:** [February 29, 2024, 6:49am UTC](https://forum.inductiveautomation.com/t/visualvm-cannot-detect-the-ignition-gateway-process/85983/5 "2024-02-29T06:49:23Z")

</div>

Today we encountered a similar issue again, with the thread count increasing to over 10,000, and the gateway crashing directly.

 ![ede33696-5341-4260-90e7-3c6fad487c2c](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/5/e5a9adfa04eb8c1a6a6e00d298348feaa5d60245.jpeg)

[Ignition-BJP1-BACC-01\_thread\_dump20240229-121552-1.json](https://forum.inductiveautomation.com/uploads/short-url/r5Feyqp9GPBQWaXFu9WBxfli2ct.json) (6.2 MB)  
[Ignition-BJP1-BACC-01\_thread\_dump20240229-121552-2.json](https://forum.inductiveautomation.com/uploads/short-url/ymGDHcPRovJpKZyH4PAwxgJLc2K.json) (5.7 MB)  
[Ignition-BJP1-BACC-01\_thread\_dump20240229-121552-3.json](https://forum.inductiveautomation.com/uploads/short-url/3KIC4bEJJiPcBTIBpzhgWzSOA0L.json) (5.7 MB)  
[Ignition-BJP1-BACC-01\_thread\_dump20240229-121552-4.json](https://forum.inductiveautomation.com/uploads/short-url/zxHV7VMytiSr6KqlQHRCELisfvX.json) (7.5 MB)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 29, 2024, 1:08pm UTC](https://forum.inductiveautomation.com/t/visualvm-cannot-detect-the-ignition-gateway-process/85983/6 "2024-02-29T13:08:39Z")

</div>

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.)

---

<div class="post-metadata">

**Author:** ![Sheng\_YD](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Sheng\_YD](https://forum.inductiveautomation.com/u/Sheng_YD)\
**Post date:** [February 29, 2024, 1:57pm UTC](https://forum.inductiveautomation.com/t/visualvm-cannot-detect-the-ignition-gateway-process/85983/7 "2024-02-29T13:57:36Z")

</div>

> I suggest you open a support ticket.

How should I do it?

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?

 ![2d9d62e4-42d9-462c-a4b9-c2e068295665](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/9/f9eb169fd0d6f41856f3f664d61af28a1be990fb.jpeg)

The issue is now seriously affecting normal production. Could you please give some advice? Thank you.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 29, 2024, 2:02pm UTC](https://forum.inductiveautomation.com/t/visualvm-cannot-detect-the-ignition-gateway-process/85983/8 "2024-02-29T14:02:00Z")

</div>

[https://support.inductiveautomation.com/](https://support.inductiveautomation.com/)
