-
Notifications
You must be signed in to change notification settings - Fork 989
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
CPU consumption and DoS on calling get_outputs rpc #3791
Comments
Thanks for reporting, just a quick video below of me running these commands against a docker image using a monitoring utility I've been putting together: OliveTin.-.Personal.-.Microsoft.Edge.2024-06-11.11-07-06.mp4As you can see, the call to Is the node in the middle of syncing when you're performing this call? Also, if you could give me as much detail about the machine the node is running on, including as much detail about processor specs, ram, disk etc. |
If you want to re-create a longer period of time waiting from the Also, even with shorter waiting time periods from Some other observations regarding the issue: this is blocking the db:
this is not blocking the db:
|
Okay, thank you for the extra information, I'll profile to see exactly what's going on with this call |
See fix in #3792, once again thanks for bringing this to our attention |
get_block
rpc to ensure it can produce the expected output in time.curl -u grin:secret --data '{"jsonrpc":"2.0","method":"get_block","params":[2824162, null, null],"id":1}' 127.0.0.1:3413/v2/foreign
get_outputs
rpc.curl -u grin:secret --data '{"jsonrpc":"2.0","method":"get_outputs","params":[["08b7e57c448db5ef25aa119dde2312c64d7ff1b890c416c6dda5ec73cbfed2edea"], null, null, true, true],"id":1}' 127.0.0.1:3413/v2/foreign
get_block
rpc again and notice long time response untilget_outputs
finishes its job.curl -u grin:secret --data '{"jsonrpc":"2.0","method":"get_block","params":[2824162, null, null],"id":1}' 127.0.0.1:3413/v2/foreign
The text was updated successfully, but these errors were encountered: