Skip to content

Instantly share code, notes, and snippets.

@dgroup
Forked from aragozin/setup.txt
Last active December 24, 2018 20:06
Show Gist options
  • Save dgroup/bb5229c0b0d180782e800bb08ca5f2ef to your computer and use it in GitHub Desktop.
Save dgroup/bb5229c0b0d180782e800bb08ca5f2ef to your computer and use it in GitHub Desktop.
JMC Workshop Notes

Install the JMC on OSX 10.14.2, Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

  1. Download the swt cocoa jar from here.
  2. Go to JDKs jmc path (You can find this path by right-clicking on jmc icon in the dock -> Options -> Show in Finder, Then right click on App -> Show Package Contents). For example:
    cd /Library/Java/JavaVirtualMachines/jdk<version>.jdk/Contents/Home/lib/missioncontrol
    # Back up exisiting jar using 
    sudo mv plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.103.1.v20140903-1947.jar ../
    # Copy downloaded zip's swt.jar using 
    sudo cp ~/Downloads/swt.jar plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.103.1.v20140903-1947.jar
  3. Restart jmc

More https://stackoverflow.com/questions/48400346/java-mission-control-from-jdk-1-8-0-161-frozen-upon-startup-on-mac-os-x

Setup the project

git clone https://github.com/aragozin/optaplanner-bench.git
git checkout jmc_workbench_0
mvn package
mvn -P ui exec:java

# Disable some JVM optimizations
MAVEN_OPTS=-Xmx512m -XX:+NeverActAsServerClassMachine -XX:CICompilerCount=1 -XX:-TieredCompilation -XX:-DoEscapeAnalysis

mvn -P mrbench exec:java
mvn -P mrprofile exec:java

git checkout jmc_workbench_1
git clone https://github.com/aragozin/proflab
git checkout hz_demo_step_1
mvn -P bench test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment