Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#366 closed task (fixed)

strange restarts of i2p

Reported by: $RANDOM Owned by:
Priority: minor Milestone:
Component: apps/i2psnark Version: 0.8.2
Keywords: i2psnark Cc:
Parent Tickets: Sensitive: no


I2P version: 0.8.2-0
Java version: Sun Microsystems Inc. 1.6.0_20 (OpenJDK Runtime Environment 1.6.0_20-b20)
Platform: Linux amd64 2.6.35-22-generic
Processor: uninitialized (athlon64)
Jbigi: Locally optimized native BigInteger? library loaded from the library path
Encoding: UTF-8

My i2p clients randomly restarts. I cant tell why, but in the logs i can read this
[Criticial Errormessage] [k DirMonitor?]
Killing thread Snark DirMonitor? java.lang.OutOfMemoryError?: Java heap space

at java.util.Arrays.copyOf(
at org.klomp.snark.bencode.BEncoder.bencode(
at org.klomp.snark.bencode.BEncoder.bencode(
at org.klomp.snark.MetaInfo?.calculateInfoHash(MetaInfo?.java:452)
at org.klomp.snark.MetaInfo?.<init>(MetaInfo?.java:213)
at org.klomp.snark.MetaInfo?.<init>(MetaInfo?.java:100)
at org.klomp.snark.MetaInfo?.<init>(MetaInfo?.java:90)
at org.klomp.snark.SnarkManager?.addTorrent(SnarkManager?.java:533)
at org.klomp.snark.SnarkManager?.monitorTorrents(SnarkManager?.java:884)
at org.klomp.snark.SnarkManager?.access$500(SnarkManager?.java:31)
at org.klomp.snark.SnarkManager?$DirMonitor?.run(SnarkManager?.java:835)

I guess the error has something to do with the absolute amount of torrents I have in i2psnark.

Dunno for sure, but it sucks.

I dont know what information are needed in addition, so please feel free to request what you need.
Please also tell me what information can be removed for remain anonymus.



Change History (2)

comment:1 Changed 10 years ago by Eche|on

Priority: majorminor
Resolution: fixed
Status: newclosed
Type: defecttask

Do raise your HeapMemory? in wrapper.config file to 256MB or more.


comment:2 Changed 10 years ago by zzz

Yes, you are out of memory. Increase it in wrapper.config. I can try and catch the error in i2psnark and give a nicer error message, but that's about it. I'll do that in 0.8.4.

Note: See TracTickets for help on using tickets.