Users ckshen and Richie report high CPU usage on their Discourse servers after updates, with the openvpn user and Ruby unicorns consuming significant resources. ckshen observes 100% CPU utilization and suspects the location plugin and layouts plugin as culprits. After removing both, the issue resolves. Richie confirms the location plugin is the likely cause, as CPU usage returns to normal after disabling it. ckshen notes the problem also disappeared after upgrading to Discourse 2.6.0.beta6. RBoy asks how to monitor CPU and memory usage per plugin, as htop only shows unicorn workers. The discussion suggests the location plugin is a potential cause of high CPU usage, and upgrading or disabling it may resolve the issue.
Removed the layouts plugin and the location plugin and the problem resolved itself for now. Because its really late my time I haven’t had a chance to isolate whether one or both or none are causing the issue, but @angus@merefield giving you a heads up.
I didn’t have a chance to check the errors before I took down the plugins. And then today I rebuilt Discourse to 2.6.0.beta6 ( e7bad9f05d ). Problem went away.
A basic question, how does one know which plugin is taking how much CPU and memory? htop only shows the unicorn workers but not much resource each plugin is utilizing.