Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-2010, 07:39 AM
Starter Member
 
Posts: 2
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
Reply With Quote
  #2 (permalink)  
Old 05-12-2011, 08:38 AM
Beginner Member
 
Posts: 1
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
Reply With Quote
  #3 (permalink)  
Old 05-12-2011, 01:07 PM
Starter Member
 
Posts: 2
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....
Reply With Quote
  #4 (permalink)  
Old 09-08-2011, 06:59 AM
Junior Member
 
Posts: 5
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?
Reply With Quote
  #5 (permalink)  
Old 12-07-2011, 10:06 AM
Zimbra Employee
 
Posts: 55
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.