2 Replies Latest reply: Feb 21, 2007 11:17 PM by EJP RSS

    JVM Setting for performance as reading zip files.....??

    807606
      I am not too familiar with VM options but I noticed that reading from Zip files is pretty process intensive. I am basically searching through zip files to find a file and then taking that inputstream for processing. I am basically looping through the zip file until i match the filename....pretty crazy.

      Anyway, it is somewhat slower than I'd like so I want to see what I can do to increase performance. I am using the following parameters:

      -Xms512m -Xmx1024M -Xss16M -XX:ThreadStackSize=256 -XX:MaxPermSize=256m

      The machine I have is a single P4 3GHZ, ~3GB RAM.

      Do those params look ok?

      Thanks!
      Michael
        • 1. Re: JVM Setting for performance as reading zip files.....??
          807606
          intensive. I am basically searching through zip
          files to find a file and then taking that inputstream
          for processing. I am basically looping through the
          zip file until i match the filename....pretty crazy.
          I think it is pretty I/O intensive...hence slower
          to see what I can do to increase performance. I am
          using the following parameters:
          -Xms512m -Xmx1024M -Xss16M -XX:ThreadStackSize=256
          -XX:MaxPermSize=256m
          Parameters look ok. I am not sure what
          -XX:ThreadStackSize
          will do as -Xss also sets the stack size? you can also try to pass -server and keep both Xms and Xmx to 1024 and see if it brings any improvement.

          -BJ
          • 2. Re: JVM Setting for performance as reading zip files.....??
            EJP
            If it's CPU-bound I wouldn't expect any improvement at all from allocating more memory. If it's I/O bound ditto. If it's GC-bound I would expect an improvement.