// Module included in the following assemblies:
//
// assembly-jvm-options.adoc

[id='proc-configuring-jvm-options-{context}']
= Configuring JVM options

.Prerequisites

* A Kubernetes cluster
* A running Cluster Operator

.Procedure

. Edit the `jvmOptions` property in the `Kafka`, `KafkaConnect`, `KafkaConnectS2I`, `KafkaMirrorMaker`, or `KafkaBridge` resource.
For example:
+
[source,yaml,subs=attributes+]
----
apiVersion: {KafkaApiVersion}
kind: Kafka
metadata:
  name: my-cluster
spec:
  kafka:
    # ...
    jvmOptions:
      "-Xmx": "8g"
      "-Xms": "8g"
    # ...
  zookeeper:
    # ...
----
+
. Create or update the resource.
+
This can be done using `kubectl apply`:
[source,shell,subs=+quotes]
kubectl apply -f _your-file_
