Przejdź do głównej zawartości
Wersja: 19.0

Schedule Nightly Restart of Aworker Processes

By default, the aworker processes of the ADONIS application server are restarted automatically each night at 00:00 local time for on-premise deployments. For SaaS deployments, the restart occurs every Saturday at 4:00 AM CET. These restarts will result in all active user sessions being lost.

Regular restarts are necessary to avoid memory fragmentation which may cause performance degradation over time or, in the worst case, may lead to the ADONIS application server crashing because of insufficient memory. The recommended interval for restarts depends on the usage of the ADONIS application server. As a rule of thumb, the restart should be scheduled daily.

To reschedule the nightly restart, add or adapt the following environment variables within the deployment configuration of the application server container:

  • SERVER_AUTO_CLEANUP: Set this variable to false to deactivate the automatic restart of the aworker processes. Only do this if requested by a BOC employee.

  • SERVER_AUTO_CLEANUP_DAY: Set your schedule to run on certain days of the week by specifying a space-separated list of numbers (1 - Monday, 2 - Tuesday, ..., 7 - Sunday). The default value is 1 2 3 4 5 6 7 (every day).

  • SERVER_AUTO_CLEANUP_TIME: Specify the time when the aworker processes will be restarted in hh:mm format (e.g., 03:30). The default value is 00:00.

Info

The changes will not become effective until the configuration is applied to the runtime environment and the application server container is restarted.