cool! i was looking at outdated api documentation. will try dumpwallet command
Post
Topic
BoardBitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 16:32:46 UTC
as far as i know exporting privatekey can only be done one by one through API.
Post
Topic
BoardBitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 16:23:41 UTC
yes i already built a load balancer for few bitcoind wallets, and of course they will be separated into fewer addresses.
and this wallet will not grow, i will leave it as it is because i don't have idea how to split the wallet.dat easily
Post
Topic
BoardBitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 16:05:13 UTC
hahaha yes it is very silly, it turns out I was using 32bit box
no wonder bitcoind crashes when reach 4gb and ignore the rest of the memory
i already moved it to 64bit and everything seems to work fine.
thanks for the help
anyway, for anyone have similar issue but with limited RAM, using -dbcache=16 really do the trick. it works even for 100k+ addresses but every command become very slow.
Post
Topic
BoardBitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 06:02:14 UTC
i'm installing fresh bitcoind on new server now.
Post
Topic
BoardBitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 05:35:54 UTC
or did you mean to backup whole .bitcoin directory?
Post
Topic
BoardBitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 05:34:47 UTC
is it possible to create a new wallet without resync?
tried to move the wallet.dat, starting bitcoind gave me
Code:
Corrupted block database detected.
Do you want to rebuild the block database now?
Post
Topic
BoardBitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 05:14:35 UTC
i was trying to avoid resync the whole blockchain if possible (it already takes 1 day to reach 34xxxx).
but I will do it anyway. and see what happen. will update later.
thanks for your help.
Post
Topic
BoardBitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 04:20:54 UTC
what i'm really confused is the server doesn't seem to run out of memory. only 3gb being used.
Post
Topic
BoardBitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
The wallet doesn't scale well at all and despite the large amount of RAM you might be hitting a limit that is causing the bad alloc (although a bad alloc could also be caused through passing an invalid value for allocation).
To work out whether the problem is your wallet's size back it up and then delete it and re-start Bitcoin (it will create a new empty wallet). If no crashes happen with the empty wallet then I would assume your problem is the huge wallet.
i know it is not a good idea, but i need to get this wallet up. any ideas?
Post
Topic
BoardBitcoin Technical Support
Topic OP
EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 02:16:41 UTC
my wallet blockchain was crashed and I unable to start it back with -reindex
it already synced to block num 340870, and it will be crashed every 5-10 blocks:
Quote
************************ EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
what do you mean by active addresses and why it becomes slow?
active address i mean if the address is not empty.
bitcoind is pain in the ass in large scale
Post
Topic
BoardBitcoin Technical Support
Re: Is it a bad idea to have a wallet with 10s of thousands of addresses?
by
buffett
on 21/09/2014, 01:02:59 UTC
transfering out btc become very very slow (5-20 seconds per tx) when you have >20k active addresses.
Post
Topic
BoardBitcoin Technical Support
Topic OP
getbalance minconf 0 doesnt work for bitcoind 0.9.2.1
by
buffett
on 20/09/2014, 10:21:48 UTC
This is brand new bitcoind installed in ubuntu 14.04, bitcoind getbalance '*' 0 always return same value with bitcoind getbalance '*' or bitcoind getbalance '*' 1 or bitcoind getinfo although it has unconfirmed transactions.
The block is marked orphaned and all transactions in this block have 0 confirmation even this block was generated yesterday.
Post
Topic
BoardBitcoin Technical Support
Re: How to make Bitcoind to run with more than 1 CPU
by
buffett
on 18/07/2014, 18:22:56 UTC
I have an exchange pretty much like btc-e. each member has their own btc address to make deposit.
Post
Topic
BoardBitcoin Technical Support
Re: How to make Bitcoind to run with more than 1 CPU
by
buffett
on 18/07/2014, 01:17:18 UTC
Do you have any solution for handling large wallet with bitcoind? The only solution I can think is by separating addresses into few bitcoind server. let say 10k addresses per server. But this solution is not elegant and requires a lot of work.
Thank you.
Post
Topic
BoardBitcoin Technical Support
Topic OP
How to make Bitcoind to run with more than 1 CPU
by
buffett
on 17/07/2014, 19:45:32 UTC
I have 8 core server, this server is dedicated for hosting bitcoind. So I want to utilize all CPUs for bitcoind to make it faster and more responsive. We host ~20000 addresses and bitcoind is getting slower and slower everyday. For now it takes 2-5 seconds for each transaction. From log I got 2 transactions executed for more than 60s.