All Products
Search
Document Center

Microservices Engine:Application instance isolation and diagnostics

Last Updated:Jan 09, 2024

The application instance isolation and diagnostics feature can help you effectively troubleshoot online issues such as memory leaks to improve the stability of the microservices system. If an instance of a service provider is abnormal, Microservices Engine (MSE) Microservices Governance isolates traffic of the abnormal instance and works with Alibaba Cloud Application Real-Time Monitoring Service (ARMS) to generate memory snapshots that record the online environment information about the abnormal instance. This facilitates subsequent analysis and diagnostics of issues.

Prerequisites

When you use the application instance isolation and diagnostics feature, take note of the following items:

  • This feature is applicable only to Java applications that use Dubbo 2.6.x, Dubbo 2.7.x, or Spring Cloud Edgware and later.

  • If spring.cloud.xxxx.discovery.fail-fast is set to false for a Spring Cloud application, the system cannot determine whether the application is online or offline.

  • To create a memory snapshot for an abnormal instance, you need to connect the instance to Application Real-Time Monitoring Service (ARMS). For more information, see Integration Center.

Procedure

  1. Log on to the MSE console, and select a region in the top navigation bar.

  2. In the left-side navigation pane, choose Microservices Governance > Application Governance.

  3. On the Application list page, click the resource card of the destination application.

  4. In the left-side navigation pane, click Node details. On the page that appears, find the abnormal instance that you want to manage and click Service offline in the Actions column. In the Microservice offline message, click OK. The abnormal instance is removed from Microservices Registry.

    After the abnormal instance is removed from Microservices Registry, if no new requests are sent to the instance, you can use the memory snapshot feature provided by ARMS to create a memory snapshot for the abnormal instance for subsequent troubleshooting.

    1. Find the abnormal instance that you want to manage and click To create a memory snapshot in the Actions column. In the Hint message, click OK.节点详情.png

    2. On the Application Details page in the ARMS console, click Create Memory Snapshot in the upper-right corner of the JVM monitoring tab. In the Create Memory Snapshot dialog box, click Save. A memory snapshot is created for the abnormal instance.armse.png

References

For more information about how to create and view memory snapshots, see Memory snapshots.