java options

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
tlum
Posts: 2
Joined: Fri Sep 12, 2014 11:18 pm

java options

Post by tlum »

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.
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

java options

Post by marcmac »

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...)
chlauber
Advanced member
Advanced member
Posts: 71
Joined: Fri Sep 12, 2014 11:41 pm

java options

Post by chlauber »

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?
Post Reply