AppD Archive

not able to configure app agent for Jboss 7.1.1

CommunityUser
Splunk Employee
Splunk Employee

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,

  1. Open the bin/standalone.conf file.
  2. Search for the following line in standalone.conf.

    JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman"
  3. 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"
  4. 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.

      

  5. 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;do
    if [ "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\" \
  6. Restart the application server. 

plz help us in achiving this instrumentation.

Regards,

Mandar

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi All,

Has anyone got the solution for this issue?.

Regards,

Mandar

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I setup app agent for JBoss 7.1.1 recently. The AppD documentation is incomplete here. I have given steps to follow below.

  1. Modify following line in standalone.conf.bat. This adds AppDynamics modules to JVM.

set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman,com.appdynamics.,com.singularity,com.singularity."

  1. Add following lines in standalone.conf.bat to configure log manager.

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%"

  1. Add following lines in standalone.bat

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

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...