When it does that, use top -H -p <pid of openHAB > so you can see which thread is consuming all the CPU.
top -H -p <pid of openHAB >