java options
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.
java options
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...)
java options
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
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?
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?