Bitcoin Forum
May 06, 2024, 07:05:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind rpc api takes too long to respond to sendtoaddress  (Read 1205 times)
noobcoder (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
June 02, 2015, 01:18:07 PM
 #1

I'm developing web application, that communicates with bitcoind through JSON rpc api. Sometimes sendtoaddress call takes 30+ seconds to perform which is too long, as to me. Bitcoind version 100100 is installed on 8Gb RAM VPS. Any recommendations how to debug this? I need to find out why some requests are so slow. Any help will be appreciated.
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715022330
Hero Member
*
Offline Offline

Posts: 1715022330

View Profile Personal Message (Offline)

Ignore
1715022330
Reply with quote  #2

1715022330
Report to moderator
1715022330
Hero Member
*
Offline Offline

Posts: 1715022330

View Profile Personal Message (Offline)

Ignore
1715022330
Reply with quote  #2

1715022330
Report to moderator
1715022330
Hero Member
*
Offline Offline

Posts: 1715022330

View Profile Personal Message (Offline)

Ignore
1715022330
Reply with quote  #2

1715022330
Report to moderator
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
June 02, 2015, 02:50:32 PM
 #2

You asked http://bitcoin.stackexchange.com/questions/37482/sendtoaddress-rpc-api-call-takes-too-long-to-execute? Looks like a good project! Smiley

I'm developing web application, that communicates with bitcoind through JSON rpc api. Sometimes sendtoaddress call takes 30+ seconds to perform which is too long, as to me. Bitcoind version 100100 is installed on 8Gb RAM VPS. Any recommendations how to debug this? I need to find out why some requests are so slow. Any help will be appreciated.

Is your wallet fully synced? If not, then it will not send Bitcoin until client is fully synced. CMIIW.

noobcoder (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
June 02, 2015, 04:30:52 PM
 #3

You asked http[Suspicious link removed]cute? Looks like a good project! Smiley

Is your wallet fully synced? If not, then it will not send Bitcoin until client is fully synced. CMIIW.

Yep, this question was asked by me. Wallet is fully synced
goregrind
Full Member
***
Offline Offline

Activity: 149
Merit: 100


View Profile
June 03, 2015, 12:03:50 PM
 #4

Can you identify a pattern for the slow times ?
I'm thinking the slow times might relate to new found blocks which need to be processed and validated.
However 30s seems a bit too long.

woot?
2112
Legendary
*
Offline Offline

Activity: 2128
Merit: 1065



View Profile
June 03, 2015, 06:02:47 PM
 #5

I'm developing web application, that communicates with bitcoind through JSON rpc api. Sometimes sendtoaddress call takes 30+ seconds to perform which is too long, as to me. Bitcoind version 100100 is installed on 8Gb RAM VPS. Any recommendations how to debug this? I need to find out why some requests are so slow. Any help will be appreciated.
30+ seconds is nothing. With sufficiently complex wallet it could take minutes to return from RPC call. With backups running in the background I've observed over 15 minutes to service complex sendmany requests.

The problem is unfixable with the current architecture.

If you really trying to develop something reliable you will have to monitor the wallet access directly through BerkeleyDB API and/or utilities. Start bitcoind with -privdb=0, create an appropriate DB_CONFIG and then you can monitor the wallet lock activity of the live bitcoind instance.

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!