0xPolygonHermez / zkevm-node

Go implementation of a node that operates the Polygon zkEVM Network
Other
531 stars 685 forks source link

RPC seems to be keeping db connections open and getting stuck #3628

Closed tclemos closed 4 months ago

tclemos commented 4 months ago

We faced some issues with some RPC nodes not being able to handle requests that required a db connection to state-db, and it looks like some of the connections are not getting closed properly; we need to investigate and understand better what's happening.

We suspect this happened to the first RPCs that started and received the most requests. We have increased the number of connections to the DB, which helped avoid the problem, but we must find the source of it.

0xyjk commented 4 months ago

https://github.com/0xPolygonHermez/zkevm-node/issues/3516 i also met this issue, not sure if it's caused by this

giskook commented 2 months ago

met the same situation, seems because the executor takes too long.