mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(crawl) Make crawler limiter request a GC when throttling
This commit is contained in:
parent
63e857f7cd
commit
c22feaf42e
@ -51,6 +51,9 @@ public class CrawlLimiter {
|
||||
else if (!oldThrottle && freeMemory < THROTTLE_TRIGGER_FREE_RAM) {
|
||||
newThrottle = true;
|
||||
logger.warn("Memory based throttling triggered");
|
||||
|
||||
// Try to GC
|
||||
System.gc();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user