# Visualize in-JVM-requests

**URL:** <https://community.dynatrace.com/t/visualize-in-jvm-requests/20393>\
**Category:** Open Q&A\
**Tags:** request-attributes, java\
**Created:** [April 18, 2019, 12:16pm UTC](https://community.dynatrace.com/t/visualize-in-jvm-requests/20393 "2019-04-18T12:16:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattias\_wessma2](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mattias\_wessma2](https://community.dynatrace.com/u/mattias_wessma2)\
**Post date:** [April 18, 2019, 12:16pm UTC](https://community.dynatrace.com/t/visualize-in-jvm-requests/20393/1 "2019-04-18T12:16:38Z")

</div>

When a defined web service (non-public, internal) gets called by another service (public) within same JVM (request never leaves the JVM, i.e. not load-balanced etc.) - the internal request is not counted and doesn’t show up in a service flow etc.

Can this be solved in any way? I.e. I want to visualize these internal requests - and not only outside-JVM-requests.

Example flow: Client 1 → Web server → web service JVM x → internal web service JVM x → databases, external dependencies etc.

Current visualization in Dynatrace: Client 1 → Web server → web service JVM x → databases, external dependencies etc.

---

<div class="post-metadata">

**Author:** ![rodrigo\_alvare1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rodrigo_alvare1/32/1927_2.png) [@rodrigo\_alvare1](https://community.dynatrace.com/u/rodrigo_alvare1)\
**Post date:** [April 18, 2019, 12:58pm UTC](https://community.dynatrace.com/t/visualize-in-jvm-requests/20393/2 "2019-04-18T12:58:33Z")

</div>

Hello Mattias,

You could create a _Custom Service_ based on the method invoked on _internal web service JVM x_

[https://www.dynatrace.com/support/help/how-to-use-…](https://www.dynatrace.com/support/help/how-to-use-dynatrace/services-and-transactions/configuration/define-custom-services/)

This will break up your service in two.

Let me know if you need more help with that.

Regards

---

<div class="post-metadata">

**Author:** ![mattias\_wessma2](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mattias\_wessma2](https://community.dynatrace.com/u/mattias_wessma2)\
**Post date:** [April 18, 2019, 1:14pm UTC](https://community.dynatrace.com/t/visualize-in-jvm-requests/20393/3 "2019-04-18T13:14:19Z")

</div>

Thanks, suppose I could. The service is already defined (automatically), but only reports statistics when not being requested by same JVM. Request over EJB internally and over HTTP “externally”. Do you recommend me to still break up this service - even though it’s already defined?

---

<div class="post-metadata">

**Author:** ![rodrigo\_alvare1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rodrigo_alvare1/32/1927_2.png) [@rodrigo\_alvare1](https://community.dynatrace.com/u/rodrigo_alvare1)\
**Post date:** [April 18, 2019, 1:35pm UTC](https://community.dynatrace.com/t/visualize-in-jvm-requests/20393/4 "2019-04-18T13:35:25Z")

</div>

Yes, I think that by creating a custom service it will still receive the external calls + it will force to break the _web service JVM x_ and provide the missing metrics.

If you feel more comfortable, you could try it first on a dev/test environment and the replicate the changes in production.

---

<div class="post-metadata">

**Author:** ![mattias\_wessma2](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mattias\_wessma2](https://community.dynatrace.com/u/mattias_wessma2)\
**Post date:** [April 18, 2019, 1:38pm UTC](https://community.dynatrace.com/t/visualize-in-jvm-requests/20393/5 "2019-04-18T13:38:31Z")

</div>

Thanks! Will create a custom serivce and see how that turns out.

---

<div class="post-metadata">

**Author:** ![mattias\_wessma2](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mattias\_wessma2](https://community.dynatrace.com/u/mattias_wessma2)\
**Post date:** [April 26, 2019, 12:13pm UTC](https://community.dynatrace.com/t/visualize-in-jvm-requests/20393/6 "2019-04-26T12:13:56Z")

</div>

Created - and tested - a custom service; works fine! My only concern right now is how to merge this custom service (in JVM-calls) with already existing service (other JVM-calls). What do you recommend? Ideally I would like to merge the services, as it’s same code-base, only difference is what protocol that is being used to reach the services.
