I have an adapter that I have to set the java heap size to something like 150MB to get it to process large documents.