5
3
Sometimes it takes bitcoind more than a minute to respond to basic RPC calls such as getbalance (and on average, it takes at least 5 seconds), even though the "STAT" according to the Linux 'ps' program remains "SLl" (Sleeping!). I've confirmed I was looking at the RPC server process and not the client process. How is this even reasonable?
It shouldn't be possible to run large-scale sites like Mt. Gox with those kind of response times. What special considerations need to be taken into account to get performance out of bitcoind?
It takes slightly over 0.0s when I run it. Is your bitcoind trying to sync with the blockchain while you run the RPC commands? chris@chris:~$ time bitcoind getbalance 5.72535335
real 0m0.020s user 0m0.000s sys 0m0.016s chris@chris:~$ – Chris Moore – 2012-06-24T17:42:44.693
Are you using an encrypted filesystem? Are you using the most recent release? – Stephen Gornick – 2012-06-24T20:18:44.937
@Chris Moore
bitcoind getblockcountmatches the block count returned by Block Explorer, so it's fully synced. – user1513 – 2012-06-24T20:28:09.163@StephenGornick I have v0.6.2-beta. However, the problem has persisted through multiple upgrades. I had the problem back when the current version was 0.3.4. Also, it's not an encrypted filesystem, but it is on an OpenVZ VPS. – user1513 – 2012-06-24T20:29:49.883
If you are unable to resolve this you could try http://blockchain.info/json_rpc_api as an alternative.
– Ben Reeves – 2012-06-27T12:44:14.640