Avoiding socket time-outs when creating archives

Socket time-outs can occur when you add many or large resources and processes to an archive. Create archives asynchronously if socket time-outs occur when you are creating or updating archives.

When you create archives, Workbench opens a connection to the AEM forms server. The default behavior is to maintain the connection while the archive is created. If the connection is open for too long, a socket time-out can occur. The amount of time required to cause a socket time-out depends on the server configuration.

When you are creating archives asynchronously, the connection is closed after Workbench sends the request to the AEM forms server to create the archive. Another connection is opened when the AEM forms server notifies Workbench that the archive is created.

Create archives asynchronously

  1. Open the workbench.ini file in a text editor.

    The workbench.ini file is in the [install directory] /AEM forms Workbench/workbench directory, where [install directory] is the location where you installed Workbench.

  2. Locate the following line of text that controls the asynchronous behavior of archive creation:

    -Dcom.adobe.workbench.repository.create_lca_asynchronously=false 
  3. Change the text to set the property to true:

    -Dcom.adobe.workbench.repository.create_lca_asynchronously=true 
  4. Save workbench.ini and restart Workbench.

// Ethnio survey code removed