Author

Topic: bitcoind 17mb? How to shrink it after compiling? (Read 1281 times)

sr. member
Activity: 406
Merit: 257
September 22, 2011, 07:25:38 AM
#8
the database format itself is compatible, the transaction logs are not. remove /database/log.* while bitcoind is stopped and you can happily switch from bdb5.1 back to 4.6 and similar stunts.
legendary
Activity: 1470
Merit: 1006
Bringing Legendary Har® to you since 1952
Update:

It would appear that the unstripped version is not production safe. It damaged the database and now when i try to run normal (non-compiled) client, it crashes with following error:

Quote
************************
EXCEPTION: 22DbRunRecoveryException      
DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery      
bitcoin in AppInit()      

terminate called after throwing an instance of 'DbRunRecoveryException'
  what():  DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery

EDIT:
Actually, I can only run compiled versions now, the binary version from bitcoin.org crashes every time i try to launch it using the same database. Any ideas ?

Perhaps different version of BerkeleyDB on my debian system or whatever ?
legendary
Activity: 1470
Merit: 1006
Bringing Legendary Har® to you since 1952
I would recommend not stripping it unless you have some specific need to. The larger size is due to debug information that is never loaded or used when the program is running (it doesn't actually bloat memory or slow execution in any way). But without it, you cannot make sense of core dumps.

I have just compiled it and it is also 17 MB...

So you are saying this is completely normal, and i have absolutely nothing to worry about, including running that version on production servers ?
legendary
Activity: 1596
Merit: 1012
Democracy is vulnerable to a 51% attack.
I would recommend not stripping it unless you have some specific need to. The larger size is due to debug information that is never loaded or used when the program is running (it doesn't actually bloat memory or slow execution in any way). But without it, you cannot make sense of core dumps.
hero member
Activity: 812
Merit: 1000
thank you! duh.
mrb
legendary
Activity: 1512
Merit: 1028
what util would one use to strip it down to the size that normally gets released?

Simply "strip bitcoin"!
legendary
Activity: 2618
Merit: 1007
Maybe you compiled it with debug code?
hero member
Activity: 812
Merit: 1000
after compiling bitcoind it's come out as 17mb... it actually runs fine (finally, yay!), but I'm wondering what is the final step in the process... what util would one use to strip it down to the size that normally gets released?
Jump to: