tencent cloud

Feedback

JVM Process CPU at Full Load

Last updated: 2024-09-26 15:47:37

    Experiment Execution

    Step 1: Experiment Preparation

    Prepare a CVM instance object for the experiment. The instance contains a Java process into which a fault can be injected.

    Step 2: Experiment Orchestration

    1. Log in to the Tencent Smart Advisor > Chaotic Fault Generator, go to the Experiment Management page, and click Create a New Experiment.
    2. Click Skip and create a blank experiment.
    3. Fill in the experiment information. The region can be switched to another region. After completing the basic information, click Next.
    4. Input action information. Select Compute - CVM for Object Type, click Add Instance, and select the experiment objective CVM instance.
    5. Add an experiment action. Click Add Now, select JVM Fault, click JVM process CPU at full load, and click Next.
    6. Configure fault action parameters. Assign the JVM process name to be injected, and click Confirm.
    7. After completing the parameter configuration, click Next.
    8. Click Add monitoring metrics, select CPU Usage monitoring metrics, and click Submit. Then, an experiment is created.

    Step 3: Execute the Experiment

    1. Go to the Action Group, click Execute in the Fault Card, and inject a fault.
    2. After a successful fault injection, target JVM process PID can be obtained from fault logs.
    3. You can input a top command at the CVM terminal. You will find that Java process CPU utilization in target Pid is high, and overall CPU utilization is very high.
    4. Go to the instance monitoring panel corresponding to the CVM Console to check CPU utilization. It can be seen that CPU utilization in the current instance is high.
    5. Click Execute in the Recovery Action Card for recovery from a fault.
    6. After a successful recovery, check CPU utilization in CVM once again.
    7. Check CPU utilization at the instance monitoring panel in the CVM Console. It can be seen that CPU utilization has dropped to a level before the injection.
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support