From 21d48641d6344e9f00523ca15d49d44fcdb277b3 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Tue, 16 Jan 2024 08:33:59 +0100 Subject: [AAI] Add options for remote debugging and profiling - add debug.enabled value for enabling debugging [1] - add profiling.enabled value for enabling probiling [2] - only expose debug port (5005) if debug.enabled=true [1] appropriate jvm args will be added and the debug port will be exposed on the pod [2] appropriate jvm args will be added and the 9999 port used for profiling via jmx will be exposed Issue-ID: AAI-3730 Change-Id: I1d83a6ac1875ba63e710e86d4fcbfc8924810292 Signed-off-by: Fiete Ostkamp --- kubernetes/aai/components/aai-traversal/values.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'kubernetes/aai/components/aai-traversal/values.yaml') diff --git a/kubernetes/aai/components/aai-traversal/values.yaml b/kubernetes/aai/components/aai-traversal/values.yaml index 08b956d8e1..a1c383e522 100644 --- a/kubernetes/aai/components/aai-traversal/values.yaml +++ b/kubernetes/aai/components/aai-traversal/values.yaml @@ -183,6 +183,23 @@ config: MAX_HEAP_SIZE: "1024m" MAX_METASPACE_SIZE: "512m" + # adds jvm args for remote debugging the application + debug: + enabled: false + args: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" + + # adds jvm args for remote profiling the application + profiling: + enabled: false + args: + - "-Dcom.sun.management.jmxremote" + - "-Dcom.sun.management.jmxremote.ssl=false" + - "-Dcom.sun.management.jmxremote.authenticate=false" + - "-Dcom.sun.management.jmxremote.local.only=false" + - "-Dcom.sun.management.jmxremote.port=9999" + - "-Dcom.sun.management.jmxremote.rmi.port=9999" + - "-Djava.rmi.server.hostname=127.0.0.1" + # Disables the updateQueryData script to run as part of traversal disableUpdateQuery: true -- cgit 1.2.3-korg