A server instance is tied to a particular profiler by the profiler element in the Java configuration. If JVM options are created for a profiler, the options are used to record the settings needed to activate a particular profiler. Use the create-profiler subcommand in remote mode to create the profiler element in the Java configuration.
Only one profiler can exist. If a profiler already exists, you receive an error message that directs you to delete the existing profiler before creating a new one.
Ensure that the server is running.
Remote subcommands require a running server.
Create a profiler by using the create-profiler(1) subcommand.
Information about properties for the subcommand is included in this help page.
To apply your changes, restart GlassFish Server.
See To Restart a Domain.
This example 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 Command create-profiler executed successfully.
You can also view the full syntax and options of the subcommand by typing asadmin help create-profiler at the command line.