Documentation Index
Fetch the complete documentation index at: https://mintlify.com/chaos-mesh/chaos-mesh/llms.txt
Use this file to discover all available pages before exploring further.
JVMChaos allows you to inject faults into JVM applications, including method latency, exceptions, return values, garbage collection, and stress.
API Version and Kind
Metadata
Standard Kubernetes object metadata.Name of the JVMChaos resource.
Namespace of the JVMChaos resource. Defaults to
default.Spec Fields
Defines the behavior of the JVM chaos experiment.
JVMChaosSpec
Selector for targeting containers. See ContainerSelector in Common Types.Inherits all fields from
ContainerSelector (inline), including:- Pod selection criteria
- Mode (one/all/fixed/fixed-percent/random-max-percent)
- Value (for fixed modes)
- Container names
Specific JVM chaos action to perform.Enum values:
latency- Add latency to method invocationreturn- Modify method return valueexception- Throw custom exceptionstress- Apply CPU or memory stressgc- Trigger garbage collectionruleData- Inject fault with Byteman rulemysql- MySQL Java client fault injection
Duration of the chaos action.A duration string with format like
"300ms", "1.5h", or "2h45m".Valid time units: ns, us (µs), ms, s, m, hPort of the agent server.Part of
JVMCommonSpec (inline).PID of the Java process which needs to attach.Part of
JVMCommonSpec (inline).Java class name.Part of
JVMClassMethodSpec (inline). Used for actions: latency, return, exception.Method name in Java class.Part of
JVMClassMethodSpec (inline). Used for actions: latency, return, exception.Byteman rule name. Should be unique. Will be generated if not set.Part of
JVMParameter (inline).Return value for action
return.Part of JVMParameter (inline).Exception to throw for action
exception, or exception message for action mysql.Part of JVMParameter (inline).Latency duration in milliseconds for action
latency or mysql.Part of JVMParameter (inline).Byteman rule data for action
ruleData.Part of JVMParameter (inline).CPU core number to use. Only set when action is
stress.Part of JVMStressCfgSpec (inline).Memory type to locate. Only set when action is
stress.Valid values: stack, heapPart of JVMStressCfgSpec (inline).Version of mysql-connector-java. Only supports
5 (5.X.X) and 8 (8.X.X).Part of JVMMySQLSpec (inline). Used for action mysql.Match database name. Empty string means match all databases.Part of
JVMMySQLSpec (inline). Used for action mysql.Match table name. Empty string means match all tables.Part of
JVMMySQLSpec (inline). Used for action mysql.Match SQL type. Empty string means match all SQL types.Valid values:
select, insert, update, delete, replacePart of JVMMySQLSpec (inline). Used for action mysql.Name of the remote cluster where the chaos will be deployed. If not specified, chaos is applied to the local cluster.
Status Fields
Current status of the chaos experiment.
JVMChaosStatus
Current global conditions. See ChaosStatus in Common Types.
Last known experiment state including desired phase and container records.