java - Failed to initialize tracing backend -
when try use java flight recorder error stating java "failed initialize tracing backend" when starting java.
my command line is:
-xx:+unlockcommercialfeatures -xx:+flightrecorder -xx:startflightrecording=compress=true,delay=10000,maxage=1440,filename=test.jfr -xx:flightrecorderoptions=defaultrecording=true,dist=true,loglevel=trace,settings=profile.jfc,dumponexit=true
the java flight recorder has dreadful documentation , error reporting. error number of reasons. seems if have more 1 mistake in command line - no errors reported correctly.
possible mistakes include:
- mistyping parameter. had typed dist=true instead of disk=true.
- entering number time.
although documentation says:
maxage=time specifies maximum age (in minutes) of disk data default recording.
what means must specify unit. example 30m half hour or 30s half minute. applies other times too:
delay=time specifies delay (in milliseconds) between java application launch time , start of recording.
Comments
Post a Comment