Skip to content

Commit

Permalink
Merge pull request #34 from OakvilleDynamics/feature/visualvm-profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettsummerfi3ld committed Mar 24, 2024
2 parents 384ebad + 2e622b0 commit 305d665
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ deploy {
// getTargetTypeClass is a shortcut to get the class type using a string

frcJava(getArtifactTypeClass('FRCJavaArtifact')) {
// Enable VisualVM connection
jvmArgs.add("-Dcom.sun.management.jmxremote=true")
jvmArgs.add("-Dcom.sun.management.jmxremote.port=1198")
jvmArgs.add("-Dcom.sun.management.jmxremote.local.only=false")
jvmArgs.add("-Dcom.sun.management.jmxremote.ssl=false")
jvmArgs.add("-Dcom.sun.management.jmxremote.authenticate=false")
jvmArgs.add("-Djava.rmi.server.hostname=10.87.19.2")
}

// Static files artifact
Expand Down

0 comments on commit 305d665

Please sign in to comment.