# Kibana terribly slow on /apm/traces

**URL:** <https://discuss.elastic.co/t/kibana-terribly-slow-on-apm-traces/312664>\
**Category:** APM\
**Tags:** ui\
**Created:** [August 23, 2022, 2:35am UTC](https://discuss.elastic.co/t/kibana-terribly-slow-on-apm-traces/312664 "2022-08-23T02:35:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user2022](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/user2022/32/126085_2.png) [@user2022](https://discuss.elastic.co/u/user2022)\
**Post date:** [August 23, 2022, 2:35am UTC](https://discuss.elastic.co/t/kibana-terribly-slow-on-apm-traces/312664/1 "2022-08-23T02:35:05Z")

</div>

**Kibana version** : 7.17.3

**Elasticsearch version** : 7.17.3

**APM Server version** : 7.17.3

**APM Agent language and version** : Java 1.33.0

**Browser version** : Chrome 100+

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**: zip

**Fresh install or upgraded from other version?** Fresh

**Is there anything special in your setup?** simple

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:  
I found kibana's "traces" menu under APM is extremely slow while opening, if there are over 8000 trace keys and set the time range to "last 7 days", without any other kquery, like first click.

From what i can see, the backend of kibana, there is one node thread consuming 100%cpu all the time while opening that page, but es monitor data seems ok. what's worse is that all other requests are blocked until the node thread become normal.

I made some cpu profile, and found the root cause maybe at " **x-pack/plugins/apm/common/utils/join\_by\_key/index.ts#L61**", while calling " **isEqual**" of **lodash**. This function performance bad.

may be we could try choosing some other tools?

**Steps to reproduce** :

1. prepare some apm data, like 20 services and 8000 trace keys
2. open kibana, navigate to "traces"
3. boom!

**Errors in browser console (if relevant)**:

**Provide logs and/or server output (if relevant)**:

 ![1](https://us1.discourse-cdn.com/elastic/original/3X/e/8/e82935c2375f7afc3d8ef56b8bc47eee66b0b662.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:** [September 12, 2022, 10:35pm UTC](https://discuss.elastic.co/t/kibana-terribly-slow-on-apm-traces/312664/2 "2022-09-12T22:35:24Z")

</div>

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