Results 1 to 3 of 3

Thread: java options

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Rep Power
    7

    Default java options

    How would one go about setting java options? Specifically -Dcom.sun.management.jmxremote.port=8687 et al. This is typically how my NMS does remote monitoring. zmlocalconfig will make the setting in conf/localconfig.xml but it looks like zmmailboxdmgr et al. are hardwired for only specific options as its never passed to the jvm.

  2. #2
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

    Since zmmailboxmgr runs suid, we've limited the options you can pass in. To bypass this security restriction, just swap it with zmmailboxdmgr.unrestricted in the same directory (mv zmmailboxdmgr zmmailboxdmgr.restricted; cp zmmailboxdmgr.unrestricted zmmailboxdmgr; etc...)
    Last edited by marcmac; 01-19-2008 at 07:18 PM. Reason: Not tomcat anymore, d'oh
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Aug 2008
    Posts
    72
    Rep Power
    7

    Default JVM -server option?

    I wonder why mailboxd does not use -server jvm option. Is there any good reason or this? I would expect some performance tuning using -server. But there is explicit -client used in mailboxd_java_options

    Code:
    zimbra@zdev:~$ zmlocalconfig mailboxd_java_options
    mailboxd_java_options = -client -XX:NewRatio=2 -Djava.awt.headless=true -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1
    Has anyone ever tried -server?

Similar Threads

  1. Fedora 5: Could not create the Java virtual machine
    By mi2enno in forum Installation
    Replies: 6
    Last Post: 06-01-2007, 04:16 AM
  2. Tomcat, Java VM Problems - RAM related? Help
    By Mo_Hong in forum Administrators
    Replies: 3
    Last Post: 03-28-2007, 03:00 PM
  3. Mac OSX install: Java errors & LDAP CA error
    By jefbear in forum Installation
    Replies: 9
    Last Post: 12-16-2006, 03:39 PM
  4. Java 1.5 crashing on PPC Mac 10.4.8
    By bradn in forum Installation
    Replies: 1
    Last Post: 12-08-2006, 06:27 PM
  5. Replies: 0
    Last Post: 12-04-2005, 02:34 PM

Posting Permissions

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