Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
full memory usage for debian and when changing the size: debian seems to dislike the big difference between xmx and xms (I have crashes here which stop if both values are same)
orbiter089a03114e39
diff --git a/debian/postinst b/debian/postinstindex 48c8ce598..26bda3f9b 100644--- a/debian/postinst+++ b/debian/postinst@@ -53,7 +53,7 @@ if [ ! -e $CONFIGFILE ]; thenecho "network.unit.definition=defaults/yacy.network.freeworld.unit" >> $CONFIGFILEecho "adminAccountForLocalhost=false" >> $CONFIGFILEecho "javastart_Xmx=Xmx600m" >> $CONFIGFILE- echo "javastart_Xms=Xmx180m" >> $CONFIGFILE+ echo "javastart_Xms=Xmx600m" >> $CONFIGFILEfi# Substitute in the values from the debconf db.diff --git a/htroot/PerformanceQueues_p.java b/htroot/PerformanceQueues_p.javaindex bf8ec2b07..eab64ae5a 100644--- a/htroot/PerformanceQueues_p.java+++ b/htroot/PerformanceQueues_p.java@@ -76,7 +76,7 @@ public class PerformanceQueues_p {if (post.containsKey("Xmx")) {int xmx = post.getInt("Xmx", 600); // default maximum heap sizeif (OS.isWin32) xmx = Math.min(2000, xmx);- int xms = Math.min(xmx, Math.max(90, xmx / 10));+ int xms = xmx; //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");@@ -333,7 +333,7 @@ public class PerformanceQueues_p {// parse initialization memory settingsfinal 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", "Xms90m").substring(3);+ final String Xms = sb.getConfig("javastart_Xms", "Xms600m").substring(3);prop.put("Xms", Xms.substring(0, Xms.length() - 1));final long diskFree = sb.getConfigLong(SwitchboardConstants.DISK_FREE, 3000L);