|
|
|
@ -84,9 +84,9 @@ public class PerformanceQueues_p {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (post.containsKey("Xmx")) {
|
|
|
|
|
int xmx = post.getInt("Xmx", 500); // default maximum heap size
|
|
|
|
|
int xmx = post.getInt("Xmx", 600); // default maximum heap size
|
|
|
|
|
if (OS.isWin32) xmx = Math.min(2000, xmx);
|
|
|
|
|
int xms = xmx; // take all.. if this is not used the os will manage that. if not reserved at the beginning the OS may reject to give away more memory
|
|
|
|
|
int xms = Math.min(xmx, Math.max(90, xmx / 10));
|
|
|
|
|
sb.setConfig("javastart_Xmx", "Xmx" + xmx + "m");
|
|
|
|
|
sb.setConfig("javastart_Xms", "Xms" + xms + "m");
|
|
|
|
|
prop.put("setStartupCommit", "1");
|
|
|
|
@ -342,9 +342,9 @@ public class PerformanceQueues_p {
|
|
|
|
|
prop.put("priority_low",(curr_prio == 20) ? "1" : "0");
|
|
|
|
|
|
|
|
|
|
// parse initialization memory settings
|
|
|
|
|
final String Xmx = sb.getConfig("javastart_Xmx", "Xmx500m").substring(3);
|
|
|
|
|
final String Xmx = sb.getConfig("javastart_Xmx", "Xmx600m").substring(3);
|
|
|
|
|
prop.put("Xmx", Xmx.substring(0, Xmx.length() - 1));
|
|
|
|
|
final String Xms = sb.getConfig("javastart_Xms", "Xms500m").substring(3);
|
|
|
|
|
final String Xms = sb.getConfig("javastart_Xms", "Xms90m").substring(3);
|
|
|
|
|
prop.put("Xms", Xms.substring(0, Xms.length() - 1));
|
|
|
|
|
|
|
|
|
|
final long diskFree = sb.getConfigLong(SwitchboardConstants.DISK_FREE, 3000L);
|
|
|
|
|