I’m trying to do something that (I think) should be pretty basic, but it’s consistently causing my web3 api servers to hang after a few hours. It’s happening on bsc, polygon, avax & fantom.
The servers are brand new, not customised at all except to increase user rate limits. I don’t have anything installed on them. All I’m doing is this:
Moralis.start Moralis.Web3API.native.getBlock
Between 0.5-2x per second. After a while this starts happening:
- requests start taking a long time (60+ seconds)
- cpu at 100%
- start getting 5xx errors
- dashboard no longer works
- server stops responding & doesn’t come back (despite no more requests being sent)
I don’t think throwing more cpu at the problem is the answer because clearly something is breaking with the server (it doesn’t come back after I stop sending requests).
Can someone shed some light on this?
Server urls:
https://infck3kckkjd.usemoralis.com:2053/server
https://lfemz6zt3brq.usemoralis.com:2053/server
https://jnzaoozqho6t.usemoralis.com:2053/server
https://ltrz7hqcxudm.usemoralis.com:2053/server