9.16.3 Settings for execution environment
To use the finalize-retention resolution function, you must specify settings for the following:
-
J2EE server
-
Batch server
-
Java application
- Organization of this subsection
(1) Specifying settings for the J2EE server
Specify the J2EE server settings in the Easy Setup definition file. Specify the definition of the finalize-retention resolution function in the JavaVM startup parameter (add.jvm.arg) in the <configuration> tag of the logical J2EE server (j2ee-server) in the Easy Setup definition file. The parameter value to be specified is as follows:
-
-DJP.co.Hitachi.soft.jvm.autofinalizer=true
This enables the finalize-retention resolution function. If this function is enabled, a monitoring thread is created when Java starts. The default value is true, so specify false to disable the function.
For details on the Easy Setup definition file and parameters, see 4.3 Easy Setup definition file in the uCosminexus Application Server Definition Reference Guide.
(2) Specifying settings for the batch server
Specify the batch server settings in the Easy Setup definition file. Specify the definition of the finalize-retention resolution function in the JavaVM startup parameter (add.jvm.arg) in the <configuration> tag of the logical J2EE server (j2ee-server) in the Easy Setup definition file. The parameter value to be specified is as follows:
-
-DJP.co.Hitachi.soft.jvm.autofinalizer=true
This enables the finalize-retention resolution function. If this function is enabled, a monitoring thread is created when Java starts. The default value is true, so specify false to disable the function.
For details on the Easy Setup definition file and parameters, see 4.3 Easy Setup definition file in the uCosminexus Application Server Definition Reference Guide.
(3) Specifying settings for the Java application
Specify the Java application settings in the usrconf.cfg (option definition file for Java applications). Specify the definition of the finalize-retention resolution function in the add.jvm.arg key in usrconf.cfg. The parameter value to be specified is as follows:
-
-DJP.co.Hitachi.soft.jvm.autofinalizer=true
This enables the finalize-retention resolution function. If this function is enabled, a monitoring thread is created when Java starts. The default value is true, so specify false to disable the function.
For details on usrconf.cfg (option definition file for Java applications), see 12.2.1 usrconf.cfg (Option definition file for Java applications) in the uCosminexus Application Server Definition Reference Guide.