Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Create a Profiler

The remote create-profiler command enables you to create a profiler element in the Java configuration.

  1. Ensure that the server is running.

    Remote commands require a running server.

  2. Create a profiler by using the create-profiler(1) command.

  3. To apply your changes, restart Enterprise Server.

    1. Stop Enterprise Server.

      For instructions, see To Stop a Domain (or Server).

    2. Start Enterprise Server.

      For instructions, see To Start a Domain (or Server).


Example 4–6 Creating a Profiler

The following example command creates a profiler named sample_profiler:


asadmin create-profiler --classpath=/home/appserver/ --nativelibrarypath=/u/home/lib --enabled=false 
--property=defaultuser=admin:password=adminadmin sample_profiler

Information similar to the following is displayed:


Command create-profiler executed successfully.

See Also

To see the full syntax and options of the command, type asadmin create-profiler --help at the command line.