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

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 03-12-2009, 09:35 AM
Intermediate Member
 
Posts: 24
Default enable remote debug

Hey guys!

I would like to enable remote debug of the Zimbra server from Eclipse. I tried to use the information stated in jetty.txt to connect to the server but no success. I read also the posts here in the forum () but it seem that they are very old. Maybe someone could update them.

What have I done: as far as I have understood from all the hints given in the posts, I would have to set only the following java arguments for jetty '-Xdebug -Xnoagent -Djava.compiler=NONE -Djava.library.path=/opt/zimbra/lib -Xrunjdwp:transport=dt_socket,address=4000,server=y ,suspend=y'.

I tried first to set them manually in the config files of jetty. But then I realized that there exists the tool 'zmlocalconfig' with which I can set these arguments. I set the arguments for the zmmailboxd. The entry looks like this one:
Code:
mailboxd_java_options = -client -XX:NewRatio=2 -Djava.awt.headless=true -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1 -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n
But now, the mailbox demon doesn't start up any more. I tried to search a bit in the log files but could not get any clue.

What did I wrong?

All suggestions are appriciated.
Reply With Quote
  #2 (permalink)  
Old 03-17-2009, 01:14 AM
Intermediate Member
 
Posts: 24
Default

Got no one a clue?
Reply With Quote
  #3 (permalink)  
Old 04-14-2009, 05:50 PM
nob nob is offline
Starter Member
 
Posts: 1
Default

The default launcher program allows only a certain set of JVM options. The JDWP options require the use of the unrestricted version.

You should perform the followings before restarting the mailbox service:

Code:
(as root) 
 # cd /opt/zimbra/libexec/
 # mv zmmailboxdmgr zmmailboxdmgr.org
 # ln -s zmmailboxdmgr.unrestricted zmmailboxdmgr
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.