[Users] Interesting Bug/RFE To Consider Voting For

Malte S. Stretz mss at msquadrat.de
Tue Oct 3 10:26:44 CEST 2017


I am not sure about that. My second pull request, against zm-launcher, 
takes care of the permission issue. To summarize: The gc.log (and with 
rotation gc.log.0.current) is created with the owner root:root because 
the JVM will only later drop privileges to zimbra:zimbra. Some code in 
zmmailboxdmgr will fix this up but only for gc.log. It looks like it 
works with the wrong permissions as well but I didn't do much testing 
and thus either the permission issue is not an issue at all or it might 
break your setup in interesting ways.

Fortunately it isn't hard to build a patched zmmailboxdmgr. Just 
checkout the zm-launcher repo with my patch applied (until it is merged 
you can find it in the branch bugfix/bz-98011-use-gc-log-file-rotation 
in https://github.com/mss/zm-launcher) and build the zmmailboxdmgr:

git clone https://github.com/mss/zm-launcher.git
cd zm-launcher
git checkout bugfix/bz-98011-use-gc-log-file-rotation
make all JAVA_BINARY=/opt/zimbra/common/bin/java

This will create the file build/zmmailboxdmgr which you can then place 
on your system.

YMMV and if anything breaks it isn't my fault and you may keep the pieces.

Cheers,

Malte


On 03.10.2017 00:04, L. Mark Stone wrote:
> Thanks Malte; so no permissions changes needed on existing systems 
> after updating the localconfig variable?
>
> All the best,
> Mark
> ___________________________________________________________
> *A Message From...  L. Mark Stone, General Manager*
> **
> /"Uptime.  All the time." /® www.reliablenetworks.com 
> <http://www.reliablenetworks.com>
>
>
> /Fifteen Years In Business!  2003 - 2017!/
>
>
> 477 Congress Street, Suite 812   |   Portland, ME 04101   |   (207) 
> 772-5678 <callto:+1207%29%20772-5678>
>
> Citrix XenApp/XenDesktop Hosting  | SOC 2 Type II Audit
> /Zimbra/Groupware | Mission-Critical Cloud Hosting
>
> This email may contain information that is privileged and confidential.
> If you suspect that you were not intended to receive it, please delete
> it and notify us as soon as possible. Thank you.
>
> ------------------------------------------------------------------------
>
>     *From: *"Malte S. Stretz" <mss at msquadrat.de>
>     *To: *"L. Mark Stone" <lmark.stone at reliablenetworks.com>
>     *Cc: *"users" <users at lists.zetalliance.org>
>     *Sent: *Monday, October 2, 2017 5:41:04 PM
>     *Subject: *Re: [Users] Interesting Bug/RFE To Consider Voting For
>
>     Hi Mark,
>
>     if the pull requests are applied, they will find their way into NE
>     at some point.
>
>     To change the settings on existing systems, the following call
>     followed by a restart of the mailbox service should do the trick:
>
>     zmlocalconfig -e "mailboxd_java_options=$(zmlocalconfig -m nokey
>     mailboxd_java_options | sed -e
>     's/-UseGCLogFileRotation/+UseGCLogFileRotation/')"
>
>     Cheers,
>
>     Malte
>
>
>     On 02.10.2017 23:31, L. Mark Stone wrote:
>
>         Awesome!
>
>         Hopefully Zimbra will incorporate this into Network Edition,
>         with a section in the Release Notes describing how to
>         implement when upgrading existing systems.
>
>         Thanks so much!
>
>         All the best
>         Mark
>         ___________________________________________________________
>         *A Message From...  L. Mark Stone, General Manager*
>         **
>         /"Uptime.  All the time." /® www.reliablenetworks.com
>         <http://www.reliablenetworks.com>
>
>
>         /Fifteen Years In Business!  2003 - 2017!/
>
>
>         477 Congress Street, Suite 812   | Portland, ME 04101   |  
>         (207) 772-5678 <callto:+1207%29%20772-5678>
>
>         Citrix XenApp/XenDesktop Hosting  | SOC 2 Type II Audit
>         /Zimbra/Groupware | Mission-Critical Cloud Hosting
>
>         This email may contain information that is privileged and
>         confidential.
>         If you suspect that you were not intended to receive it,
>         please delete
>         it and notify us as soon as possible. Thank you.
>
>         ------------------------------------------------------------------------
>
>             *From: *"Malte S. Stretz" <mss at msquadrat.de>
>             *To: *"L. Mark Stone" <lmark.stone at reliablenetworks.com>
>             *Cc: *"users" <users at lists.zetalliance.org>
>             *Sent: *Monday, October 2, 2017 5:14:43 PM
>             *Subject: *Re: [Users] Interesting Bug/RFE To Consider
>             Voting For
>
>             Hi Mark,
>
>             thanks for the heads up. Compared to the other log files,
>             the sizes the gc.log can grow to is most the time still
>             manageable but it can be surprising. Fortunately is this
>             one of the smaller changes which are simple enough to fix.
>             I opened two related pull requests to make the rotation
>             the default and fix up the permissions if done so:
>
>               * https://github.com/Zimbra/zm-mailbox/pull/389
>               * https://github.com/Zimbra/zm-launcher/pull/2
>
>             These won't change the settings on existing systems but
>             will apply on newly installed ones.
>
>             Cheers,
>
>             Malte
>
>
>             On 02.10.2017 20:38, L. Mark Stone wrote:
>
>                 https://bugzilla.zimbra.com/show_bug.cgi?id=98011
>
>                 Malte S. filed this bug/RFE in 2015.  We happened to
>                 look at an 8.6 mailbox server today and noted the
>                 gc.log was more than 225MB; the server had been
>                 running for only two months.
>
>                 Please consider voting for this bug, especially if you
>                 run a busy server(s) that is(are) going to be doing a
>                 lot of Java garbage collection activity.  If you have
>                 already made the changes, please comment on the
>                 Bugzilla to indicate if Java is able to manage its own
>                 log file rotation.
>
>                 Thanks,
>                 Mark
>                 ___________________________________________________________
>                 *A Message From...  L. Mark Stone, General Manager*
>                 **
>                 /"Uptime.  All the time." /® www.reliablenetworks.com
>                 <http://www.reliablenetworks.com>
>
>
>                 /Fifteen Years In Business!  2003 - 2017!/
>
>
>                 477 Congress Street, Suite 812   |   Portland, ME
>                 04101   |   (207) 772-5678 <callto:+1207%29%20772-5678>
>
>                 Citrix XenApp/XenDesktop Hosting  | SOC 2 Type II Audit
>                 /Zimbra/Groupware  | Mission-Critical Cloud Hosting
>
>                 This email may contain information that is privileged
>                 and confidential.
>                 If you suspect that you were not intended to receive
>                 it, please delete
>                 it and notify us as soon as possible. Thank you.
>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zetalliance.org/pipermail/users_lists.zetalliance.org/attachments/20171003/76d693a2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RelNet_Logo_300x60.png
Type: image/png
Size: 11090 bytes
Desc: not available
URL: <http://lists.zetalliance.org/pipermail/users_lists.zetalliance.org/attachments/20171003/76d693a2/attachment.png>


More information about the Users mailing list