Installing InspectIT 1.9.2 agent on JBoss 1.7.4

26 views
Skip to first unread message

wouter...@gmail.com

unread,
Dec 4, 2018, 10:35:54 AM12/4/18
to inspectIT
Hey everyone,

I am trying to integrate the InspectIT agent (1.9.2) on a JBoss server (1.7.4) in Domain mode. I am following the instructions in the User Guide (https://inspectit-performance.atlassian.net/wiki/spaces/DOC18/pages/93009436/JBoss+7.x). 

It seems I have successfully resolved the logging issue described in the documentation (1.8), but the agent does not do anything. I get the following log messages from [rocks.inspectit.agent.java.SpringAgent]:

15:45:43.379 [main] INFO rocks.inspectit.agent.java.SpringAgent - Location of inspectit-agent.jar set to: /data/jboss/inspectit/agent/inspectit-agent.jar
15:45:43,364 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
15:45:43,365 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
15:45:43,365 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
15:45:43,368 |-INFO in ch.qos.logback.classic.BasicConfigurator@3234f74e - Setting up default configuration.
15:45:43,404 |-WARN in Logger[rocks.inspectit.agent.java.SpringAgent] - No appenders present in context [default] for logger [rocks.inspectit.agent.java.SpringAgent].


After those messages the agent does not log anything else. Did I forget a configuration step, or is there something else going on here? Any help would be very much appreciated!

Thanks in advance,

Wouter van der Linde

wouter...@gmail.com

unread,
Dec 4, 2018, 11:23:28 AM12/4/18
to inspectIT
After restarting the JBoss server, I found that the Agent initialisation would finish before the application files (which are war files) are deployed. I am guessing this is a problem. Does the agent instrument the application classes during its initialisation? If so, is there some way I can delay the Agent initialisation until after deploying our application?

Op dinsdag 4 december 2018 16:35:54 UTC+1 schreef wouter...@gmail.com:

Ivan Senic

unread,
Dec 5, 2018, 3:55:30 AM12/5/18
to wouter...@gmail.com, inspectIT
Hi Wouter,

I will try to respond to some questions you sent in previous emails.

So regarding the agent logging output, it usually works out-of-the-box. We are trying to locate logging-config.xml file that should be located in the same folder as the inspectit-agent.jar. So please confirm that you have it available under 
/data/jboss/inspectit/agent/. If the automatic setup is not picking up and working correctly, you can add the -Dinspectit.logging.config= var to the startup java command and point to file directly (then it can be located anywhere). The logging config also creates a log folder in /data/jboss/inspectit/agent/logs and this is another way of checking the detailed logs later on.

Regarding your second question. Yes, the agent initialization should occur before wars are deployed and this is not a problem. The main question is if the agent is correctly initialized, meaning that it can read configuration from the CMR and stay active. In case of errors during initialization, the agent will not be active. And this is again where logs are really helpful as you would be able to see what's the status of the agent and if there were any problems.

I just want to mention that for starting the agent you need to specify the location of the CMR. If you run everything locally and you did not change the defaults this should be -Dinspectit.repository=localhost:9070. Note that CMR must be started before the agent, as the agent would connect to it during initialization and read the instrumentation configuration that should be applied.

Hope this answers your questions and you will be able to set up inspectIT correctly.

Cheers,
Ivan

--
You received this message because you are subscribed to the Google Groups "inspectIT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inspectit+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inspectit/7b03978a-5a14-40f2-8a2b-5ffc0f7493c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

wouter...@gmail.com

unread,
Dec 5, 2018, 4:06:45 AM12/5/18
to inspectIT
Hi Ivan,

Thanks for your answer, I actually did not copy the logging-config.xml file into my docker image. I am now seeing that the connection to the CMR is failing, which is most likely due to me providing the wrong URL. 

Cheers,
Wouter

Op woensdag 5 december 2018 09:55:30 UTC+1 schreef Ivan Senic:

wouter...@gmail.com

unread,
Dec 6, 2018, 7:35:10 AM12/6/18
to inspectIT
Hey Ivan,

I got everything working with my setup, thanks for your help.

I noticed the documentation only specifies how to setup the InspectIT Agent for JBoss in standalone mode. Would it be helpful if I shared my setup for Domain mode?

Cheers,
Wouter van der Linde


Op woensdag 5 december 2018 09:55:30 UTC+1 schreef Ivan Senic:
Hi Wouter,
Reply all
Reply to author
Forward
0 new messages