# RUM V2 enabled and more informations

**URL:** <https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic\
**Created:** [October 22, 2020, 1:12pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646 "2020-10-22T13:12:49Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://community.dynatrace.com/u/Axel)\
**Post date:** [October 22, 2020, 1:12pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/1 "2020-10-22T13:12:49Z")

</div>

Hello community,

i want to enable RUM V2 in my environment, but there are few informations in documentation about it (maybe because it’s an early adopter). In screen below there is a switch On/Off:

 ![26966-01.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/31edb19f2477f23f12f2b6c43e439674fa17dbe8.png)

So, i have some questions:

1) There is a best practice to enable it? Or just switch On?

2) There is a detailed documentation about it?

3) There is a Process Group Override section, so i can select a specific process group when i enable RUM V2 or i must enable it for whole environment?

 ![26986-02.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/7/47a5cc666a05257b661bced846ff066053592bbd.png)

4) If i enable RUM V2, i must restart what? Processes, or whole VM?

Anyone have some information about it?  
Thanks so much

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [October 22, 2020, 2:36pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/2 "2020-10-22T14:36:14Z")

</div>

1. You can go ahead and enable it if you are using java web/app servers for RUM.
2. Documentation is internal and nothing is publicly available. Most of the changes are architectural to solve certain quirks that the older version had and you won’t really see any noticeable impact after enabling it
3. Yes you can enable it at the process group level
4. You would have to restart the process

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://community.dynatrace.com/u/Axel)\
**Post date:** [October 22, 2020, 2:57pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/3 "2020-10-22T14:57:53Z")

</div>

Thank you Chad for your answer

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [October 23, 2020, 7:24am UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/4 "2020-10-23T07:24:24Z")

</div>

Dear [@Chad T.](https://answers.dynatrace.com/users/36422/view.html),

Dear [@Axel V.](https://answers.dynatrace.com/users/30885/view.html)

I have to add to / refute parts of Chads statement!

v2 (very bad choice for the name) was maybe initially planned to “improve” or supersede the existing version. However, since v2 is technically different and tries to tackle different cases it should be seen as an alternative approach not an improved version! Hence, if everything works find now and you don’t have any class cast exceptions (that’s what v2 its build for) then **I strongly recommend**  **to stick with the existing version and not enable v2**.

Heads up here: we will “remove” v2 from the UI in the foreseeable future and only make it available for our support teams to enable it / switch between the approaches if needed. **v2 will be an “alternative approach” and therefore a troubleshooting “feature” only. To correctly call it by the name!**

Pls. let me know if anything is unclear

regards

Thomas

Product Manager RUM web

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://community.dynatrace.com/u/Axel)\
**Post date:** [October 23, 2020, 8:37am UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/5 "2020-10-23T08:37:13Z")

</div>

Thank you so much Thomas, i appreciate it!

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://community.dynatrace.com/u/Axel)\
**Post date:** [October 26, 2020, 3:04pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/6 "2020-10-26T15:04:17Z")

</div>

Dear [@Thomas Z.](https://answers.dynatrace.com/users/37307/view.html),

i want to explain my answer. I have an application that run in Webmethods Application server. This Webmethods is officially supported, but RUM injection doesn’t work. I opened a ticket to Dynatrace support and they told me that RUM is not supported because this application doesn’t use Java Servlet (processes instrumentation is OK). Also, they told me to try ith RUM V2, but there are few chances that it works.

So, do you know if RUM V2 might work?

Thank you and best regards

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [October 27, 2020, 1:26pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/7 "2020-10-27T13:26:54Z")

</div>

Anytime!

If I were you, and since “ **This Webmethods is officially supported** ” I would push Support to properly troubleshoot this case! If its not because of class cast exception than they have to properly follow it up with development and they have to check whether and how we can fix this. In my humble opinion as simple as that!

And please feel free to mention me in the ticket then I can also follow the ticket!

thanks

Thomas

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://community.dynatrace.com/u/Axel)\
**Post date:** [October 28, 2020, 9:21am UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/8 "2020-10-28T09:21:38Z")

</div>

Thank you [@Thomas Z.](https://answers.dynatrace.com/users/37307/view.html)! Support told me that Webmethods are supported for OneAgent instrumentation, but RUM is not supported. This is ad extract from support answer:

“First of all there is **no official support for RUM** for WebMethods Integration Server 0 in other words Dynatrace OneAgent is not able to inject JS library into its HTML pages because these are not Web request services but web services. The documentation only says that OneAngent is able to monitor “Java internals” of this product but not injecting RUM portion.  
RUM is supported only for “Java servlet-based web applications” and we don’t inject RUM into webMethods, as they use something different than servlets and marked as webService which means XML/JSON. Anyway we had once a customer who swiched Java Monitoring to V2 and for WebMethods and it worked well.”

"if we don’t use Servlets than there are small chances RUM V2 will help, sorry … "

So, i don’t know if open a new support ticket or try RUM V2…

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [October 30, 2020, 7:34pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/9 "2020-10-30T19:34:42Z")

</div>

Dear [@Axel V.](https://answers.dynatrace.com/users/30885/view.html),

shortly got in touch with the dev for the Java injection.

Yes we don’t support auto injection for Webmethods.

BUT.

what you can do in this case is the following:

- have an agent on the server capturing the server-side metrics
- have an application for automatic injection and
  - create an injection exclusion rule to never inject automatically
  - insert manually.
  - make sure the beacons are sent via an Active Gate

This way you should be able to monitor that setup full stack!

regards

Thomas

Hope that helps. Support should know about this and help you set it up correctly!

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://community.dynatrace.com/u/Axel)\
**Post date:** [November 2, 2020, 8:58am UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/10 "2020-11-02T08:58:37Z")

</div>

Hello [@Thomas Z.](https://answers.dynatrace.com/users/37307/view.html) and thank you so much!

So, i must try to enable manual injection, right?

Application settings → Injection → “Manual insertion” tab

This is correct path for solution? If not, can you tell me the correct path in settings?

Thanks for your usefull help,

Best regards

Axel

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [November 2, 2020, 3:56pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/11 "2020-11-02T15:56:00Z")

</div>

exactly! And don’t forget to also add an exclusion rule to not inject automatically for the domain/the whole web site

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://community.dynatrace.com/u/Axel)\
**Post date:** [November 5, 2020, 1:09pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/12 "2020-11-05T13:09:22Z")

</div>

Perfect, thank you Thomas, i’ll update thread if i’ll have news.

Best regards

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [October 4, 2023, 11:48am UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/13 "2023-10-04T11:48:29Z")

</div>

Hello,

Today we had an issue&nbsp; with an IBM tool:

java.lang.ClassCastException:&nbsp; **com.dynatrace.agent.introspection**.uem.impl.CacheHookingRequestWrapper

Support advised to turn on:&nbsp;Java Real user monitoring&nbsp;v2&nbsp;[Opt-In]

This fixed the issue.&nbsp;So my question is,

Does turning this on, turn off the old stuff (-;?

And is your previous (excellent) explanation&nbsp; now obsolete?

KR Henk

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [October 9, 2023, 6:23pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/14 "2023-10-09T18:23:51Z")

</div>

Yes, as far as I remember this is an either-or choice between two different ways to inject.

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [October 9, 2023, 6:34pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/15 "2023-10-09T18:34:31Z")

</div>

Cool thanks for your reply. Is it a big problem for you to find out a little more info about the difference? Or is this what should be done by way of a ticket?

KR Henk

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [October 9, 2023, 7:27pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/16 "2023-10-09T19:27:54Z")

</div>

Both approaches instrument the Java Servlet API, but in different ways.

The servlet API provides wrappers for request and response objects. In V1, the approach is that we send our own wrappers on the journey, which then take care of things like JS agent injection. However, this can lead to ClassCastExceptions because the customer app expects a different type (i.e., not our wrapper).

That’s why V2 has been build which doesn’t use wrappers, and the ClassCastException no longer occurs because of it.

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [October 9, 2023, 8:04pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/17 "2023-10-09T20:04:51Z")

</div>

Great reply! Thanks again!

---

<div class="post-metadata">

**Author:** ![Carlossap](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@Carlossap](https://community.dynatrace.com/u/Carlossap)\
**Post date:** [July 16, 2024, 2:04pm UTC](https://community.dynatrace.com/t/rum-v2-enabled-and-more-informations/20646/18 "2024-07-16T14:04:48Z")

</div>

Hey Thomas,  
Have there been any updates on the naming for this feature or its removal (support only)?  
I got feedback from a team that it would be good to mark it as an alternative/experimental rather than “opt-in”.

Kind regards,

Carlos A  
ACE Consultant
