15 Mar 2019 03:16 AM
Hi,
There's a Java Web application runing on Resin, end user uses browser to access the applicaiton directly (no any Web Server in between).
I found OneAgent only injected JS to pages without gzip, while most of the pages were gzip compressed.
Any idea on how to use RUM at this situation?
Thanks,
Keane
Solved! Go to Solution.
15 Mar 2019 03:38 AM
What about manually injecting the tag?
15 Mar 2019 03:44 AM
Hi Dante, manual injection and browser extension is not acceptable in the environment. We are looking for the possibility of tunning in OneAgent side.
15 Mar 2019 07:41 AM
Quick solution is to turn off the gzip compression (if this is possible). I don't have any experience with Resin, but I've encountered such situation more than once and it happens when output is gzip compressed too soon in the stack (actually the servlet produces gzip output).
Other methods you can do:
15 Mar 2019 07:54 AM
Thanks for the suggestion.
I tested Tomcat with gzip, OneAgent can inject js, so I think OneAgent has the capability to inject js before gzip filter run.
15 Mar 2019 07:53 AM
Hi Keane,
You are right. On Java our OneAgent only injects into non compressed responses. The OneAgent tries to find a possibility to hook into the response processing chain before a compression takes place, which seems not to work for your environment.
These are our 4 main possibilities to overcome this challenge:
Please create a support ticket in order to investigate if 1) or 2) can work. Please keep in mind that this works like we have designed it, as most of our customers are using a web server in front of their Java tier and we want to reduce the overhead on the "application tier" to the minimum.
But we can try to find a workaround.
All the best, Alex
15 Mar 2019 07:58 AM
Hi Alex, how to perform method 2? Any detailed steps?
Suport case is 21227
17 Jul 2020 11:20 AM
Hello,
We have java i.e tomcat infront of our loadblancer we don't have any apache webserver. Will RUM get injected in this case?
We dont see RUM data on oneagent tenant. Can someone help?
Thanks,
Prathyusha