Bitcoin Forum
May 09, 2024, 12:04:09 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: 0.8.1 Bitcoind Server performance?  (Read 1331 times)
SlickTheNick (OP)
Full Member
***
Offline Offline

Activity: 220
Merit: 100


View Profile
March 27, 2013, 04:47:30 AM
 #1

Currently running Bitcoind server on a VPS, running the latest version of Ubuntu (64-bt). It doesnt have very much ram, only 1.5 gigs, but its been holding up pretty decent. It receives anywhere from 3000-5000 + RPC requests a day. Can be a bit slugish at times, and every now and then it just crashes due to not enough memory. I have it set up to auto-restart on crashes, so not a big deal.

Anyways, Iv noticed that since upgrading from 0.7 to 0.8.1, its been a bit slower and crashing way more often. Instead of running out of RAM and dieing maybe a couple times a day, its happening regularly, like once every 30-60 minutes or so.

Anyone have any tips on how to improve performance, besides just upgrading the memory?

Looking for a way to get some bitcoins for free? Check out http://earnfreebitcoins.com !
Get easy bitcoins at  https://coincontroller.com?r=eaef398b5 !
1715256249
Hero Member
*
Offline Offline

Posts: 1715256249

View Profile Personal Message (Offline)

Ignore
1715256249
Reply with quote  #2

1715256249
Report to moderator
The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715256249
Hero Member
*
Offline Offline

Posts: 1715256249

View Profile Personal Message (Offline)

Ignore
1715256249
Reply with quote  #2

1715256249
Report to moderator
Diapolo
Hero Member
*****
Offline Offline

Activity: 769
Merit: 500



View Profile WWW
March 27, 2013, 06:22:48 AM
 #2

Perhaps a subtle memory-leak sneaked into 0.8.1... some developer who is capable to do it should check with Valgrind or some other tools, if that is the case.
Is there any way to debug on your machine, what part of the code is eating your RAM?

Dia

Liked my former work for Bitcoin Core? Drop me a donation via:
1PwnvixzVAKnAqp8LCV8iuv7ohzX2pbn5x
bitcoin:1PwnvixzVAKnAqp8LCV8iuv7ohzX2pbn5x?label=Diapolo
SlickTheNick (OP)
Full Member
***
Offline Offline

Activity: 220
Merit: 100


View Profile
March 27, 2013, 02:29:33 PM
 #3

Perhaps a subtle memory-leak sneaked into 0.8.1... some developer who is capable to do it should check with Valgrind or some other tools, if that is the case.
Is there any way to debug on your machine, what part of the code is eating your RAM?

Dia

Il investigate further and update this post with my findings.

Looking for a way to get some bitcoins for free? Check out http://earnfreebitcoins.com !
Get easy bitcoins at  https://coincontroller.com?r=eaef398b5 !
2112
Legendary
*
Offline Offline

Activity: 2128
Merit: 1068



View Profile
March 27, 2013, 03:43:49 PM
 #4

Code:
ulimit -c unlimited
is your friend. Then do post-mortems on those coredumps with:
Code:
gdb bitcoind core.2112
.

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
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
March 28, 2013, 04:49:00 AM
 #5

*scratch*

Someone deleted my earlier reply.

Are posts about modifying the source to reduce the # of tx orphans stored in memory not allowed?

laugh
SlickTheNick (OP)
Full Member
***
Offline Offline

Activity: 220
Merit: 100


View Profile
April 07, 2013, 06:06:27 PM
 #6

@zvs

I did see your post. Thanks for the suggestion. Question, I would probably have to recompile bitcoind again after changing that right?

Looking for a way to get some bitcoins for free? Check out http://earnfreebitcoins.com !
Get easy bitcoins at  https://coincontroller.com?r=eaef398b5 !
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1129


View Profile
April 08, 2013, 07:22:07 PM
 #7

IF you use the code from git memory usage is a lot better.
SlickTheNick (OP)
Full Member
***
Offline Offline

Activity: 220
Merit: 100


View Profile
April 09, 2013, 01:16:23 AM
 #8

IF you use the code from git memory usage is a lot better.

I did use the code from git, but it was from at least a few weeks ago. Iv pulled down the latest commits, and also updated the max orphan block size in main.h as was suggested (and apparantly deleted) before. Re-compiling now, will report back with my findings later

Looking for a way to get some bitcoins for free? Check out http://earnfreebitcoins.com !
Get easy bitcoins at  https://coincontroller.com?r=eaef398b5 !
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1174


View Profile WWW
April 09, 2013, 10:25:03 PM
 #9

Make sure you have commit c7f039b67 (Process getdata invs separately until send buffer overflows), though there are a few other commits that improve memory consumption recently.

I do Bitcoin stuff.
carlos
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile
April 09, 2013, 11:45:43 PM
 #10

Actually latest stable 0.8.1 linux crashes often ...

Quote
************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ThreadMessageHandler()

This RAM issues should be solved ASAP.

We have tried latest git version few days ago, but it crashed even more often...

Currently we have workaround that monitors if bitcoind is running and starts it if needed but please solve this in next stable release...
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1174


View Profile WWW
April 09, 2013, 11:51:11 PM
 #11

Actually latest stable 0.8.1 linux crashes often ...

Did you read the few posts above?

I do Bitcoin stuff.
SlickTheNick (OP)
Full Member
***
Offline Offline

Activity: 220
Merit: 100


View Profile
April 11, 2013, 07:35:26 AM
 #12

After recompiling, I noticed a bit of an increase in speed, and instead of the server crashing very 5-10 minutes, it would crash every 20 minutes to an hour. Little bit of an improvement, but it seems to be extremely finicky. Sometimes it will start up, and other times it will start the process, but then just hang there. Not sure whats up with that


Experienced some pretty odd issues the past day though. My server sends a sendmany() command about 2 or 3 times an hour, usually to about a couple dozen addresses at a time. All of a sudden last night, every time a sendmany command was sent, it would just hang there for a 1-3 minutes, and then come back with a error saying" failed creating transaction". Spent alot of the day trying to figure out why the hell its doing this all of a sudden. Also, doing the listaccounts command would just freeze the server. I ended up doing a fresh pull of the code from github, recompiling it without making any changes to the sources. I then sent all the BTC I had in the server wallet to a new wallet, erased it and re-synced the block chain. Basically started completely fresh. Seems to be running alot faster now, so far so good.

Looking for a way to get some bitcoins for free? Check out http://earnfreebitcoins.com !
Get easy bitcoins at  https://coincontroller.com?r=eaef398b5 !
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!