Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
some customize on Memory-Performance-Graph
sixcooler3ef9f301ba77
diff --git a/source/net/yacy/kelondro/util/MemoryTracker.java b/source/net/yacy/kelondro/util/MemoryTracker.javaindex 7d6e87b33..3da30b35d 100644--- a/source/net/yacy/kelondro/util/MemoryTracker.java+++ b/source/net/yacy/kelondro/util/MemoryTracker.java@@ -33,7 +33,7 @@ public class MemoryTracker extends Thread {private static MemoryTracker systemProfiler = null;public static void startSystemProfiling() {- systemProfiler = new MemoryTracker(1500);+ systemProfiler = new MemoryTracker(3000);systemProfiler.start();}@@ -52,7 +52,7 @@ public class MemoryTracker extends Thread {public void run() {try {while (running) {- EventTracker.update(EventTracker.EClass.MEMORY, Long.valueOf(MemoryControl.used()), true);+ EventTracker.update(EventTracker.EClass.MEMORY, Long.valueOf(MemoryControl.available()), true);try {Thread.sleep(this.delaytime);} catch (final InterruptedException e) {diff --git a/source/net/yacy/peers/graphics/ProfilingGraph.java b/source/net/yacy/peers/graphics/ProfilingGraph.javaindex da0bc9c8a..1ebe95ab0 100644--- a/source/net/yacy/peers/graphics/ProfilingGraph.java+++ b/source/net/yacy/peers/graphics/ProfilingGraph.java@@ -121,8 +121,8 @@ public class ProfilingGraph {bytes = ((Long) event.payload).longValue();x1 = (int) (time/1000);y1 = (int) (bytes / 1024 / 1024);- chart.setColor("AAAAFF");- chart.chartDot(ChartPlotter.DIMENSION_BOTTOM, ChartPlotter.DIMENSION_RIGHT, x1, y1, 2, null, 0);+ // chart.setColor("AAAAFF");+ // chart.chartDot(ChartPlotter.DIMENSION_BOTTOM, ChartPlotter.DIMENSION_RIGHT, x1, y1, 2, null, 0);chart.setColor("0000FF");if (x0 < 0) chart.chartLine(ChartPlotter.DIMENSION_BOTTOM, ChartPlotter.DIMENSION_RIGHT, x0, y0, x1, y1);x0 = x1; y0 = y1;