This video provides a detailed demonstration of using the OpenResty XRay Web Console for real-time monitoring and management. With an intuitive UI, you can easily view performance metrics and trend analysis of various applications, quickly pinpoint online issues, and identify root causes through reports. This significantly enhances your operational efficiency, allowing you to better control and optimize application performance.

Introduction to Insight Page

This is the Insights page of the OpenResty XRay’s Web Console. You can see analysis reports of the system generated for all your apps across all of the servers.

Screenshot

You can find the reports for daily and weekly periods. By default, it displays today’s daily report. It can also show weekly reports.

Screenshot

Click to fold the details of these applications.

Screenshot

As shown, OpenResty XRay can analyze a wide variety of applications.

Screenshot

Unfold the “OpenResty” application.

Screenshot

Tap on category titles to unfold the list of issues.

Screenshot

Screenshot

Issues were categorized by type, making it easy to find the ones you’re interested in. The number following represents the number of issues found of that type.

Screenshot

Let’s check out the CPU issues in this Openresty application. It lists 12 issues below, all related to “CPU”.

Screenshot

Comprehensive Report Details

To view detailed information for a specific issue in the issue list,

Screenshot

just click on “More”.

Screenshot

Current issue is automatically inferred from this C-land Flame graph.

Screenshot

Enlarge it.

Screenshot

The flame graph can help you locate the root cause of the issue.

Screenshot

Below are more detailed explanations and suggestions about the issue.

Screenshot

Click this button to view more analysis results.

Screenshot

Here is the complete information of the report, such as which analyzer was used and application information.

Screenshot

You’ll also find the flame graph and other charts here.

Screenshot

And the complete terminal output.

Screenshot

Screenshot

OpenResty XRay can help you quickly discover and solve problems of your applications.

Screenshot

Dashboard Overview

Visit the “Dashboard” page for more detailed monitoring data.

Screenshot

Here are system metrics that display your system’s performance data.

Screenshot

You can easily switch in the upper corner to view other types of metrics.

Screenshot

Here are different kinds of charts related to CPU usage in real time.

Screenshot

Click to view this chart on the full screen.

Screenshot

Now, it shows data from the past 1 hour.

Screenshot

These are detailed metrics for system CPU utilization.

Screenshot

Below is basic information sorted by application type. This one is about the Go application.

Screenshot

There are other analytic diagrams and charts for various kinds of applications on the Dashboard page.

Screenshot

Go to the memory metrics page.

Screenshot

These system metrics are all about memory usage.

Screenshot

Use Guided Analysis Feature to Analyze Online

With the “Guided Analysis” feature, users can easily analyze performance problems online. Click on the “Guided Analysis” page.

Screenshot

Here, you can see different types of problems that you can diagnose.

Screenshot

Let’s select “High CPU Usage”.

Screenshot

Click on “Next”.

Screenshot

Select the OpenResty application.

Screenshot

Select the worker process.

Screenshot

Make sure that the application type is right. Usually, the default should be correct.

Screenshot

OpenResty XRay can analyze multiple language levels at the same time. We’ll keep both Lua and C/C++ selected.

Screenshot

We can also set the maximum analyzing time. We’ll leave it as 300 seconds, which is the default value.

Screenshot

Start analyzing.

Screenshot

The system will keep performing different rounds of analysis. Now, it’s executing the first round.

Screenshot

The first round is done, and it’s already on the second one. That’s enough for this case.

Screenshot

Let’s stop analyzing.

Screenshot

It automatically generated an analysis report.

Screenshot

Click here to enter the historical report list page.

Screenshot

Here are the historical guided analysis reports.

Screenshot

This is the report we just generated.

Screenshot

Click to enter the report details page.

Screenshot

Screenshot

Setting and Configuration

Go back to the console page. Click here to enter the “Settings” page.

Screenshot

Select the settings feature.

Screenshot

Here, you can see the information on the selected agent and make some configurations for it.

Screenshot

Screenshot

What is OpenResty XRay

OpenResty XRay is a dynamic-tracing product that automatically analyzes your running applications to troubleshoot performance problems, behavioral issues, and security vulnerabilities with actionable suggestions. Under the hood, OpenResty XRay is powered by our Y language targeting various runtimes like Stap+, eBPF+, GDB, and ODB, depending on the contexts.

If you like this tutorial, please subscribe to this blog site and/or our YouTube channel. Thank you!

About The Author

Yichun Zhang (Github handle: agentzh), is the original creator of the OpenResty® open-source project and the CEO of OpenResty Inc..

Yichun is one of the earliest advocates and leaders of “open-source technology”. He worked at many internationally renowned tech companies, such as Cloudflare, Yahoo!. He is a pioneer of “edge computing”, “dynamic tracing” and “machine coding”, with over 22 years of programming and 16 years of open source experience. Yichun is well-known in the open-source space as the project leader of OpenResty®, adopted by more than 40 million global website domains.

OpenResty Inc., the enterprise software start-up founded by Yichun in 2017, has customers from some of the biggest companies in the world. Its flagship product, OpenResty XRay, is a non-invasive profiling and troubleshooting tool that significantly enhances and utilizes dynamic tracing technology. And its OpenResty Edge product is a powerful distributed traffic management and private CDN software product.

As an avid open-source contributor, Yichun has contributed more than a million lines of code to numerous open-source projects, including Linux kernel, Nginx, LuaJIT, GDB, SystemTap, LLVM, Perl, etc. He has also authored more than 60 open-source software libraries.