There was a classloader memory leak problem because a class contained a static references to an exception (including stack trace).