title: Java code running in Tomcat WebApp runs much slower than when invoked from JVM
body: <p>I have a java class that parses a file to gather information. Using a test file of about 8 MB, it completes in about 250 ms when running it within a test java program. When I integrate this class into a Tomcat webapp (a restful web service), parsing the same file takes about 5-10 seconds.</p>
  
  <p>Any pointers on where to look first?</p>