-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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
Go-ethereum rpc server have a request limit, how to expand the limit? #17069
Comments
Make sure you're reusing HTTP connections and not creating a new one for every request. If you make a new TCP connection for each request, and you concurrently do tons of requests, the OS will run out of sockets/file descriptors and will deny connecting. It would help diagnose if you reported the error too. The empty JSON response probably also entails a socket level error that web3 is hiding. |
@karalabe How to reuse HTTP connections ? I'm using the web3.js. I'm a noob and can't find this part in web3.js doc. |
Not really sure tbh, I'd suggest asking in their repo https://github.com/ethereum/web3.js/ |
@VinceXie you can use the batch transactions web3 method, although it's more efficient to send individual transactions. Under normal (even unusual) use, you won't send txns to the network at the rate a loop would, so I would avoid that pattern. |
@karalabe using the go-ethereum library I also run out of ports on my local (~30k ports avail) when making calls out to geth via goroutines for the purposes of pulling all txn data into postgres. does every call like EDIT: so it looks like the initial |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@jmooo Have you resolved this issue? |
I have done a test for ethereum about ethereum rpc handle ability. I found in the case when post many requests in short time . Ethereum cant accept this request because rpc server not work.
After a while , rpc server was back to good status . But repeat many post , rpc server change to not work again.
Please help me.
System information
Geth version: All version
OS & Version: Windows/Linux/OSX
Commit hash : (if
develop
)Expected behaviour
sendTransaction is good.
Actual behaviour
Steps to reproduce the behaviour
Here my test code , good in start , but fail when transaction to 6000.
Backtrace
The text was updated successfully, but these errors were encountered: