Bitcoin Forum
August 09, 2025, 09:23:07 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 »
1  Bitcoin / Bitcoin Technical Support / Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages() on: January 18, 2016, 03:34:39 AM
dumpwallet "filename"

Dumps all wallet keys in a human-readable format.


cool! i was looking at outdated api documentation. will try dumpwallet command
2  Bitcoin / Bitcoin Technical Support / Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages() on: January 17, 2016, 04:32:46 PM
as far as i know exporting privatekey can only be done one by one through API.
3  Bitcoin / Bitcoin Technical Support / Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages() on: January 17, 2016, 04:23:41 PM
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
4  Bitcoin / Bitcoin Technical Support / Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages() on: January 17, 2016, 04:05:13 PM
hahaha yes it is very silly, it turns out I was using 32bit box  Grin Grin Grin Grin Grin

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  Grin

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.
5  Bitcoin / Bitcoin Technical Support / Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages() on: January 17, 2016, 06:02:14 AM
i'm installing fresh bitcoind on new server now.

6  Bitcoin / Bitcoin Technical Support / Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages() on: January 17, 2016, 05:35:54 AM
or did you mean to backup whole .bitcoin directory?
7  Bitcoin / Bitcoin Technical Support / Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages() on: January 17, 2016, 05:34:47 AM
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?
8  Bitcoin / Bitcoin Technical Support / Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages() on: January 17, 2016, 05:14:35 AM
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.
9  Bitcoin / Bitcoin Technical Support / Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages() on: January 17, 2016, 04:20:54 AM
what i'm really confused is the server doesn't seem to run out of memory. only 3gb being used.
10  Bitcoin / Bitcoin Technical Support / Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages() on: January 17, 2016, 02:31:14 AM
the wallet has 100k of addresses

^ That is not a good idea.

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?
11  Bitcoin / Bitcoin Technical Support / EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages() on: January 17, 2016, 02:16:41 AM
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()       

2016-01-17 02:12:03 ProcessMessages(block, 749055 bytes) FAILED peer=6

config:

Quote
server=1
daemon=1
rpcport=12345
rpcuser=xxx
rpcpassword=xxxx

maxconnections=8
paytxfee=0.0001

minrelaytxfee=0.0001
limitfreerelay=5

the server has 16gb of RAM and 10gb of swap.

the wallet has 100k of addresses

any help would be very appreciated.

thanks
12  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][DRK] Darkcoin | First Anonymous Coin | Inventor of X11, DGW, Darksend and InstantX on: March 16, 2015, 03:20:38 AM
darkcoin stops generating new block since 40 minutes ago, what is going on?

http://explorer.darkcoin.io/chain/Darkcoin
https://chainz.cryptoid.info/drk/
https://bchain.info/DRK/
13  Bitcoin / Bitcoin Discussion / Re: Best practice for fast transaction acceptance - how high is the risk? on: December 06, 2014, 05:30:06 PM
I'm sorry for posting in a zombie thread. Anyone looking for a solution for accepting 0 confirmation payments may check blockcypher api: http://dev.blockcypher.com/reference.html#zero_confirmations

It's not mine but I think it's worth mention here since I was also struggling looking for a simple solution for this matter.
14  Bitcoin / Bitcoin Technical Support / Re: Is it a bad idea to have a wallet with 10s of thousands of addresses? on: September 25, 2014, 03:05:32 PM
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
15  Bitcoin / Bitcoin Technical Support / Re: Is it a bad idea to have a wallet with 10s of thousands of addresses? on: September 21, 2014, 01:02:59 AM
transfering out btc become very very slow (5-20 seconds per tx) when you have >20k active addresses.
16  Bitcoin / Bitcoin Technical Support / getbalance minconf 0 doesnt work for bitcoind 0.9.2.1 on: September 20, 2014, 10:21:48 AM
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.

Anyone have a clue?
17  Bitcoin / Development & Technical Discussion / What happened with Block #318677? on: September 03, 2014, 04:43:30 AM

Check this: https://blockchain.info/block-index/460155

The block is marked orphaned and all transactions in this block have 0 confirmation even this block was generated yesterday.
18  Bitcoin / Bitcoin Technical Support / Re: How to make Bitcoind to run with more than 1 CPU on: July 18, 2014, 06:22:56 PM
I have an exchange pretty much like btc-e. each member has their own btc address to make deposit.
19  Bitcoin / Bitcoin Technical Support / Re: How to make Bitcoind to run with more than 1 CPU on: July 18, 2014, 01:17:18 AM
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.
20  Bitcoin / Bitcoin Technical Support / How to make Bitcoind to run with more than 1 CPU on: July 17, 2014, 07:45:32 PM
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.

Thank you.
Pages: [1] 2 3 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!