zmstat high cpu usage and huge file zmstat.out

0
(0)

After fresh install of Zimbra 8.8 on Ubuntu 18.04.2 LTS I encountered issues with zmstat.out file increasing dramatically in short time (several hundred gigs in minutes) along with high CPU load.

zmstat.out mentioned issues with uninitialized variable $list in the /opt/zimbra/libexec/zmstat-io perl script on line 76.

After checking the line and comparing the output of /usr/bin/iostat, I figured the latter had no : after the Device entry.

zimbra@sol:~$ iostat
Linux 4.15.0-50-generic (sol)   05/29/2019      _x86_64_        (2 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          20.41    8.96    9.80    7.28    0.00   53.55

Device             tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sdc              27.82      1117.57      4601.60  119308677  491252548
sda              74.38      4111.18      2056.85  438896128  219582696
sdb              46.77      2488.03      4601.61  265614472  491253852
md1               0.00         0.04         0.00       4528         60
md3              65.43      3585.30      4580.76  382754949  489026940
md2              15.71        21.68        41.18    2314220    4396760

The zmstat-io perl script should thus have replaced all 5 occasions of the search string Device: by Device

Example:

Wrong code:

while ($line !~ /^avg-cpu/ && $line !~ /^Device:/) {

Corrected code:

while ($line !~ /^avg-cpu/ && $line !~ /^Device/) {

Problem has been solved.

165

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Scroll to Top