Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- option enableSimpleConfig can disable hidden tables - corrected some Xmx values - friendlier welcome message format
lotus736dd86193d2
diff --git a/defaults/yacy.init b/defaults/yacy.initindex 986b51524..aac717f50 100644--- a/defaults/yacy.init+++ b/defaults/yacy.init@@ -814,6 +814,8 @@ svnRevision=0currentSkin=default+enableSimpleConfig=true+# temporary flag for new database structure. set only true for testing# ALL DATA THAT IS CREATED WITH THIS FLAG ON WILL BE VOID IN A FINAL VERSION# table-types: RAM = 0, TREE = 1, FLEX = 2;diff --git a/htroot/PerformanceMemory_p.html b/htroot/PerformanceMemory_p.htmlindex 456997866..6be1f854a 100644--- a/htroot/PerformanceMemory_p.html+++ b/htroot/PerformanceMemory_p.html@@ -5,7 +5,7 @@#%env/templates/metas.template%#<script type="text/javascript" src="js/html.js"></script></head>- <body id="PerformanceMemory" onload="hide('memory_tables')">+ <body id="PerformanceMemory" #(enableSimpleConfig)#::onload="hide('memory_tables')"#(/enableSimpleConfig)#><script type="text/javascript"><!--function reloadGraph() {if(document.forms["optionreloadGraph"].option.checked)diff --git a/htroot/PerformanceMemory_p.java b/htroot/PerformanceMemory_p.javaindex eceac8075..b5130a544 100644--- a/htroot/PerformanceMemory_p.java+++ b/htroot/PerformanceMemory_p.java@@ -53,11 +53,14 @@ public class PerformanceMemory_p {if (defaultSettings == null) {defaultSettings = serverFileUtils.loadHashMap(new File(env.getRootPath(), "defaults/yacy.init"));}++ prop.put("enableSimpleConfig", env.getConfigBool("enableSimpleConfig", true) ? "1" : "0");+prop.put("gc", "0");if (post != null) {- int xmx = 96; // default maximum heap size+ int xmx = 120; // default maximum heap sizeif (post.containsKey("Xmx")) {- try { xmx = Integer.valueOf(post.get("Xmx", "64")).intValue(); } catch (final NumberFormatException e){}+ try { xmx = Integer.valueOf(post.get("Xmx", "120")).intValue(); } catch (final NumberFormatException e){}env.setConfig("javastart_Xmx", "Xmx" + xmx + "m");env.setConfig("javastart_Xms", "Xms" + xmx + "m");prop.put("setStartupCommit", "1");@@ -211,9 +214,9 @@ public class PerformanceMemory_p {prop.putNum("objectMissCacheTotalMem", totalmissmem / (1024 * 1024d));// parse initialization memory settings- final String Xmx = env.getConfig("javastart_Xmx", "Xmx96m").substring(3);+ final String Xmx = env.getConfig("javastart_Xmx", "Xmx120m").substring(3);prop.put("Xmx", Xmx.substring(0, Xmx.length() - 1));- final String Xms = env.getConfig("javastart_Xms", "Xms96m").substring(3);+ final String Xms = env.getConfig("javastart_Xms", "Xms120m").substring(3);prop.put("Xms", Xms.substring(0, Xms.length() - 1));// other caching structuresdiff --git a/htroot/PerformanceQueues_p.html b/htroot/PerformanceQueues_p.htmlindex f3a527e46..7a3709d0a 100644--- a/htroot/PerformanceQueues_p.html+++ b/htroot/PerformanceQueues_p.html@@ -5,7 +5,7 @@#%env/templates/metas.template%#<script type="text/javascript" src="js/html.js"></script></head>- <body id="PerformanceQueues" onload="hide('expert_settings')">+ <body id="PerformanceQueues" #(enableSimpleConfig)#::onload="hide('expert_settings')"#(/enableSimpleConfig)#>#%env/templates/header.template%##%env/templates/submenuConfig.template%#<h2>Performance Settings of Queues and Processes</h2>diff --git a/htroot/PerformanceQueues_p.java b/htroot/PerformanceQueues_p.javaindex 5e831dd1c..08bcd607e 100644--- a/htroot/PerformanceQueues_p.java+++ b/htroot/PerformanceQueues_p.java@@ -72,6 +72,8 @@ public class PerformanceQueues_p {final boolean xml = (header.get("PATH")).endsWith(".xml");prop.setLocalized(!xml);+ prop.put("enableSimpleConfig", sb.getConfigBool("enableSimpleConfig", true) ? "1" : "0");+// calculate totalslong blocktime_total = 0, sleeptime_total = 0, exectime_total = 0;while (threads.hasNext()) {diff --git a/htroot/Status.html b/htroot/Status.htmlindex c1d623339..11bab1b5d 100644--- a/htroot/Status.html+++ b/htroot/Status.html@@ -41,7 +41,7 @@<div class="welcome"><center>- <h2><img src="/env/grafics/kaskelix.png" align="bottom">Welcome to YaCy!</h2>+ <h2><img src="/env/grafics/kaskelix.png" align="middle" style="margin-right:5px;">Welcome to YaCy!</h2><iframe src="rssTerminal.html?set=PEERNEWS,REMOTESEARCH,LOCALSEARCH,REMOTEINDEXING,LOCALINDEXING,INDEXRECEIVE&width=600px&height=180px&maxlines=20&maxwidth=120"width="600" height="180" scrolling="no" name="newsframe"marginheight="0" marginwidth="0" frameborder="1"></iframe><br />diff --git a/yacy.logging b/yacy.loggingindex b043c361d..bcd8f88f7 100644--- a/yacy.logging+++ b/yacy.logging@@ -15,7 +15,7 @@ PARSER.level = INFOPROXY.level = INFOYACY.level = INFOHTCACHE.level = INFO-PLASMA.level = INFO+PLASMA.level = FINESERVER.level = INFOWORDMIGRATION.level = FINEFILEHANDLER.level = INFO