VISUAL BASIC

INTRODUCTION TO NET

APPLICATION DEVELOPMENT

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
You want to collect and analyze performance characteristics of your Java application. Which action correctly accomplishes this?
A
Use REST API to collect JFR data for the last 1 minute.
B
ssh Into the application VM to collect JVM heap dump.
C
Collect JFR data for the last 1 hour using the UI.
D
Use the PSM CLI to collect heap dump.
Explanation: 

Detailed explanation-1: -Flight Recorder (JFR) is a tool for collecting diagnostic and profiling data about a running Java application. It is integrated into the JVM and causes very small performance overhead, so it can be used in production environments.

Detailed explanation-2: -JFR collects data from the JVM (through internal APIs) and from the Java application (through the JFR APIs). This data is stored in small thread-local buffers that are flushed to a global in-memory buffer.

Detailed explanation-3: -From the left navigation menu, select Diagnostic Snapshots, select JFR Dumps and click Dump JFR. In the Dump JFR dialog box, specify the details: Specify a Name for the JFR dump, if you want to change the default name, which is a time stamp. Optionally, click Add Description and provide a description for the JFR dump.

Detailed explanation-4: -Java Flight Recorder (JFR) is a tool for collecting, diagnosing, and profiling data about a running Java application. It is integrated into the Java Virtual Machine (JVM) and causes almost no performance overhead, so it can be used even in heavily loaded production environments.

Detailed explanation-5: -Add the following to /WSO2 IS HOME/bin/wso2server.sh file under JAVA OPTS.-XX:+UnlockCommercialFeatures-XX:+FlightRecorder  Start the server. Once the server started go to search bar and type jfr. You could see the “Java mission control” application. Click on it. 08-Jan-2020

Detailed explanation-6: -4.1. Command Line. First, we compile the program’s *. java file into a *. class using the standard java compiler javac. 4.2. Diagnostic Command Tool. We can also start registering the events by using the jcmd tool. For example: jcmd 1234 JFR.start duration=100s filename=flight.jfr. 07-Jun-2022

There is 1 question to complete.