This is a classic issue. You probably have a fairly large document that is consuming all the available memory during text extraction.
Edit the `setenv.sh` file (you will find it under `tomcatXXX/bin`) and increase the memory allocation from `4096M` to `8192M`. Once you have done this, restart the ...
