String (@NotNull Project project) { @NonNls String output = ""; long mb = 1024L * 1024L; Runtime runtime = Runtime.getRuntime(); output += "Number of CPU: " + runtime.availableProcessors() + '\n'; output += "Used memory: " + (runtime.totalMemory() - runtime.freeMemory()) / mb + "Mb \n"; output += "Free memory: " + runtime.freeMemory() / mb + "Mb \n"; output += "Total memory: " + runtime.totalMemory() / mb + "Mb \n"; output += "Maximum available memory: " + runtime.maxMemory() / mb + "Mb \n"; return output; }