minima-global / Minima

The Minima protocol Java libraries and application
Apache License 2.0
129 stars 146 forks source link

Docker installation - java.lang.OutOfMemoryError in logs #603

Closed pelenthium closed 12 months ago

pelenthium commented 1 year ago

In logs after fresh install and run docker container

looks like:

Minima @ 25/03/2023 04:10:12 [471.8 MB] : Message took a long time (3888ms) to process @ 0x000011BACD151AB7128EB7B39E061187F1E45B96CC53F2E5829FB533F0F2C3CB
Exception in thread "Thread-1" java.lang.OutOfMemoryError: Java heap space
    at java.base/java.util.Arrays.copyOf(Unknown Source)
    at org.minima.utils.FastByteArrayStream.writeData(FastByteArrayStream.java:49)
    at org.minima.system.network.minima.NIOClient.handleRead(NIOClient.java:372)
    at org.minima.system.network.minima.NIOServer.run(NIOServer.java:240)
    at java.base/java.lang.Thread.run(Unknown Source)
Minima @ 25/03/2023 04:10:15 [466.8 MB] : Message took a long time (3696ms) to process @ 0x000003F888C09AC12F0A77B37B0D13A8C5DCF4F2543A8D95E11810E551F90CB6

and second:

Minima @ 25/03/2023 04:10:15 [475.7 MB] : Message took a long time (3093ms) to process @ 0x0000AB6382CA25C4FF07CAD09862201CF8DB96D1AAD5CF51807F22DA1906B5A8
Minima @ 25/03/2023 04:10:41 [468.2 MB] : Connected attempt success to 185.185.83.20:9001
Exception in thread "pool-1-thread-7" java.lang.OutOfMemoryError: Java heap space
    at org.minima.objects.base.MiniNumber.readDataStream(MiniNumber.java:309)
    at org.minima.objects.base.MiniNumber.ReadFromStream(MiniNumber.java:319)
    at org.minima.objects.Coin.readDataStream(Coin.java:329)
    at org.minima.objects.Coin.ReadFromStream(Coin.java:346)
    at org.minima.objects.TxBlock.readDataStream(TxBlock.java:250)
    at org.minima.objects.TxBlock.ReadFromStream(TxBlock.java:256)
    at org.minima.objects.IBD.readDataStream(IBD.java:455)
    at org.minima.objects.IBD.ReadFromStream(IBD.java:461)
    at org.minima.system.network.minima.NIOMessage.run(NIOMessage.java:281)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)
Minima @ 25/03/2023 04:14:15 [96.5 MB] : NEW TxPoW time too far in future.. setting maximum
Minima @ 25/03/2023 04:14:16 [136.5 MB] : NEW TxPoW time too far in future.. setting maximum
Minima @ 25/03/2023 04:14:18 [215.6 MB] : Re-Calculate device hash rate : 0.005615 MHs