-
Notifications
You must be signed in to change notification settings - Fork 1.7k
100% CPU utilization and RPC service doesn’t response #6983
Comments
Chain configuration:
} |
Node configuration: [parity] |
It seems there is some thing wrong with the blocks data, we tried to remove some blocks(start a new node but don’t sync the latest blocks), this node works again.so my question is: |
could you expand on this? what exactly is not working? you don't need to copy the database for upgrading a patch version.
It seems you were able to remove some blocks by cutting down the sync at some point. In what way did it solve your problem? Other than (1) there is no other way to do this. Are you using the User Interface by the way? Can you share more complete logs of your RPC traces? |
1 Upgrade details: I installed the 1.7.8 from it’s binary package, when I start the node with the same configuration file, it created a different dB path not using the existed one, that was why I copied the dB file(the two folder in networks/paritynode/chains/PoA/db/7348aba6abe735d1). 2 I remove about 1m blank blocks(stop sync at given height) , this issue went away. 3 Another way seems ok:(Without removing any blocks) I created a new tx that sent ethers to an address, it tooks about 2 minutes to finish, after that every thing seems ok, the gas_estimate RPC could response immediately, the CPU usage is fine. 4 I don’t use the UI component, how could I get the full RPC trace |
Run the node with |
I started only one node, |
Is there any way to configure the block generation strategy? |
I don't see anything unusual in the logs. Estimate gas immediately returned the result. |
@5chdn "eth_estimateGas" costs more than 60 seconds |
Would be nice to have a feature to pause the block generation when no TX exist, there are some plan to implement this feature? |
How much gas do your transactions require? I.e. What's the min gas limit per transaction? I don't know exactly when you started your chain. But you say that it worked on Oct 11th, and then you noticed it stopped working on Nov 4th. It may be nothing, but according to how you have set up your chain, I think it's worth pointing out that your block gas limit starts at five billion, and then slowly decreases until it hits five thousand. That can take days. Depending on how your transactions work, you could start a new chain from scratch that has a block size of five thousand set right in the genesis block. And then you can test and see if you are getting the behavior you see on your currently defunct chain. That would confirm that you have a problem with your chain-wide block gas limit. |
Parity version: Parity/v1.8.3-beta-b49c44a-20171114/x86_64-linux-gnu/rustc1.21.0 At first I thought it was the UI - removed that on startup. Still doing it. Updated/Edit: v1.7.9 My startup "(local server ip)" is a LAN address/my server+host of parity:
Everything 'working' as advertised. Just the CPU issue is raining on my parade - so, may have to remove parity if no resolution. Can't continue this way. Final edit?: |
@bmatthewshea of course, it has to synchronize the chain. |
@5chdn Well, geth didn't/doesn't peg it like that on same server. Yes, it ran somewhat high during first sync (especially first couple minutes), but not -continuously- over 100% the entire time. And as I said, BETA continued 100%+ load (continuously) long after sync. I finally had to kill it. Just letting thread know. Do what you will with it.. |
Before filing a new issue, please provide the following information.
Your issue description goes here below. Try to include actual vs. expected behavior and steps to reproduce the issue.
Backgroud
we use parity in our production environment (Linux /1.7beta/via binary installer) with POA consensus engine configured, this Blockchain works well for almost two months and generated about 2.3 m blocks, and we have not created any new txs since 11 Oct(just generate blank blocks).
Issue
We found the RPC WS stopped working yesterday, the CPU utilization rate runs to 100% after some RPC call(e g. eth_estimateGas, the RPC call is blocked there).
Upgrade to 1.7.8
We tried to upgrade it to the stable version 1.7.8(we installed the new version and copied existed dB file to the new do path ) , it still doesn’t work ,could you help me , thanks.
As it is our Production environment, we have to stop the service until we find a solution.
The text was updated successfully, but these errors were encountered: