Document more JVM arguments
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 3 Feb 2020 10:22:27 +0000 (11:22 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 3 Feb 2020 10:22:27 +0000 (11:22 +0100)
dist/argeo-node/base/etc/argeo/settings.sh

index 8141f049540dae9998529776a8b83de53dae7ff3..4bc45f678ac3c685ae9b92c4bb329822eaf8d1ee 100644 (file)
@@ -1,3 +1,12 @@
 export LANG=en_US.utf8
 JAVA_OPTS="-showversion -Xmx128m"
+
+# JMX
 #JAVA_OPTS="-showversion -Xmx512m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7084 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
+
+# Development
+#JAVA_OPTS="-ae -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n -showversion -Xmx512m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7084 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
+
+# JMX over server tunnel
+#JAVA_OPTS="-showversion -Xmx2048m -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.rmi.port=7084 -Dcom.sun.management.jmxremote.port=7084 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
+# and then: ssh root@remote-host -L 7084:127.0.0.1:7084 -N
\ No newline at end of file