# Monitor Gateway CPU and memory with Java Mission Control

**URL:** <https://forum.inductiveautomation.com/t/monitor-gateway-cpu-and-memory-with-java-mission-control/15469>\
**Category:** Ignition\
**Created:** [September 25, 2017, 8:38pm UTC](https://forum.inductiveautomation.com/t/monitor-gateway-cpu-and-memory-with-java-mission-control/15469 "2017-09-25T20:38:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcabatic](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@kcabatic](https://forum.inductiveautomation.com/u/kcabatic)\
**Post date:** [September 25, 2017, 8:38pm UTC](https://forum.inductiveautomation.com/t/monitor-gateway-cpu-and-memory-with-java-mission-control/15469/1 "2017-09-25T20:38:56Z")

</div>

Hi,

As title states is there a way to monitor the CPU and memory usage using Java Mission Control tools? I know I am able to do this with clients. However, when running JMC I do not see process for the gateway.

The primary reason we are doing this is to capture a spike in memory usage we experienced. When we have the gateway running it typically uses 600mb of memory. Twelve hours in we see the gateway memory spike to 2GB within a few minutes. We are currently trying to figure out what caused the spike.

Which is why we want to use JMC tools to monitor and if needed do memory dump.

Thanks,

Ken

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 25, 2017, 8:50pm UTC](https://forum.inductiveautomation.com/t/monitor-gateway-cpu-and-memory-with-java-mission-control/15469/2 "2017-09-25T20:50:54Z")

</div>

Sure, look for “org.tanukisoftware.wrapper.WrapperSimpleApp com.inductiveautomation.catapult.Catapult”

If you’re still not seeing it, try launching jmc as administrator.

---

<div class="post-metadata">

**Author:** ![kcabatic](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@kcabatic](https://forum.inductiveautomation.com/u/kcabatic)\
**Post date:** [September 25, 2017, 9:00pm UTC](https://forum.inductiveautomation.com/t/monitor-gateway-cpu-and-memory-with-java-mission-control/15469/3 "2017-09-25T21:00:50Z")

</div>

Just confirming when you say "“org.tanukisoftware.wrapper.WrapperSimpleApp com.inductiveautomation.catapult.Catapult”

Do you mean I need to comment them out of the ignition.conf file?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 25, 2017, 9:05pm UTC](https://forum.inductiveautomation.com/t/monitor-gateway-cpu-and-memory-with-java-mission-control/15469/4 "2017-09-25T21:05:54Z")

</div>

No, I’m not sure what you’re talking about now.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/556704bf7f70bb152cb287388e8253426af89307.png)

---

<div class="post-metadata">

**Author:** ![kcabatic](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@kcabatic](https://forum.inductiveautomation.com/u/kcabatic)\
**Post date:** [September 25, 2017, 9:11pm UTC](https://forum.inductiveautomation.com/t/monitor-gateway-cpu-and-memory-with-java-mission-control/15469/5 "2017-09-25T21:11:05Z")

</div>

Ok I think I have a setting missing when I run JMC as admin I only see 1 java process (JVM running mission control)

I may be missing some extra configurations?

---

<div class="post-metadata">

**Author:** ![martinel3746](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@martinel3746](https://forum.inductiveautomation.com/u/martinel3746)\
**Post date:** [September 26, 2017, 8:49pm UTC](https://forum.inductiveautomation.com/t/monitor-gateway-cpu-and-memory-with-java-mission-control/15469/6 "2017-09-26T20:49:32Z")

</div>

Have you looked at the tags in:  
**[System]Gateway/Performance**

---

<div class="post-metadata">

**Author:** ![kcabatic](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@kcabatic](https://forum.inductiveautomation.com/u/kcabatic)\
**Post date:** [September 28, 2017, 9:24pm UTC](https://forum.inductiveautomation.com/t/monitor-gateway-cpu-and-memory-with-java-mission-control/15469/7 "2017-09-28T21:24:14Z")

</div>

Thanks,

Unfortunately, it only gives a number regarding performance

I am looking for ability to do a heap dump of memory to try and track what caused the memory to suddenly jump in out gateway

---

<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:** [September 29, 2017, 12:40pm UTC](https://forum.inductiveautomation.com/t/monitor-gateway-cpu-and-memory-with-java-mission-control/15469/8 "2017-09-29T12:40:00Z")

</div>

Oracle’s [jmap](http://docs.oracle.com/javase/7/docs/technotes/tools/share/jmap.html) tool is pretty handy, particularly in histogram mode. But fair warning: each such probe will create a brief pause in the application. Pretty sure that’s true of all tools that use Java’s debug interfaces to analyze memory consumption.
