PSA: The "pm2 monit" Application uses 100% CPU Over Time!


image.png
( image stolen from google, as is tradition )

This PSA is Mainly for Hive Engine Witnesses

If you use pm2 monit on any of your servers for HE the damn thing has a memory leak and eventually ramps up CPU usage to 100%.. This causes massive delays in the node and API.

use pm2 imonit instead if you need to monitor or pm2 logs if you need logging.. as pm2 monit is trash tier at this point in time sadly. As most tutorials on how to get HE witness or API node uses pm2 monit in it or mentions it I figured I'd put the word out there.

After SIGKILL of pm2 monit

My Hive Engine full node API & Witness box was taking anywhere between 2 to 9 seconds to respond before closing down pm2 monit.. While it was still responding due to the 100% CPU usage of the app it was chugging ass for lack of a better term...

Now after closing the damn thing down the replies are sub second..! HUGE IMPROVEMENT!

use htop on your box and see if pm2 monit is using high CPU cycles, I know on my box it was literally the most greedy application CPU usage wise up until I killed it. Won't be using it anymore.

pm2 monit Why You Do This?


After looking into it more I realized that the application itself may have a small memory leak and due to constantly redrawing console in screen regardless of it being viewed or not in a terminal might be the cause of this. Initially the pm2 monit app seems to act alright but when it runs for a while it starts to pick up more and more CPU usage.


VOTE @KLYE FOR WITNESS!



( vote KLYE for more PSA bullshit )
Every Single Vote Helps, Thanks for the Support!
Need to get in Contact with KLYE?
Join the Official #KLYE Discord Server Today!

image.png
Looking for an Affordable, Secure & Reliable Server Host for Your Witness Server or Other Web Projects? Check out Privex.io!

0.08373646 BEE
0 comments