4.6.15 Changing the environment variable to be applied to the process of the asadmin utility command
To change the environment variable to be applied to the process of the asadmin utility command, edit the environment definition file of the Java EE server (asenv.bat). For the environment variable to be applied to the process of the asadmin utility command, specify values for Java memory, such as the Java heap; the log for the asadmin utility command; and other information. For example, if many applications are deployed or many files are included in applications, and a memory shortage thereby occurs when the Java EE server starts, change the size of the Java heap to be applied to the process of the asadmin utility command.
Prerequisites
-
The domain administration server (DAS) is running.
-
Application Server has been set up.
Intended users
-
System engineers
Procedure
Edit the environment variable definition file of Java EE Server (asenv.bat), and change the environment variable to be applied to the process of the asadmin utility command.
Change the environment variable for the remote host and the localhost in a cluster configuration that contains more than one Java EE server.
- Environment variable definition file of Java EE Server
-
installation_directory_for_Application_Server/javaee/glassfish/config/asenv.bat
- Example edits
-
If you want to change the maximum size of the Java heap, set a value for the environment variable HJES_ASADMIN_JVM_OPTIONS.
set HJES_ASADMIN_JVM_OPTIONS=-Xmx256m