Bitcoin Forum
September 11, 2025, 11:30:52 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaS  (Read 222 times)
stathmarxis (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
June 20, 2025, 02:12:08 PM
 #1

i am using this repor locally https://github.com/janoside/btc-rpc-explorer
and after many rpc requests I got the following heap problem


btc-rpc-explorer   | <--- JS stacktrace --->
btc-rpc-explorer   |
btc-rpc-explorer   | FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
btc-rpc-explorer   | ----- Native stack trace -----


this is my setup:

      BTCEXP_HOST=192.168.1.222
      BTCEXP_PORT=3002
      BTCEXP_ADDRESS_API=electrum
      BTCEXP_ELECTRUM_SERVERS=tcp://192.168.1.223:50001
      BTCEXP_ELECTRUM_TXINDEX=false
      BTCEXP_BITCOIND_URI: $BTCEXP_BITCOIND_URI
      BTCEXP_BITCOIND_USER: $BTCEXP_BITCOIND_USER
      BTCEXP_BITCOIND_PASS: $BTCEXP_BITCOIND_PASS
      BTCEXP_BITCOIND_RPC_TIMEOUT: $BTCEXP_BITCOIND_RPC_TIMEOUT
      BTCEXP_SECURE_SITE=false
      BTCEXP_COIN=BTC
      BTCEXP_RPC_CONCURRENCY: 16
      BTCEXP_SLOW_DEVICE_MODE=false
      BTCEXP_NO_RATES=true
      BTCEXP_RPC_ALLOWALL=true
      BTCEXP_UI_TIMEZONE=local
      BTCEXP_UI_THEME=dark
      BTCEXP_OLD_SPACE_MAX_SIZE=8192
      BTCEXP_NO_INMEMORY_RPC_CACHE: true
ABCbits
Legendary
*
Offline Offline

Activity: 3360
Merit: 9125



View Profile
June 21, 2025, 10:35:51 AM
 #2

I noticed you've also opened issue about it on their GitHub under different username[1]. So while you're waiting for reply from the developer over there, do you have RAM usage log on your system? If yes, is the RAM about to be fully used when the error happened?

[1] https://github.com/janoside/btc-rpc-explorer/issues/744

NotATether
Legendary
*
Offline Offline

Activity: 2086
Merit: 8911


Search? Try talksearch.io


View Profile WWW
July 20, 2025, 03:15:17 PM
 #3

It looks like the JVM ran out of memory from its heap, so you might have to pass  (e.g.) -Xms8g (to throw 8GB of ram at the application) and -Xmx8g.

One is for the default heap size to allocate immediately, the other is the hard maximum to let Java use.

Of course, I could be wrong, but perhaps if you post the full stack trace, we can see the problem more clearly.

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
ABCbits
Legendary
*
Offline Offline

Activity: 3360
Merit: 9125



View Profile
July 21, 2025, 09:23:20 AM
 #4

i am using this repor locally https://github.com/janoside/btc-rpc-explorer
and after many rpc requests I got the following heap problem

I forget to mention it earlier, but you may want to consider getting getting data you need directly from Bitcoin Core or Electrum server that you already run as workaround.

It looks like the JVM ran out of memory from its heap, so you might have to pass  (e.g.) -Xms8g (to throw 8GB of ram at the application) and -Xmx8g.

One is for the default heap size to allocate immediately, the other is the hard maximum to let Java use.

Of course, I could be wrong, but perhaps if you post the full stack trace, we can see the problem more clearly.

I think you mistook JavaScript for Java. 2 of them are different programming language.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!