huge amount of jvm memory leak fixes