Results 1 to 6 of 6

Thread: Injection an java agent into Zimbra - JVM Option -agentpath

Hybrid View

  1. #1
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    5

    Default Injection an java agent into Zimbra - JVM Option -agentpath

    Hello,

    I'm trying to inject an Java Agent (dynatrace.com) into the mailboxd service of zimbra 6.0 for monitoring and performance analysis.
    To do so I've modified the mailboxd_java_options via zmlocalconfig and added the correct option -agentpath:<options>.
    However as soon as this option is there the mailboxd refuses to start.

    Now I've searched if i find some detailed logging of the JVM startup, but I can't find it. I came to a point where 'zmjava' is called by 'zmmailboxdctl start' and that's where it ends.

    To go on here I'd need to get the info the injected agent spits out during JVM startup. Can anyone provide hints how I could get this info? I think it should be somewhere in jetty startup logs/output.

    Cheers,
    Reinhard

  2. #2
    Join Date
    May 2011
    Posts
    1
    Rep Power
    4

    Default

    Quote Originally Posted by RedChili View Post
    Hello,

    I'm trying to inject an Java Agent (dynatrace.com) into the mailboxd service of zimbra 6.0 for monitoring and performance analysis.
    To do so I've modified the mailboxd_java_options via zmlocalconfig and added the correct option -agentpath:<options>.
    However as soon as this option is there the mailboxd refuses to start.

    Now I've searched if i find some detailed logging of the JVM startup, but I can't find it. I came to a point where 'zmjava' is called by 'zmmailboxdctl start' and that's where it ends.

    To go on here I'd need to get the info the injected agent spits out during JVM startup. Can anyone provide hints how I could get this info? I think it should be somewhere in jetty startup logs/output.

    Cheers,
    Reinhard
    Has a solution been found to this? I'm having the same issue.

    Thanks,
    Steve

  3. #3
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    5

    Default

    No I gave up after some time. I tuned a couple of other settings in zimbra and finally ended up having a satisfying performance.
    It would still be cool to have that information though....

  4. #4
    Join Date
    Sep 2011
    Posts
    5
    Rep Power
    4

    Default Injecting a java agent into Jetty Application Server

    BUMP, this thread. I too have the need to insert a java agent for the JVM for monitoring purposes.

    I have tried a similar approach to the OP with no success. The JVM execution is wrapped in a binary executable that doesn't seem to like -javaagent parameter.

    Once I can download the source (no luck so far) I might hack the executable myself. But this is a short-term solution to unblock my demo. I need something that I can use with customer deployments.

    Is this a bug? Is this a feature request?

  5. #5
    Join Date
    Oct 2006
    Posts
    55
    Rep Power
    9

    Default

    This feature is disallowed by default. So, it is a design decision.

  6. #6
    Join Date
    Aug 2007
    Location
    France - Bretagne
    Posts
    55
    Rep Power
    8

    Default

    Hello,

    I have the same need, ans the same problem with "javaagent" option.
    So, if it is a design decision, what is the workaround ? How is it possible to monitore mailbox java code, in order to analyse performance problems ?

    Thanks
    Marine

Similar Threads

  1. [SOLVED] Help, I think I am running Zimbra as root!
    By primaxx in forum Administrators
    Replies: 9
    Last Post: 10-06-2010, 12:04 PM
  2. Replies: 31
    Last Post: 12-15-2007, 09:05 PM
  3. Replies: 22
    Last Post: 12-02-2007, 05:05 PM
  4. [SOLVED] Error Installing Zimbra on RHEL 5
    By harris7139 in forum Installation
    Replies: 10
    Last Post: 09-25-2007, 12:39 PM
  5. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •