# Java Agent -100% CPU

**URL:** <https://discuss.elastic.co/t/java-agent-100-cpu/260942>\
**Category:** APM\
**Tags:** java\
**Created:** [January 13, 2021, 7:13am UTC](https://discuss.elastic.co/t/java-agent-100-cpu/260942 "2021-01-13T07:13:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gruselglatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gruselglatz/32/42675_2.png) [@gruselglatz](https://discuss.elastic.co/u/gruselglatz)\
**Post date:** [January 13, 2021, 7:13am UTC](https://discuss.elastic.co/t/java-agent-100-cpu/260942/1 "2021-01-13T07:13:33Z")

</div>

Hey,

We use the APM Java Agent 1.20.0 on Java 1.8.0\_162 with apm-server 7.10.1 and strangely on two of our Hosts we get

system.process.cpu.total.norm.pct: -100%  
system.cpu.total.norm.pct: -100%

On identical Hosts we get normal CPU Values.

The User which rans the Windows Service is also in the _Performance Log Users_ and the _Performance Monitor Users_ group.

I don't know what i should look for other then identical config, identical jvm identical Agent...

Thanks

---

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [January 13, 2021, 9:17am UTC](https://discuss.elastic.co/t/java-agent-100-cpu/260942/2 "2021-01-13T09:17:29Z")

</div>

Hi @gruselglatz,

In this case you need to take a thread dump for investigation, that will provide a snapshot on the current CPU activity when it's at 100%.

You should be able to get this with JConsole or VisualVM tools.

---

<div class="post-metadata">

**Author:** ![gruselglatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gruselglatz/32/42675_2.png) [@gruselglatz](https://discuss.elastic.co/u/gruselglatz)\
**Post date:** [January 13, 2021, 9:20am UTC](https://discuss.elastic.co/t/java-agent-100-cpu/260942/3 "2021-01-13T09:20:35Z")

</div>

Hi @Sylvain_Juge,

We don't have a Problem with CPU Spikes, the APM-Agent reports -100% CPU (minus 100%). And I don't know why.

 ![grafik](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7cf462e7d426a88bd327c545ab47adc9cfa8aed3.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 3, 2021, 5:20am UTC](https://discuss.elastic.co/t/java-agent-100-cpu/260942/4 "2021-02-03T05:20:37Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
