mc admin profile
Note
This command has been replaced by mc support profile as of mc RELEASE.2023-04-06T16-51-10Z.
Description
The mc admin profile command generates profiling data for debugging
purposes.
Use mc admin on MinIO Deployments Only
MinIO does not support using mc admin commands with other
S3-compatible services, regardless of their claimed compatibility with MinIO
deployments.
Profile Data Format
mc admin profile produces a ZIP archive profile.zip that
contains one or more .pprof files. Use the
pprof go utility to read the
profile data.
Examples
Profile Data for Single Resource
Use mc admin profile start with the
type flag to start profiling the
resource:
mc admin profile start --type "TYPE" ALIAS
Use mc admin profile stop to stop profiling data from the specified
resource and output the results:
mc admin profile stop
The command outputs the profiled data as profile.zip.
Profile Data for Multiple Resources
Use mc admin profile start with the
type flag to start profiling the
resources:
mc admin profile start --type "TYPE,[TYPE...]" ALIAS
Replace
TYPEwith the resources to profile. Specify multiple resources as a comma-separated list.
Use mc admin profile stop to stop profiling data from the specified
resources and output the results:
mc admin profile stop
The command outputs the profiled data as profile.zip.
Syntax
mc admin profile has the following syntax:
mc admin profile SUBCOMMAND
mc admin profile supports the following subcommands:
- mc admin profile start
Starts collecting profiling data on the target MinIO deployment. The command has the following syntax:
mc admin profile start [FLAGS] TARGET
mc admin profile startsupports the following arguments:- TARGET
The
aliasof a configured MinIO deployment from which the command collects profiling data.
- type
The type(s) of profiling data to collect from the
TARGETMinIO deployment.Specify one or more of the following supported types as a comma-separated list:
cpumemblockmutextracethreadsgoroutines
Defaults to
cpu,mem,blockif omitted.
- mc admin profile stop
Stops the profiling process and returns the collected data as
profile.zip. Thezipfile contains one or more.pproffiles which are readable with programs like thegopprof utility.The command has the following syntax:
mc admin profile stop TARGET
The command supports the following arguments:
- TARGET
The
aliasof a configured MinIO deployment from which the command returns available profiling data.