Мне нужно удаленно профилировать команду «gradle test».
Я попробовал с помощью:
Код: Выделить всё
export JAVA_TOOL_OPTIONS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7777 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
./gradle test
Тогда я попробовал:
Код: Выделить всё
./gradle test -Dorg.gradle.jvmargs="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7777 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
Источник: https://stackoverflow.com/questions/781 ... st-session
Мобильная версия