If we use the below line, we get the stack overflow error only on startup, not afterwards.
-Dcom.wily.introscope.agent.startup.mode=neo -Dcom.wily.introscope.agent.startup.delay=180
If we use JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman - then after 10 minutes the agent name is set by what is in profile. By disabling auto naming, then the agent will not start up
We don't want autonaming, we want the name to stay as is
These last settings fixed the issue.
The settings that resolve the issue are as follows:
introscope.agent.agentName=<name>
introscope.agent.agentAutoNamingEnabled=true
introscope.bootstrapClassesManager.waitAtStartup=5
introscope.agent.agentNameSystemPropertyKey=
introscope.agent.disableLogFileAutoNaming=false
introscope.agent.agentAutoNamingMaximumConnectionDelayInSeconds=120 # default 120
introscope.agent.agentAutoRenamingIntervalInMinutes=0 # default 10