Enabling auto-instrumentation by the Java agent breaks some critical JSP pages for the application with java.lang.IllegalStateException: Attempt to clear a buffer that’s already been flushed in JSP forward code.
So we decided to disable auto-instrumentation. We met an issue: it seems to be impossible to disable!
- the application does not appear in Browser apps (deleted a long time ago)
- auto_instrument: false in newrelic.yml
- APM > Settings > Environment shows browser_monitoring.auto_instrument = false
- agent log file shows “com.newrelic INFO: Real user monitoring is enabled for application MYAPP. Auto instrumentation is disabled”.
We have checked that application works fine if newrelic agent is completely removed and breaks again when reinstalled.
How can we make sure newrelic agent does not mess with JSP? This is a blocker issue.