Maybe you should have mentioned this tiny detail sooner. Looking at your thread again, the "main thread is being blocked" is quite a severe thing actually. Does it appear more often or only during startup? If the main thread is blocked (for example because of database activity) then the entire server freezes for a couple dozen or hundred milliseconds. If done enough times (or if you have a super slow db server for example) this can cause serious lag.