Documentation Archive Developer
Search
Table of Contents Previous Section

Periodically Shutting Down the Application

The longer an application runs, the more memory it consumes. As more memory is consumed, the server machine's performance begins to degrade. For this reason, you may find that performance is greatly improved if you occasionally stop an application instance and start it again.

The Monitor application lets you specify when each application instance should shut down. By default, WebObjects applications never shut down unless you manually shut them down (which you can do by clicking the On/Off switch in the Application Inspector Instance Status field).

To set up periodic application shutdown, do the following:

  1. In the Application Inspector, click the More button to show the Application Instance Inspector in the bottom frame.

  2. Scroll down until you see the check box labeled Scheduling Enabled. Click this check box.

  3. Choose how the application should determine when to shut down and restart. There are several options:

  4. If you want the application to restart automatically after it is shut down, click the Auto-Recover button in the Application Inspector. If this setting is not enabled, you'll have to manually restart the application instance.

  5. Click Save Settings.
You can programmatically set up an application to shut down in addition to setting it using the Monitor. If the two settings conflict, the Monitor settings override the application's settings. For more information, see the WebObjects Developer's Guide.

Table of Contents Next Section