Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

log file when OOM appears

Michael Peter Christen7e8a1ef0e204
diff --git a/source/net/yacy/kelondro/blob/HeapReader.java b/source/net/yacy/kelondro/blob/HeapReader.java
index d610e9787..c2cb5d73a 100644
--- a/source/net/yacy/kelondro/blob/HeapReader.java
+++ b/source/net/yacy/kelondro/blob/HeapReader.java
@@ -811,7 +811,7 @@ public class HeapReader {
// the allocation of memory for the payload may fail
// this is bad because we must interrupt the iteration here but the
// process that uses the iteration may think that the iteraton has just been completed
- log.severe("out of memory in LookAheadIterator.next0", ee);
+ log.severe("out of memory in LookAheadIterator.next0 for file " + this.blobFile.toString(), ee);
try {this.is.close();} catch (final IOException e) {}
return null;
}