'Springboot chaos-monkey assaults [killApplicationActive and memoryActive] not working

I am using Springboot 2.3.1.RELEASE and chaos monkey its working fine for latencyActive and exceptionsActive.

 <dependency>
        <groupId>de.codecentric</groupId>
        <artifactId>chaos-monkey-spring-boot</artifactId>
        <version>2.2.0</version>
    </dependency>

Following two assaults not working

Kill application

     chaos.monkey.assaults.killApplicationActive=true
     chaos.monkey.assaults.level=3

Memory

    chaos.monkey.assaults.memoryActive=true
    chaos.monkey.assaults.memoryMillisecondsHoldFilledMemory=90000
    chaos.monkey.assaults.memoryMillisecondsWaitNextIncrease=1000
    chaos.monkey.assaults.memoryFillIncrementFraction=90.15
    chaos.monkey.assaults.memoryFillTargetFraction=90.25


Solution 1:[1]

App kill and memory kill attacks need the attribute runtimeAssaultCronExpression set to a valid cron expression like " * * * * * * ". By default it is set to "OFF"

See documentation: https://codecentric.github.io/chaos-monkey-spring-boot/2.2.0/#_appkiller_assault

Solution 2:[2]

Use property value for "chaos.monkey.assaults.runtime.scope.assault.cron.expression" as cron expression like */1 * * * * ? or any valid cron expression, to enable chaos monkey runtime assaults on a schedule.

Use property value as OFF otherwise(also default value)

links: https://codecentric.github.io/chaos-monkey-spring-boot/2.1.0/#configuration https://www.programmersought.com/article/11861551911/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sourabh Parime
Solution 2