I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 71d2049f authored by zzz's avatar zzz
Browse files

OOM log tweak

parent e5aee300
No related branches found
No related tags found
No related merge requests found
package net.i2p.router.tasks; package net.i2p.router.tasks;
import java.io.File;
import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicBoolean;
import net.i2p.router.Router; import net.i2p.router.Router;
...@@ -48,7 +49,8 @@ public class OOMListener implements I2PThread.OOMEventListener { ...@@ -48,7 +49,8 @@ public class OOMListener implements I2PThread.OOMEventListener {
log.log(Log.CRIT, "free mem: " + Runtime.getRuntime().freeMemory() + log.log(Log.CRIT, "free mem: " + Runtime.getRuntime().freeMemory() +
" total mem: " + Runtime.getRuntime().totalMemory()); " total mem: " + Runtime.getRuntime().totalMemory());
if (_context.hasWrapper()) if (_context.hasWrapper())
log.log(Log.CRIT, "To prevent future shutdowns, increase wrapper.java.maxmemory in $I2P/wrapper.config"); log.log(Log.CRIT, "To prevent future shutdowns, increase wrapper.java.maxmemory in " +
_context.getBaseDir() + File.separatorChar + "wrapper.config");
} catch (OutOfMemoryError oome) {} } catch (OutOfMemoryError oome) {}
try { try {
ThreadDump.dump(_context, 1); ThreadDump.dump(_context, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment