-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paying an invoices puts my server at highload and makes it crash #2605
Comments
Payments, invoices, and payments aren't queried when making a payment. Maybe your node is having issues making a multi-path payment that Zeus attempts by default? Or there's an issue with the REST interface. You should take a look at the logs. It shouldn't corrupt your DB. Your node is always writing those logs even if you're not looking at them. Differences to be cognizant of btwn BitBanana and Zeus: |
last time I did a payment, it completly locked up my machine. --> hard reset with bbolt. Not funny, can kill your db and with a node of about 6btc capacity... I dont wanna risk this again. Okay got another one that has similar issues: he is going to get some logs later. Well I do believe, that paying invoices do not require invoices, payments and forwards, but could it be, that zeus calls all payments after an invoice is done to have a fresh list of it? Here are my forwards,payments,invoices: Forwards 207,281 My machine has currently 16GB of RAM allocated. If I do a payment, it fills up completly and CPU load --> 99% This is the Data of a user that has no Problems but has about 48Gigs of RAM: Payments: 1.571.483 He didnt check his system graphs yet when paying an invoice but he will do later Will add some charts later if similar high system loads when paying invoices |
https://github.com/ZeusLN/zeus/blob/master/backends/LND.ts#L327 might it be an issue it calls payments without pagination? Micheal from Boltz said it can bring down the biggest node if you call this at once |
Ah, I believe it's how we fetch the payment path. We can fix our query there. Thanks for bringing this to our attention. |
The behavior from Zeus seems to reflect running
|
https://github.com/ZeusLN/zeus/blob/master/views/SendingLightning.tsx#L86-L112 componentDidUpdate -> on successful sending -> fetchPayments() -> PaymentsStore.getPayments() -> BackendUtils.getPayments() -> this.getRequest('/v1/payments?include_incomplete=true') am I wrong here? |
Yes, in this case, it seems Zeus does not limit the scope of payments call: |
|
|
Fix available for testing in ZEUS v0.9.4-beta1 https://github.com/ZeusLN/zeus/releases/tag/v0.9.4-beta1 |
MASSIVE improvement in my tests! Zeus is slick and fast again TY for the fix!! ⚡️ |
thanks guys, closing this as done! |
or not, just saw Evan reopened? |
All good now. v0.9.4 now out in general release |
Describe the bug
I am running a quite big node optimized on routing.
Got Zeus connected with it.
Everytime I pay an invoice with it, the server goes to almost 100% load, consuming all available RAM and then crashes
A friend told me that it could be a command used by your app which lists all payments listpayments, invoices and forwards without pagination maybe causing this, and because I ve millions due to rebelancing, the server collapse when asking for this. I dont know if this is the proper explanation, but you might look into it
I guess it has no big impact on smaller nodes with just a few channels and less routing.
Cannot use Zeus with my node at all
running lnd 0.18.3 here
greetings
Reproduce
pay an invoice with zeus of any kind
crashes the server
ZEUS version
v0.9.2
Node interface
LND (REST)
Network
Clearnet via domain of my btcppay server 443/8080
Device
android 15 pixel 9Pro XL
Device operating system
GrapheneOS latest
Log output
I dont risk to do this again to get logs from my server as I dont wanna corrupt my db or put this thing on any kind of danger. It happend twice, first I thought it was some kind of general crash on my server, the next time it happend again, i just did a payment checked the Server load and realized that it comes when paying invoices via Zeus
Additional Info:
this does not happen with bitbanana paying invoices
The text was updated successfully, but these errors were encountered: