Try for instance of ManagementFactory.
Removed the PerformanceTest
Deleted PerformanceTest.java
Trying PerformanceTest again
Added a forgotten function.
optimize imports