other performance settings can be found on advanced settings git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5375 6c8d7289-2bf4-0310-a012-ef5d649a1542pull/1/head
parent
1a51d9fcfd
commit
5280ad638d
@ -0,0 +1,109 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>YaCy '#[clientname]#': Performance Settings</title>
|
||||||
|
#%env/templates/metas.template%#
|
||||||
|
<script type="text/javascript" src="js/html.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="PerformanceQueues">
|
||||||
|
<script type="text/javascript"><!--
|
||||||
|
function reloadGraph() {
|
||||||
|
if(document.forms["optionreloadGraph"].option.checked)
|
||||||
|
document.images["graph"].src="PerformanceGraph.png?time="+(new Date()).getTime();
|
||||||
|
window.status="";
|
||||||
|
}
|
||||||
|
window.setInterval("reloadGraph()", 1000);
|
||||||
|
//--></script>
|
||||||
|
#%env/templates/header.template%#
|
||||||
|
#%env/templates/submenuConfig.template%#
|
||||||
|
<h2>Performance Settings</h2>
|
||||||
|
|
||||||
|
<p><img src="PerformanceGraph.png" name="graph" alt="PerformanceGraph"/></p>
|
||||||
|
<p><form name="optionreloadGraph" action="" method="get"><input type="checkbox" name="option" id="autoreload"/> <label for="autoreload">refresh graph</label></form></p>
|
||||||
|
|
||||||
|
|
||||||
|
<form action="Performance_p.html" method="post" enctype="multipart/form-data">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Memory Settings</legend>
|
||||||
|
<dl>
|
||||||
|
<dt><label for="Xmx">Memory reserved for JVM</label></dt>
|
||||||
|
<dd><input name="Xmx" id="Xmx" type="text" size="4" maxlength="4" value="#[Xmx]#" /> MByte
|
||||||
|
<input type="submit" name="setStartup" value="Set" />
|
||||||
|
#(setStartupCommit)#::<div class="commit">Accepted change. This will take effect after <strong>restart</strong> of YaCy</div>::<div class="error"></div>#(/setStartupCommit)#
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<form action="Performance_p.html" method="post" enctype="multipart/form-data">
|
||||||
|
<fieldset><legend>Use Default Profile:</legend>
|
||||||
|
<p>
|
||||||
|
<select name="defaultFile">
|
||||||
|
#{profile}#
|
||||||
|
<option value="#[filename]#"#(used)#:: selected="selected"#(/used)#>#[description]#</option>
|
||||||
|
#{/profile}#
|
||||||
|
</select>
|
||||||
|
and use
|
||||||
|
<select name="profileSpeed">
|
||||||
|
#{speed}#
|
||||||
|
<option value="#[value]#"#(used)#:: selected="selected"#(/used)#>#[label]#</option>
|
||||||
|
#{/speed}#
|
||||||
|
</select>
|
||||||
|
of the defined performance.
|
||||||
|
</p>
|
||||||
|
<p><input type="submit" name="submitdefault" value="Save" /> Changes take effect immediately</p>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<form action="Performance_p.html" method="post" enctype="multipart/form-data">
|
||||||
|
<fieldset><legend>YaCy Priority Settings</legend>
|
||||||
|
<dl>
|
||||||
|
<dt><label for="priority">YaCy Process Priority</label>:</dt>
|
||||||
|
<dd><select id="priority" name="YaCyPriority">
|
||||||
|
<option value="0"#(priority_normal)#:: selected="selected"#(/priority_normal)#>Normal</option>
|
||||||
|
<option value="10"#(priority_below)#:: selected="selected"#(/priority_below)#>Below normal</option>
|
||||||
|
<option value="20"#(priority_low)#:: selected="selected"#(/priority_low)#>Idle</option>
|
||||||
|
</select></dd>
|
||||||
|
<dt><input type="submit" name="PrioritySubmit" value="Set new Priority" /></dt>
|
||||||
|
<dd>Changes take effect after <strong>restart</strong> of YaCy</dd>
|
||||||
|
</dl>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<form action="Performance_p.html" method="post" enctype="multipart/form-data">
|
||||||
|
<fieldset><legend>Online Caution Settings:</legend>
|
||||||
|
<p>
|
||||||
|
This is the time that the crawler idles when the proxy is accessed, or a local or remote search is done.
|
||||||
|
The delay is extended by this time each time the proxy is accessed afterwards.
|
||||||
|
This shall improve performance of the affected process (proxy or search).
|
||||||
|
(current delta is #[crawlPauseProxyCurrent]#/#[crawlPauseLocalsearchCurrent]#/#[crawlPauseRemotesearchCurrent]#
|
||||||
|
seconds since last proxy/local-search/remote-search access.)
|
||||||
|
</p>
|
||||||
|
<table border="0" cellpadding="2" cellspacing="1">
|
||||||
|
<tr class="TableHeader" valign="bottom">
|
||||||
|
<td>Online Caution Case</td>
|
||||||
|
<td>indexer delay (milliseconds) after case occurency</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="TableCellDark">
|
||||||
|
<td>Proxy:</td>
|
||||||
|
<td align="right"><input id="crawlPauseProxy" name="crawlPauseProxy" type="text" size="20" maxlength="100" value="#[crawlPauseProxy]#" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="TableCellDark">
|
||||||
|
<td>Local Search:</td>
|
||||||
|
<td align="right"><input id="crawlPauseLocalsearch" name="crawlPauseLocalsearch" type="text" size="20" maxlength="100" value="#[crawlPauseLocalsearch]#" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="TableCellDark">
|
||||||
|
<td>Remote Search:</td>
|
||||||
|
<td align="right"><input id="crawlPauseRemotesearch" name="crawlPauseRemotesearch" type="text" size="20" maxlength="100" value="#[crawlPauseRemotesearch]#" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="TableCellLight">
|
||||||
|
<td align="left" colspan="2"><input type="submit" name="onlineCautionSubmit" value="Enter New Parameters" />
|
||||||
|
Changes take effect immediately</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
#%env/templates/footer.template%#
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,37 @@
|
|||||||
|
//Performace_p.java
|
||||||
|
//-----------------------
|
||||||
|
//part of YaCy
|
||||||
|
//(C) by Michael Peter Christen; mc@yacy.net
|
||||||
|
//first published on http://www.anomic.de
|
||||||
|
//Frankfurt, Germany, 2004, 2005
|
||||||
|
//last major change: 16.02.2005
|
||||||
|
//
|
||||||
|
//This program is free software; you can redistribute it and/or modify
|
||||||
|
//it under the terms of the GNU General Public License as published by
|
||||||
|
//the Free Software Foundation; either version 2 of the License, or
|
||||||
|
//(at your option) any later version.
|
||||||
|
//
|
||||||
|
//This program is distributed in the hope that it will be useful,
|
||||||
|
//but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
//GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
//You should have received a copy of the GNU General Public License
|
||||||
|
//along with this program; if not, write to the Free Software
|
||||||
|
//Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
//You must compile this file with
|
||||||
|
//javac -classpath .:../classes Network.java
|
||||||
|
//if the shell's current path is HTROOT
|
||||||
|
|
||||||
|
import de.anomic.http.httpRequestHeader;
|
||||||
|
import de.anomic.server.serverObjects;
|
||||||
|
import de.anomic.server.serverSwitch;
|
||||||
|
|
||||||
|
public class Performance_p {
|
||||||
|
|
||||||
|
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> sb) {
|
||||||
|
return PerformanceQueues_p.respond(header, post, sb);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue