- Platform information:
- Hardware: Mac mini (Late 2012) / 2,3 GHz Intel Core i7 / 16GB RAM
- OS: MacOS 10.14.6
- Java Runtime Environment: Zulu: 8.50.0.51
- openHAB version: 2.5.10
Hi All,
I’m experiencing a peculiar problem. I habe a long running installation of OpenHAB which I’ve migrated from Docker on a Synology to run natively on a Mac. Everything is configured via text files and the migration went without any problems and the system works as previously.
I now noted that OpenHAB maxes aus the CPU on the Mac mini, it didn’t do that in the Docker installation which had a way weaker CPU.
What’s interesting is that the CPU load, after running normally for a while, jumps up in several steps:
(the initial spikes are just the initialisation)
When I sorted the output of threads --list by CPU time the following threads where on top (everything else was less then 0.1% of CPU time:
Id Name State CPU time CPU %
244 ESH-httpClient-common-244 RUNNABLE 7568939 16,7%
744 ESH-httpClient-common-744 RUNNABLE 4359601 9,6%
228 ESH-httpClient-common-228 RUNNABLE 3768833 8,3%
227 ESH-httpClient-common-227 TIMED_WAITING 3523188 7,8%
235 ESH-httpClient-common-235 RUNNABLE 3305965 7,3%
1995 ESH-httpClient-common-1995 TIMED_WAITING 3154545 7,0%
226 ESH-httpClient-common-226 RUNNABLE 3034625 6,7%
229 ESH-httpClient-common-229 RUNNABLE 2997592 6,6%
242 ESH-httpClient-common-242 RUNNABLE 2780304 6,1%
241 ESH-httpClient-common-241 RUNNABLE 2502290 5,5%
234 ESH-httpClient-common-234 RUNNABLE 2297561 5,1%
6255 ESH-httpClient-common-6255 TIMED_WAITING 2053549 4,5%
5198 ESH-httpClient-common-5198 TIMED_WAITING 1797113 4,0%
6494 ESH-httpClient-common-6494 TIMED_WAITING 1439466 3,2%
270 HTTP Refresh Service RUNNABLE 91702 0,2%
106 OH-EventHandlerExecutor-1 WAITING 67410 0,1%
108 pool-6-thread-1 WAITING 59677 0,1%
264 Stanza Listener Thread TIMED_WAITING 35329 0,1%
70 OH-OSGiEventManager TIMED_WAITING 34587 0,1%
I’ve been logging the CPU load every two seconds to pinpoint the exact time of the load jump, but there was not anything at that time in the logs that could explain it (just values constantly updating at the normal pace that happens 24/7).
I can restart OpenHAB every once in a while to get rid of the CPU load, but that is not really a long term solution.
I’d appreciate any help. Thanks,
Stefan