DX Application Performance Management

Expand all | Collapse all

Set up Wily

Jump to Best Answer
  • 1.  Set up Wily

    Posted 01-16-2012 11:35 AM
    We are trying to set up Wily in our JBoss server to monitor our java application. The Jboss server has 4 different environments in which the application is deployed. Is there a way to set up Wily to monitor only one environment?


  • 2.  Re: [CA Wily General Discussion] Set up Wily
    Best Answer

    Posted 01-21-2012 10:04 PM
    Hi Abarua,
    If each of your environments has a different startup script you might
    control each of them will be monitored. Otherwise you can create a wrapper
    around your startup script in a way you can set up different values for the
    Jboss env variables.

    Regards,

    On Monday, January 16, 2012, CA Wily Global User Community <
    CommunityAdmin@communities-mail.ca.com> wrote:
    We are trying to set up Wily in our JBoss server to monitor our java
    application. The Jboss server has 4 different environments in which the
    application is deployed. Is there a way to set up Wily to monitor only one
    environment?
    Posted by:abarua
    --
    CA Communities Message Boards
    95184559
    mb.2307983.95182019@myca-email.ca.com
    http://communities.ca.com
    --
    Abraços,
    Alexandre Andrade


  • 3.  RE: Set up Wily

    Posted 01-22-2012 11:08 PM
    Hello Alexandre,
    Can you please elaborate on what do you mean by creating a wrapper in the JBoss startup script?

    Thanks,
    Arpita


  • 4.  RE: Set up Wily

    Posted 01-23-2012 12:49 PM
    Sure Arpita,
    but first, could you explain me how do you start/stop your 4 app servers? (pls also tell me the commands/path you use..)

    Regards,
    Alexandre


  • 5.  RE: Set up Wily

    Posted 01-25-2012 12:18 PM
    Hello Alexandre
    We have 4 different start up script (dev,test, qa, isa) for each of the 4 environments and they are under /etc/init.d ..each of these 4 different script call the run.sh script in Jboss installation directory which is in /u01/jboss/bin..
    So in order to get the dev environment up I start the jboss this way /etc/init.d/dev start. And also we stop it the same way /etc/init.d/dev stop. If you have more questions please let me know.

    Arpita


  • 6.  RE: Set up Wily

    Posted 01-26-2012 06:40 AM
    Hi Arpita,

    copy the run.sh to e.g. run_wily.sh and add the APM startup parameters (-javaagent ...) onyl to this script. Then change the dev script to call run_wily.sh instead of run.sh.

    Another option: call run.sh with a special parameter or environment varialbe set if you want Introscope enabled. Check for that parameter in runb.sh and add wily paramters onyl if this flag is set.

    Best regards,
    Guenter