Hi All,
we are trying to instrument JBoss7.1.1 with app agnet version 4.1.8.5, we have done all the settings as per mentioned in the Appd documents website but after doing all the settings the application was not starting so we rolled back all the changes and then the application started woking fine.
below are the settings we made as per the documents,
Search for the following line in standalone.conf.
JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman" |
Add the com.singularity and org.jboss.logmanager packages to that line as follows:
JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman,com.singularity,org.jboss.logmanager" |
Add the following to the end of the standalone.conf file in the JAVA_OPTS section.
-Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xbootclasspath/p:<path_to_jboss_logmanager>/jboss-logmanager-<version>.jar |
Replace <path_to_jboss_logmanager> and <version> with the path and log manager JAR filename for your system. See Making the LogManager Location Dynamic for information on making the path dynamic.
In the standalone.sh file, add the following javaagent argument.
export JAVA_OPTS="$JAVA_OPTS -javaagent:/agent_install_dir/javaagent.jar" |
Put the argument above the following section of standalone.sh
...while true;doif [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "X" ]; then # Execute the JVM in the foreground eval \"$JAVA\" -D\"[Standalone]\"$JAVA_OPTS \ \"-Dorg.jboss.boot.log.file=$JBOSS_LOG_DIR/boot.log\" \ \"-Dlogging.configuration=file:$JBOSS_CONFIG_DIR/logging.properties\" \ -jar \"$JBOSS_HOME/jboss-modules.jar\" \ |
plz help us in achiving this instrumentation.
Regards,
Mandar
Hi All,
Has anyone got the solution for this issue?.
Regards,
Mandar
I setup app agent for JBoss 7.1.1 recently. The AppD documentation is incomplete here. I have given steps to follow below.
set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman,com.appdynamics.,com.singularity,com.singularity."
set "JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
set "LOGMANAGER_JAR=%JBOSS_HOME%\modules\org\jboss\logging\main\jboss-logging-3.1.0.GA.jar"
set "JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/p:%LOGMANAGER_JAR%"
set "JAVA_OPTS=-javaagent:F:/AppDynamics/AppServerAgent/javaagent.jar %JAVA_OPTS%"
The line should be placed just above following section.
set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed