Skip to content

HelpUiDialogsOptionsJvm

psiinon edited this page Sep 7, 2015 · 7 revisions

Options JVM screen

This screen allows you to configure the JVM options used when starting ZAP.

JVM Options

A free format text field which will be added to the Java command line call when invoking ZAP via either zap.sh or zap.bat.

The option was added so that the Java maximum memory allocation pool size can be set, which is of the form: -Xmxn where n is the size in bytes. Good values for this field could be:

  • -Xmx256m
  • -Xmx512m
  • -Xmx1024m

Unlike the other ZAP options these are held in the file ".ZAP_JVM.properties" in the user's default ZAP directory, which depends on the OS being used:

  • Windows 7/8: C:\Users\\OWASP ZAP
  • Windows XP: C:\Documents and Settings\\OWASP ZAP
  • Linux: ~/.ZAP
  • Mac OS: ~/Library/Application Support/ZAP

If you make a mistake when setting these options then ZAP may fail to start. If that happens then deleting this file should fix the problem.

Note that these options are not used when starting ZAP via the Windows exe.

See also

     UI Overview for an overview of the user interface
     Options dialogs for details of the other Options dialog screens

External links

     Java 7 options
     Java 8 options
Clone this wiki locally