This repository has been archived by the owner on Aug 23, 2020. It is now read-only.
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.
OOM exception when trying to revalidate a node from the last global snapshot #1482
Open
Description
Bug description
When running --revalidate
command on a node with a DB from the global snapshot, an OOM appears
IRI version
1.7.0
Hardware Spec
32GB Ram machine, -Xmx 16000m
Errors
Jun 03 12:07:26 perma-2.iota.partners IRI[15150]: 06/03 12:07:26.815 [main] INFO c.i.i.s.r.RocksDBPersistenceProvider - Initializing Database on mainnetdb
Jun 03 12:07:27 perma-2.iota.partners IRI[15150]: 06/03 12:07:27.471 [main] INFO c.i.i.s.r.RocksDBPersistenceProvider - RocksDB persistence provider initialized.
Jun 03 12:07:27 perma-2.iota.partners IRI[15150]: 06/03 12:07:27.471 [main] INFO c.i.i.s.r.RocksDBPersistenceProvider - Deleting: Milestone entries
Jun 03 12:07:27 perma-2.iota.partners IRI[15150]: 06/03 12:07:27.476 [main] INFO c.i.i.s.r.RocksDBPersistenceProvider - Amount to delete: 1243
Jun 03 12:07:27 perma-2.iota.partners IRI[15150]: 06/03 12:07:27.486 [main] INFO c.i.i.s.r.RocksDBPersistenceProvider - Deleting: StateDiff entries
Jun 03 12:07:44 perma-2.iota.partners IRI[15150]: 06/03 12:07:44.671 [main] INFO c.i.i.s.r.RocksDBPersistenceProvider - Amount to delete: 12
Jun 03 12:07:44 perma-2.iota.partners IRI[15150]: 06/03 12:07:44.672 [main] INFO c.i.i.s.r.RocksDBPersistenceProvider - Deleting: Transaction metadata
Jun 04 15:16:09 perma-2.iota.partners IRI[15150]: Exception in thread "main" Exception in thread "iothread-2" java.lang.OutOfMemoryError: Java heap space
Jun 04 15:16:09 perma-2.iota.partners IRI[15150]: at org.rocksdb.RocksIterator.key0(Native Method)
Jun 04 15:16:09 perma-2.iota.partners IRI[15150]: at org.rocksdb.RocksIterator.key(RocksIterator.java:37)
Jun 04 15:16:09 perma-2.iota.partners IRI[15150]: at com.iota.iri.storage.rocksDB.RocksDBPersistenceProvider.flushHandle(RocksDBPersistenceProvider.java:350)
Jun 04 15:16:09 perma-2.iota.partners IRI[15150]: at com.iota.iri.storage.rocksDB.RocksDBPersistenceProvider.clearMetadata(RocksDBPersistenceProvider.java:329)