Make sure the buffered reader is closed.
When configuring tomcat, be specific about memory settings.