High Java CPU usage question

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
stasouv
Advanced member
Advanced member
Posts: 63
Joined: Sat Sep 13, 2014 2:25 am
ZCS/ZD Version: 8.8.15_GA_3869.RHEL7_64_20190917004

High Java CPU usage question

Post by stasouv »

[quote user="1415bhwong"]Hi Stasouv,
Please share where are the Java components in the lib folders that we can move out.[/QUOTE]
Well, it's been long so my memory fails me, but you could start looking in:
/opt/zimbra/lib/jars

/opt/zimbra/lib/ext*/*

/opt/zimbra/zimlet*
Hint: Check the dates... Old components should date way back then the new ones.
mrcoffee11
Advanced member
Advanced member
Posts: 57
Joined: Fri Sep 12, 2014 11:11 pm

High Java CPU usage question

Post by mrcoffee11 »

Thank you Stasouv and bhwong, this might be the problemsolver.

So weird no Zimbra-teammember is helping us out here.
Roderick
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

High Java CPU usage question

Post by phoenix »

[quote user="mrcoffee11"]So weird no Zimbra-teammember is helping us out here.[/QUOTE]Why? These are Community support forums not official Zimbra support and people post here voluntarily and when they have the time.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
1415bhwong
Outstanding Member
Outstanding Member
Posts: 498
Joined: Sat Sep 13, 2014 12:03 am

High Java CPU usage question

Post by 1415bhwong »

This option, especially PermSize, help to prevent Java for mailboxd from hitting 100% too:
zmlocalconfig -e mailboxd_java_options="-server -Djava.awt.headless=true

-XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewRatio=2

-XX:PermSize=196m -XX:MaxPermSize=350m -XX:SoftRefLRUPolicyMSPerMB=1

-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps

-XX:+PrintGCApplicationStoppedTime

-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/zimbra/log

-XX:ErrorFile=/opt/zimbra/log”
1415bhwong
Outstanding Member
Outstanding Member
Posts: 498
Joined: Sat Sep 13, 2014 12:03 am

High Java CPU usage question

Post by 1415bhwong »

If you are on single server, ensure that memcached is not running too.
Check which services are running and installed:

zmprov gs `zmhostname` | grep zimbraServiceEnabled

zmprov gs `zmhostname` | grep zimbraServiceInstalled
disable and remove memcached:

zmprov ms `zmhostname` -zimbraServiceEnabled memcached

zmprov ms `zmhostname` -zimbraServiceInstalled memcached

zmcontrol stop

zmcontrol start
mrcoffee11
Advanced member
Advanced member
Posts: 57
Joined: Fri Sep 12, 2014 11:11 pm

High Java CPU usage question

Post by mrcoffee11 »

[quote user="10330phoenix"]Why? These are Community support forums not official Zimbra support and people post here voluntarily and when they have the time.[/QUOTE]

I see, thanks. This problem has been out there for years in several threads and so many people tried different solutions but it was never solved, so that's why I placed my remark the community needed input from the Zimbra team.
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

High Java CPU usage question

Post by phoenix »

[quote user="mrcoffee11"]I see, thanks. This problem has been out there for years in several threads and so many people tried different solutions but it was never solved, so that's why I placed my remark the community needed input from the Zimbra team.[/QUOTE]Various problems with java have been addressed in previous releases of Zimbra, if you want to get the attention of Zimbra developers then file a bug report - that's the correct place for bug if you think that's what is happening on your server.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Post Reply