# For Java APM, is the STW time (Garbage Collector) taken into account in the latency measurement?

**URL:** <https://discuss.elastic.co/t/for-java-apm-is-the-stw-time-garbage-collector-taken-into-account-in-the-latency-measurement/325043>\
**Category:** Elastic Observability\
**Created:** [February 8, 2023, 4:16pm UTC](https://discuss.elastic.co/t/for-java-apm-is-the-stw-time-garbage-collector-taken-into-account-in-the-latency-measurement/325043 "2023-02-08T16:16:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![netamego](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@netamego](https://discuss.elastic.co/u/netamego)\
**Post date:** [February 8, 2023, 4:16pm UTC](https://discuss.elastic.co/t/for-java-apm-is-the-stw-time-garbage-collector-taken-into-account-in-the-latency-measurement/325043/1 "2023-02-08T16:16:21Z")

</div>

Hi,

We have java APM instrumenting our production workload. In kibana we have latency graph (inside Transactions dashboard) and I don't know if this latency meassuremente take in account Java STW time (Garbage Collector). If not the case, how can I get an aggregation of the latency and STW time?

> **[Transactions | Kibana Guide \[8.6\] | Elastic](https://www.elastic.co/guide/en/kibana/8.6/transactions.html#rum-transaction-overview)**
>
> Kibana provides you with several options to share \*Discover\* saved searches, dashboards, \*Visualize Library\* visualizations, and \*Canvas\* workpads with others, or on a website.

Tahnk you very much.

Best regards
