Open sha-265 opened 1 month ago
I tried the steps you provided above with CLN v23.11.2, RTL v0.15.2-beta & Ubuntu 22.04. But my CPU usage for clnrest
reached maximum upto 0.1% & memory upto 0.2%. But I did not have much data in my node to test for.
Could you please confirm how much CPU usage clnrest takes when you login to RTL? Does your node have huge number of invoices/forwards/payments etc?
And this is the usage from CLN v24.08.1 node which has decent data volume:
Can you also confirm your Core lightning's log-level
. clnrest uses the log-level set by Core lightning as described in the config. clnrest could be taking time in logging if the level is set to log everything.
Could you please confirm how much CPU usage clnrest takes when you login to RTL? Does your node have huge number of invoices/forwards/payments etc?
This node is running for few years. I don't know what huge means, but there is ~10K failed forwards and pays.
Can you also confirm your Core lightning's
log-level
. clnrest uses the log-level set by Core lightning as described in the config. clnrest could be taking time in logging if the level is set to log everything.
The log level is the default one. It's not set in the config.
The default log level is set to info, which minimizes the amount of logging from clnrest.
Additionally, I created a new node with 6K invoices, 6K payments, 8K forwards & 10K local_failed forwards to test CPU usage. During testing, the CPU usage peaked at only 3% when loading the RTL dashboard. All other pages showed even lower CPU usage.
Running autoclean-once on failed forwards and payments might improve the node’s performance slightly.
What is your system configuration?
You mean hardware wise? It's a dual core x64 PC, with 8GB memory.
The only think that I think could be related is the remote backup I have, which also use high CPU when logging in to RTL.
Describe the bug When using
RTL
withCLNRest
, theCLNRest
's python process is using a lot of CPU, after login toRTL
.This high CPU usage didn't happen with
c-lightning-REST
.To Reproduce Steps to reproduce the behavior:
Your environment
RTL
: v0.15.2-betacore lightning
: 23.11.2bitcoind
: 26.2uname -a
on *Nix): Ubuntu 20.04