Logstash is periodically hanging (unresponsive). How to recognize and fix?

Found a related topic with no found solutions