Open topic with navigation

# Unload Language Resources

The way in which HPE IDOL Speech Server handles resources depends on whether the resource is manually or automatically loaded. For example, if you load a resource manually, it remains in memory until you explicitly unload it. By contrast, if a language pack is loaded automatically when the task that requires that resource starts, the resource might be automatically unloaded after it is no longer needed.

A loaded language resource is considered active while it is being used by a running task. After that task finishes (and assuming that there are no other running tasks using the same resource), it is considered inactive. If you did not load the resource manually, it might be automatically unloaded. The point at which inactive resources are unloaded is controlled primarily by the minimum resource count settings. You can use the following parameters to set these for the various resource types :

- The `minLangResources` parameter sets the minimum number of language packs (`Lang` and `Langvt`) to leave loaded.
- The `minSidResources` parameter sets the minimum number of speaker identification base packs (`SidBase`) to leave loaded.
- The `minAfpResources` parameter sets the minimum number of audio fingerprint databases (`Fpdb`) to leave loaded.

If the number of loaded resources of a particular type exceeds the threshold specified by the parameters above, HPE IDOL Speech Server unloads inactive resources of that type until the threshold is met.

If you set the minimum resource count parameters to `0`, HPE IDOL Speech Server always unloads any inactive resources of that type (unless they were manually loaded).

If you set the minimum resource count parameters to `-1`, HPE IDOL Speech Server sets the threshold to equal the maximum count for that resource. In this case, a resource is only ever unloaded if a different resource (of the same type) is required, but there are no slots available for it.

Note: If you set both the maximum and minimum thresholds for a resource to `-1`, HPE IDOL Speech Server never unloads loaded resources, and records a warning in the logs when you start the server.

## Unload Manually Loaded Resources

You must explicitly unload manually loaded resources. If you use the `unloadLanguage` action, HPE IDOL Speech Server does not unload the resource immediately, but marks it as unloadable. It is then subject to the same process that applies to automatically loaded resources, as described above.

© 2013-2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm