Skip to Content

Long time to restore minimized application

Estimated Reading Time: 1 Minutes

You may experience a slow response time in a scenario like the following:

  1. The application works well as long as the user is busy with it.
  2. The user lets the application sit idle while they do other things.
  3. When this user clicks on the application to reactivate it, the response to get it upon the screen again is very long.
This is especially true when the application is a GUI app, and the idle time is an hour or more. Once the GUI is activated everything works fine and the response time is normal.

To solve this problem, set the java property "sun.awt.keepWorkingSetOnMinimize=true"
For instance:

   iscclient -J-Dsun.awt.keepWorkingSetOnMinimize=true -hostname 10.234.10.18 MAIN_PROGR

   java -Dsun.awt.keepWorkingSetOnMinimize=true com.iscobol.gui.client.Client -hostname 10.234.10.18 MAIN_PROGR

   iscrun -J-Dsun.awt.keepWorkingSetOnMinimize=true MAIN_PROGR

   java -Dsun.awt.keepWorkingSetOnMinimize=true MAIN_PROGR

Long time to restore minimized application