onion-monero-blockchain-explorer icon indicating copy to clipboard operation
onion-monero-blockchain-explorer copied to clipboard

potential memory leak

Open Gingeropolous opened this issue 3 years ago • 10 comments

xmrchain runs on a box with 64 gb ram. using top, it shows that the mainnet explorer (the one that gets the most traffic) ends up with 74% memory utilization over time. I occasionally restart it because that amount seems absurd with how clean everything looks and feels with the explorer. After restart, its back at < 5% or so.

Any thoughts on how I could help hunt this down? Perhaps right around a HF is not the time for this, but just wanted to let you know in case I haven't already.

Gingeropolous avatar May 19 '22 03:05 Gingeropolous

Did it start happening with new changes in the explorer introduced for the upcoming HF?

moneroexamples avatar May 19 '22 21:05 moneroexamples

no, its been going on ever since I've been running xmrchain honestly. I just haven't really been concerned because restarting it "fixes" it, and it seems to run fine, so I didn't think it was critical.

so its been running since i made that first post above. and once again its at 75% memory.

Gingeropolous avatar May 20 '22 03:05 Gingeropolous

Can you try running it bear bones, without any extra options like --enable-emission-monitor, --enable-autorefresh-option, --enable-pusher, etc?

moneroexamples avatar May 20 '22 09:05 moneroexamples

well if i kill the api then some stupid services that don't understand decentralization will stop working, so i'll do everything except that.

Gingeropolous avatar May 20 '22 13:05 Gingeropolous

Ok. I will try to run the explorer and simulate the high traffic, and see how it goes.

moneroexamples avatar May 20 '22 23:05 moneroexamples

well i ran it with only the API, and its currently at 57% ram

Gingeropolous avatar May 21 '22 04:05 Gingeropolous

Still lots. Could you share the settings/options that you use for the explorer?

moneroexamples avatar May 21 '22 08:05 moneroexamples

this is what i normally run:

./xmrblocks -p 8888
--enable-pusher 1
--enable-key-image-checker 1
--enable-output-key-checker 1
--enable-autorefresh-option 1
--enable-json-api 1
--deamon-url http:://127.0.0.1:12345
--testnet-url https://testnet.xmrchain.net/
--stagenet-url https://stagenet.xmrchain.net/
--mainnet-url https://xmrchain.net/
--enable-mixin-details 1
--enable-emission-monitor 1
--enable-randomx

Can I revert my settings to the ones above, or do you still need me to run it minimal?

Gingeropolous avatar May 21 '22 12:05 Gingeropolous

You can run it normally. I will try to investigate what's happening with and without those settings.

moneroexamples avatar May 21 '22 23:05 moneroexamples

Another possible memory-leak related issue: https://github.com/moneroexamples/onion-monero-blockchain-explorer/issues/308

DaWe35 avatar Feb 28 '24 04:02 DaWe35