mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
bugfix: do not switch off standard memory strategy when performing a
forced GC PLEASE CHECK if your peer has standard memory switched on!
This commit is contained in:
parent
dd14b19c26
commit
ea0dceb55d
|
@ -61,12 +61,13 @@ public class PerformanceMemory_p {
|
|||
if (post.containsKey("gc")) {
|
||||
System.gc();
|
||||
prop.put("gc", "1");
|
||||
}
|
||||
} else {
|
||||
MemoryControl.setSimulatedShortStatus(post.containsKey("simulatedshortmemory"));
|
||||
final boolean std = post.containsKey("useStandardmemoryStrategy");
|
||||
env.setConfig("memory.standardStrategy", std);
|
||||
MemoryControl.setStandardStrategy(std);
|
||||
}
|
||||
}
|
||||
|
||||
prop.put("simulatedshortmemory.checked", MemoryControl.getSimulatedShortStatus() ? 1 : 0);
|
||||
prop.put("useStandardmemoryStrategy.checked", env.getConfigBool("memory.standardStrategy", true) ? 1 : 0);
|
||||
|
|
Loading…
Reference in New Issue
Block a user