I am trying to record JFR for a java application hosted in tomcat server. I have used following jvm args .
-XX:+UnlockCommercialFeatures -XX:+FlightRecorder
And i am using following linux command to record the JFR.
/opt/java/perf/jdk1.7.0_79/bin/jcmd 32627 JFR.start duration=900s
settings=/opt/profile.jfc filename=/opt/flight_17-Mar-2016.jfr
But i am getting this error :
**32627:
java.text.ParseException: JSON object must begin with '{', line=0, column=0 :
<?xml version="1.0" encodi ng="UTF-8"?>
<configuration version="1.0" name="Profiling" description="Lo**
Please suggest if anyone has any idea about this. Thanks in advance.