Kihagyás

JVM debug és JMX

1. Kódszintű Debug (Breakpoint az IDE-ben): - JVM: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 - Parancs: kubectl port-forward deployment/my-java-app 5005:5005 2. JMX Profilozás (VisualVM / Memóriaszivárgás vizsgálat): - JVM: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=3000 -Dcom.sun.management.jmxremote.rmi.port=3000 -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false - Parancs: kubectl port-forward deployment/my-java-app 3000:3000