I´ve been trying to configre AppDynamics lite to work on Jboss 7.1.1 on a Windows 8 64 bits environment without sucess. When accessing the dashboard I get 'No Agent Connected' message.
I already tried several different configurations suggestion from this forum but none work. This is what I tried already:
1. Added the com.singularity and org.jboss.logmanager packages to the standalone.conf file as follows:
if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman,com.singularity,org.jboss.logmanager" fi
2. Added the com.singularity package to the standalone.conf.bat file as follows:
set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman,com.singularity"
3. Added the javaagent argument to the standalone.bat file as follows:
:RESTART
"%JAVA%" -javaagent:%JBOSS_HOME%\AppServerAgentLite\javaagent.jar %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" ^
-mp "%JBOSS_MODULEPATH%" ^
-jaxpmodule "javax.xml.jaxp-provider" ^
org.jboss.as.standalone ^
-Djboss.home.dir="%JBOSS_HOME%" ^
%*
The Liteviewer log:
[main] 20 Out 2014 10:50:03,589 INFO [main] AgentHandlerServlet - *****************************************************************
[main] 20 Out 2014 10:50:03,589 INFO [main] AgentHandlerServlet - Starting ....AppDynamics Lite Viewer 2.1.1 GA Build Date 2012-08-05 21:13:55
[main] 20 Out 2014 10:50:03,915 INFO [main] o - Read user registration. Registration complete: [true]
[main] 20 Out 2014 10:50:03,959 INFO [main] LiteAlertManager - Initialized Data Directory [F:\Dropbox\Paulo\Dev\Programas\AppDynamicsLite\AppDynamicsLite\LiteViewer]
[main] 20 Out 2014 10:50:03,967 INFO [main] LiteAlertManager - Creating alert: Default Errors/min. Alert
[main] 20 Out 2014 10:50:03,968 INFO [main] LiteAlertManager - Creating alert: Default ART Alert
[main] 20 Out 2014 10:50:03,968 INFO [main] LiteAlertManager - Alerts already exist or were created in the past; defaults will not be created.
[main] 20 Out 2014 10:50:03,968 INFO [main] DirectoryResolver - Deleting directory [F:\Dropbox\Paulo\Dev\Programas\AppDynamicsLite\AppDynamicsLite\LiteViewer\data]
No logs were generated at AppServerAgentLite\logs\Server Node
4. I also set the '-XX:-UseSplitVerifier' JVM argument but it did not work.
Hi Paulo,
We do not see any references to AppServerAgentLite directory in boot.log and server.log we request you to try Pro agent if the following suggestions does not help:
- check whether AppServerAgentLite directory references are not printed in command console prompt when started the command as follows:
cmd> standalone.bat
Did you see any error in windows command console when you started jboss standalone.bat file in command console?
Regards,
Arun
Hi,
We see there is known limitation of lite agent that could not work with latest jboss version with OSGI modules and the resolution is to upgrade to AppDynamics pro version of agent.
To check whether we are hitting known issue or not, Can you send the following to debug further:
- jboss console log and startup scripts (standalone.bat, standalone.conf.bat and standalone.conf file)
- liteview console log and Lite agent logs under <AppServerAgentLite_dir>/logs path
Regards,
Arun
Hi Arun,
Did you get a chance to take a look at the files we sent? Can you confirm the agent limitation?
hi paulo,
we have officially retired our old standalone lite product and hence we are not able to provide support on that anymore.
strongly recommend you to signup for the new lite edition which even starts with a free trial of our pro edition:
http://portal.appdynamics.com/account/signup/signupForm
as arun has noted, the issue you are facing has been long back addressed in our new lite/pro edition.
thanks
Hi Paulo,
Apologies for the delay in response. Adding to Sid comments, we do not find any references to javaagent entry in any of the files attached and we also could not find -javaagent entry in standalone.bat file in apDynamic.zip file provided
We request you to provide error you faced with Lite that helps to confirm if this is known issue with Lite so that we will suggest either to upgrade to Pro Or will suggest steps to resolve if that is issue with wrong config. Hope that information helps.
Regards,
Arun
Hi Paulo,
We do not see any references to AppServerAgentLite directory in boot.log and server.log we request you to try Pro agent if the following suggestions does not help:
- check whether AppServerAgentLite directory references are not printed in command console prompt when started the command as follows:
cmd> standalone.bat
Did you see any error in windows command console when you started jboss standalone.bat file in command console?
Regards,
Arun
Hi Arun,
Thanks for the response. I was able to make it work. The problem was that I was running JBoss AS 7.1.1 from inside Eclipse, not through the command line. Your last tip did it.