After configuring the Browser agent for a webmethods application the snippet injection is not working and the agent logs report the following:
11/04/20 01:12:48 PM CET [TRACE] [IntroscopeAgent.BrowserAgent] Stop injection snippet code[/portlet/mapfweinbox___fweinbox] because they exceeded max searching length 32768
11/04/20 01:12:48 PM CET [TRACE] [IntroscopeAgent.BrowserAgent] Stop injection snippet code[/portlet/mapfweinbox___fweinbox] because they exceeded max searching length 32768
Browser Agent 10.7
As per the logs the snippet injection stopped as below maximum searching length has been reached. This is controlled by the following agent property:
introscope.agent.browseragent.autoInjection.snippet.maxSearchingLength
This property checks for the end of the first <head> tag to insert the snippet file in the page dynamically from the Java agent. If no head tag exists in the page, the agent checks for the <body> tag (starting body tag) instead. After the agent finds the <head> tag or <body> tag, the agent stops searching. If the <head> tag is found, snippet code is inserted after the <head> tag. If the <body> tag is found, the agent inserts snippet code and <head> tag before <body> tag.
This property also determines the number of bytes from the start to the end of the browser page. When you set the value to larger number, then for every request the Java agent loads that number of bytes into memory to perform the search for the <head> or <body> tag.
In order to address this issue, please do the following:
1.- Open the Browser agent properties file
2.- Uncomment and increase the value of below property that is to control the max length as follows, eg: increase the value from default 32768 to 50000:
# This property specifies the maximum content length (in bytes) for searching
# <head> or <body> tag. The default value is 32768 bytes.
#
# Changing this property does not require restarting the Monitored Process
introscope.agent.browseragent.autoInjection.snippet.maxSearchingLength=64000
This should address the problem.
introscope.agent.browseragent.autoInjection.snippet.maxSearchingLength
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/application-performance-management/10-7/implementing-agents/java-agent/browser-agent-properties.html#concept.dita_d056e2765cfc70b00a7ee18599e3b77786edc23d_introscopeagentbrowseragentautoInjectionsnippetmaxSearchingLength