Sun GlassFish Enterprise Server v3 Administration Guide

ProcedureTo Delete a Thread Pool

Use the delete-threadpool subcommand in remote mode to delete an existing thread pool. Deleting a thread pool will fail if that pool is referenced by a network listener.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. List the existing thread pools by using the list-threadpools(1) subcommand.

  3. Delete the specified thread pool by using the delete-threadpool(1) subcommand.

  4. To apply your changes, restart Enterprise Server.

    See To Restart a Domain.

    Note –

    Restart is not necessary for thread pools used by the web container.

Example 5–4 Deleting a Thread Pool

This example deletes threadpool-1.

asadmin> delete-threadpool threadpool-1
Command delete-threadpool executed successfully

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help delete-threadpool at the command line.