After configuring the Browser agent for a webmethods application the snippet injection is not working and the agent logs report the following:
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:
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
This should address the problem.