Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
same values for Xmx and Xms: memory extension may be difficult if the OS has not the remaining memory available and may kill the jvm. If the memory is reserved at the start but never used the OS may handle that as well and leave non-used space in swap area (and never swap)
orbiter77a9af99f1d0
diff --git a/defaults/yacy.init b/defaults/yacy.initindex d168359f9..ac21351ca 100644--- a/defaults/yacy.init+++ b/defaults/yacy.init@@ -615,7 +615,7 @@ cleanup.failedSearchURLtimeout = 86400000# if a high performance for large search indexes is wanted, then setting the values to equal number is recommended# if YaCy shall be nice in not-only-yacy environments, then the Xms value may be lowerjavastart_Xmx=Xmx600m-javastart_Xms=Xms180m+javastart_Xms=Xms600m# YaCy is able to use RAM copies of database tables. This needs a lot of RAM# To switch copying of file tables int RAM on, use this propertydiff --git a/htroot/PerformanceQueues_p.java b/htroot/PerformanceQueues_p.javaindex f33c37f7b..c045698f4 100644--- a/htroot/PerformanceQueues_p.java+++ b/htroot/PerformanceQueues_p.java@@ -86,7 +86,7 @@ public class PerformanceQueues_p {if (post.containsKey("Xmx")) {int xmx = post.getInt("Xmx", 500); // default maximum heap sizeif (OS.isWin32) xmx = Math.min(2000, xmx);- int xms = xmx / 4;+ 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 memorysb.setConfig("javastart_Xmx", "Xmx" + xmx + "m");sb.setConfig("javastart_Xms", "Xms" + xms + "m");prop.put("setStartupCommit", "1");