added load info to status_p.xml

pull/1/head
orbiter 11 years ago
parent 056b42f5aa
commit 86b514cf46

@ -26,6 +26,7 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import net.yacy.cora.protocol.RequestHeader; import net.yacy.cora.protocol.RequestHeader;
import net.yacy.cora.util.Memory;
import net.yacy.crawler.CrawlSwitchboard; import net.yacy.crawler.CrawlSwitchboard;
import net.yacy.crawler.data.CrawlProfile; import net.yacy.crawler.data.CrawlProfile;
import net.yacy.kelondro.index.RowHandleSet; import net.yacy.kelondro.index.RowHandleSet;
@ -64,6 +65,7 @@ public class status_p {
prop.putNum("totalMemory", MemoryControl.total()); prop.putNum("totalMemory", MemoryControl.total());
prop.putNum("maxMemory", MemoryControl.maxMemory()); prop.putNum("maxMemory", MemoryControl.maxMemory());
prop.putNum("processors", WorkflowProcessor.availableCPU); prop.putNum("processors", WorkflowProcessor.availableCPU);
prop.putNum("load", Memory.load());
// proxy traffic // proxy traffic
prop.put("trafficIn", ByteCount.getGlobalCount()); prop.put("trafficIn", ByteCount.getGlobalCount());

@ -12,6 +12,7 @@
</memory> </memory>
<processors>#[processors]#</processors> <processors>#[processors]#</processors>
<load>#[load]#</load>
<traffic> <traffic>
<in>#[trafficIn]#</in> <in>#[trafficIn]#</in>

Loading…
Cancel
Save