I noticed monit using up 65% of my CPU on my HP Mediasmart server. I checked /var/log/monit.log and found the only entries were for:
[EST Dec 23 13:02:58] error : 'vncserver-4' process is not running
[EST Dec 23 13:02:58] info : 'vncserver-4' trying to restart
[EST Dec 23 13:02:58] info : 'vncserver-4' start: /usr/bin/systemctl
[EST Dec 23 13:03:28] error : 'vncserver-4' failed to start
[EST Dec 23 13:03:28] error : 'afpd' process is not running
[EST Dec 23 13:03:28] info : 'afpd' trying to restart
[EST Dec 23 13:03:28] info : 'afpd' start: /usr/bin/systemctl
[EST Dec 23 13:03:58] error : 'afpd' failed to start
These entries happen every minute and impact overall system performance. Any suggestions?
Amahi 7.2 on Fedora 19
Monit uses 65% of of CPU
Re: Monit uses 65% of of CPU
Do you have these apps installed on your HDA? Are the services currently running? You can remove the files from /etc/monit.d directory and restart monit to stop monitoring of these services.
If the apps are installed and running, there is something else wrong then.
If the apps are installed and running, there is something else wrong then.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Monit uses 65% of of CPU
I uninstalled VNC. Amahi Time Machine is working correctly. It looks like monit is looking for a PID file for it that doesn't exist. I commented that check out of the monit.d/ config file as a workaround and it seems to have resolved the symptom. Any suggestions on fixing it?
Re: Monit uses 65% of of CPU
My recommendation would be to find out the pid file name and location. Then update the .conf file. That should allow things to work correctly.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Monit uses 65% of of CPU
I figured this out and it resolved the cpu issues.
Edit /usr/libexec/netatalk/netatalk.sh
Change the following line:
to
Restart the netatalk.service
Restart the monit.service
Edit /usr/libexec/netatalk/netatalk.sh
Change the following line:
Code: Select all
AFPD_UAMLIST= "-U uams_dhx.so,uams_dhx2.so”
Code: Select all
AFPD_UAMLIST="-P /var/run/afpd.pid -U uams_dhx.so,uams_dhx2.so”
Restart the monit.service
Re: Monit uses 65% of of CPU
Would you mind adding this to the wiki? It would be good for users who experience the same problem. The Amahi wiki is our primary source of tutorials and how to's for Amahi vs the forums.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Who is online
Users browsing this forum: No registered users and 2 guests