13.8.6 Update detection interval for J2EE applications

The J2EE server periodically monitors the J2EE application configuration file and detects an update if the configuration file is updated. The interval between monitoring the J2EE application configuration file and detecting an update is set as the update detection interval. The following figure shows the update detection interval.

Figure 13-11 Update detection interval

[Figure]

If the value of the update detection interval is increased, the interval for monitoring the configuration file becomes prolonged and the reloading of the updated file is applied with a delay. Also, if the value is decreased, reloading is applied faster.

Hint
If the number of files for which updates are to be detected increase, the overheads of update detection along with the CPU usage increases. In such cases, you can reduce the impact on the performance by changing the update detection interval. We recommend that you increase the value of the update detection interval.

You can set the update detection intervals for J2EE applications, Web applications, and JSPs respectively. The relationship between the set values is as follows:

For EJB applications
The update detection interval for J2EE applications (ejbserver.deploy.context.check_interval) is used. Note that when 0 is specified in the update detection interval for J2EE applications, the updates cannot be detected for EJB applications.
For servlets
The update detection interval for the Web applications or J2EE applications is used. The priority is as follows:
  1. Update detection interval for the Web applications (webserver.context.check_interval)
  2. Update detection interval for J2EE applications (ejbserver.deploy.context.check_interval)
Note that when the update detection interval for the Web applications is not specified, the update detection interval for J2EE applications is used.
Also, when 0 is specified in the update detection interval for the Web applications, the updates are not detected for the servlets.
For JSPs
The update detection interval for the JSPs or J2EE applications is used. The priority is as follows:
  1. Update detection interval for the JSPs (webserver.jsp.check_interval)
  2. Update detection interval for the J2EE applications (ejbserver.deploy.context.check_interval)
Note that when the update detection interval for the JSPs is not specified, the update detection interval for J2EE applications is used.
Also, when 0 is specified in the update detection interval for the JSPs, the updates are not detected for the JSPs.