Using system.gc in gate pool was a bad idea
In case of error during document processing inside gate, we call System.gc(). However, this is a very bad idea which leads to a Tomcat that is not reachable during a few seconds (sometimes minutes) espeacially in case of big heap size.