Generally, when OH is locking up or being very slow/not responding properly, one of the best tools to figure out what is going wrong is making a thread dump (and post it somewhere that somebody who knows how to read it can look at it). It will reveal if there are deadlocked threads, long thread pool queues, etc.
If you want to capture memory use over time and even more live data of what’s going on, you can create a JFR recording:
While I can’t guarantee that absolutely nothing “of interest to somebody” can be revealed in such files, both thread dumps and JFRs typically contains must less “user data” than a log file. They capture information about the JVM itself, not so much the application running in it.