DX Application Performance Management

Expand all | Collapse all

Java Agent deployment on Tomcat server

Jump to Best Answer
  • 1.  Java Agent deployment on Tomcat server

    Posted 10-26-2018 05:32 AM

    Hi,

     

    can we deploy multiple agents on one tomcat server??

    please provide any document reference.

     

    Thanks



  • 2.  Re: Java Agent deployment on Tomcat server

    Posted 10-26-2018 09:33 AM

    Dear Imran:

        1) What is driving this? 

        2) Seems partially addressed in Monitoring Apache Tomcat 

     

    Dear Community:

    Can you provide additional assistance to Imran?



  • 3.  Re: Java Agent deployment on Tomcat server

    Posted 10-26-2018 09:34 AM

    @imran_ali

    Can you explain more what do you want to accomplish?



  • 4.  Re: Java Agent deployment on Tomcat server

    Posted 10-29-2018 01:10 AM

    Hi

     

    i want to deploy more than one java agent on the same tomcat server is it possible?

    if possible provide some documentation link....

     

    I have t create another instance of tomcat server to deploy the java agent which is a lengthy process.

     

    thanks



  • 5.  Re: Java Agent deployment on Tomcat server
    Best Answer

    Posted 10-29-2018 01:36 AM

    Hi Imran,

    It is one agent per Tomcat JVM instance.

    Once you have a wily directory setup for one Tomcat instance you can just copy it to a second Tomcat instance and the only change required should be to ensure a unique agent name per the link Hal provided above: Monitoring Apache Tomcat 

    Per that link if you want to avoid any agent profile file change, in the Tomcat startup script e.g. catalina.sh (.bat), you can add a third JVM property "-Dcom.wily.introscope.agent.agentName=..." as well as the usual "-javaagent:..." and "-DagentProfile=...".

     

    By lengthy process if you are talking about the process to add the agent parameters to the relevant Tomcat startup script yes that does need to be done correctly but once you have it done once, again it should be a case of simply repeating:

    Apache Tomcat - CA Application Performance Management - 10.7 - CA Technologies Documentation 

    If the  catalina.* file is identical across the instances you can just keep copying the one you created for the first instance to the remaining instances.

     

    Hope that helps.

     

    Regards,

     

    Lynn