void (@NotNull AnActionEvent e) { try { //A simple set of options for now: running memtester with 1/3 of physical memory // redirecting the output to memtester_$ideapid.log in user home folder OperatingSystemMXBean bean = (OperatingSystemMXBean)ManagementFactory.getOperatingSystemMXBean(); long totalPhysMemorySize = bean.getTotalPhysicalMemorySize(); long totalPhysMemorySizeToTestInMb = totalPhysMemorySize / 3 / (1024 * 1024); String testingSizeArgument = totalPhysMemorySizeToTestInMb + "M"; String pathToSaveLog = SystemProperties.getUserHome() + "/memtester_" + OSProcessUtil.getApplicationPid() + ".log"; MemTester.scheduleMemTester(testingSizeArgument, "1", pathToSaveLog); } catch (IOException ex) { Logger.getInstance(MemTestAction.class).info("MemTester failed to launch"); } }