All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.task-jvmsettings.html Maven / Gradle / Ivy




To Configure the JVM General Settings

The Java Virtual Machine (JVM) enables Java byte codes to run on a physical machine. Tuning the JVM settings improves performance and avoids memory allocation errors.

The Java Virtual Machine is included in the Java Platform, Standard Edition (Java SE platform), which is required by the GlassFish Server. Incorrect JVM settings will prevent the server from running, so use care when changing these settings.


Note - The terms “Java Virtual Machine” and “JVM” mean a Virtual Machine for the Java platform.


  1. In the navigation tree, select the Configuration node.
  2. Under the Configuration node, select the JVM Settings node.

    The JVM General Settings page opens.

  3. On the JVM General Settings page, in the Java Home field, type the name of the installation directory of the Java SE software.

    The GlassFish Server relies on the Java SE platform. To verify that the version of Java SE software that you specify is supported in this release, see the Oracle GlassFish Server 3.1 Release Notes. If you enter a nonexistent directory name or the directory for an unsupported version of Java SE software, then GlassFish Server will not start.

  4. In the Javac Options field, type the command-line options for the Java programming language compiler.

    The GlassFish Server runs the compiler when Enterprise JavaBeans (EJB) components are deployed.

  5. Select the Debug Enabled checkbox to enable debugging with the Java Platform Debugger Architecture (JPDA).

    JPDA is used by application developers. For more information, see the Oracle GlassFish Server 3.1 Application Development Guide.

  6. In the Debug Options field, type the JPDA options to be passed to the JVM.

    This field is applicable only if debugging was enabled in the preceding step.

  7. In the RMI Compile Options field, type the command-line options for the rmic compiler.

    The GlassFish Server runs the rmic compiler when EJB components are deployed.

  8. In the Bytecode Preprocessor field, type a list of class names.

    Use commas to separate class names. Each class must implement the com.sun.appserv.BytecodePreprocessor interface. The classes are called in the order specified.

  9. (Optional) In the Additional Properties section, specify additional properties.

    To add a property, click the Add Property button. In the blank row that appears, type the property name in the Name field, and type the property value in the Value field.

    The GlassFish Server does not define any additional properties for the JVM.

  10. Click Save.

    Tip - To return to the default settings, click the Load Defaults button, then click Save.


  11. Restart the server.
See Also
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices




© 2015 - 2025 Weber Informatics LLC | Privacy Policy