Author

Topic: Bitcoind dies always... (Read 3429 times)

legendary
Activity: 1974
Merit: 1029
October 19, 2013, 02:35:19 PM
#23
or it could be because bitcoin's memory pool (aka transaction list) gets larger, whereas namecoin stays the same.

not really
namecoin has the same growing rate like bitcoin. u should know that the protocol regulates the speed... thats just an unqualified comment

Bitcoin has way more transactions that namecoin. That has nothing to do with the "growing rate" you refer to, which I interpret to be the 10-minute time inverval between blocks. This increased transaction rate could expose a theroretical leak in bitcoin but that doesn't mean that it isn't present in namecoin too.
Wed
legendary
Activity: 1231
Merit: 1018
October 19, 2013, 02:22:02 PM
#22
It's possible something is wrong with your virtual machine. On a clean system to run bitcoind 1GB should not cause the process to die. Check also your diskspace assigned just in case.


There is nothing wrong with my system. I have no swap (thats the main reason) and other running daemons (no clean system). Additionally there is a memory leak on bitcoind. There is no memory leak on other crypto cur. daemons like namecoind. Namecoind releases the memory it reserves.

or it could be because bitcoin's memory pool (aka transaction list) gets larger, whereas namecoin stays the same.

not really
namecoin has the same growing rate like bitcoin. u should know that the protocol regulates the speed... thats just an unqualified comment
and its totally off topic...
the problem is solved and this topic can be closed, i dont want a bitcoin vs. namecoin discussion
legendary
Activity: 2058
Merit: 1452
October 19, 2013, 02:13:10 PM
#21
It's possible something is wrong with your virtual machine. On a clean system to run bitcoind 1GB should not cause the process to die. Check also your diskspace assigned just in case.


There is nothing wrong with my system. I have no swap (thats the main reason) and other running daemons (no clean system). Additionally there is a memory leak on bitcoind. There is no memory leak on other crypto cur. daemons like namecoind. Namecoind releases the memory it reserves.

or it could be because bitcoin's memory pool (aka transaction list) gets larger, whereas namecoin stays the same.
Wed
legendary
Activity: 1231
Merit: 1018
October 19, 2013, 01:44:41 PM
#20
It's possible something is wrong with your virtual machine. On a clean system to run bitcoind 1GB should not cause the process to die. Check also your diskspace assigned just in case.


There is nothing wrong with my system. I have no swap (thats the main reason) and other running daemons (no clean system). Additionally there is a memory leak on bitcoind. There is no memory leak on other crypto cur. daemons like namecoind. Namecoind releases the memory it reserves.

Memory usage of Bitcoind: 10%
Memory usage of Namecoind: 10%
1 Week later
Memory usage of Bitcoind: 40%
Memory usage of Namecoind: 10%
newbie
Activity: 47
Merit: 0
October 19, 2013, 01:30:15 PM
#19
It's possible something is wrong with your virtual machine. On a clean system to run bitcoind 1GB should not cause the process to die. Check also your diskspace assigned just in case.
Wed
legendary
Activity: 1231
Merit: 1018
October 18, 2013, 02:02:53 PM
#18
I have been able to run bitcoind on a VPS with just 768MB of RAM + 256MB vswap (openvz). Of course it only stays up for about a week before dying. This was with bitcoind 0.8.3. I thought they fixed this memory leak issue in 0.8.4. Anyway you can install monit. It will automatically restart the daemon if it dies.

BTW this thread is a little strange. The interaction between the OP and imrer seems a little artificial.

Artificial?
How do you figure?
full member
Activity: 154
Merit: 100
October 18, 2013, 09:34:26 AM
#17
I think problem with bitcoind is solved -> low memory.

If you have some experience with online wallet for business use feel free to comment. (blockchain.info vs inputs.io)

https://bitcointalksearch.org/topic/m.3362379
hero member
Activity: 1246
Merit: 501
October 18, 2013, 08:48:10 AM
#16
Ah, polarhei, still talking like a spam bot.  Cheesy
full member
Activity: 154
Merit: 100
October 18, 2013, 08:32:42 AM
#15
The basic diagram given mentioning not enough memory space for bitcoind. Bitcoind requires at least 1.5GByte memory when doing some verification even there is no GUI. Additionally, I assume you use typical hardrive like WD RED. Remember more ram the better, especially in linux due to the I/O nature.

Have you tried some online wallet to this use? Can I manage online wallet from php and all functions are the same?
sr. member
Activity: 462
Merit: 250
Firing it up
October 18, 2013, 08:30:07 AM
#14
The basic diagram given mentioning not enough memory space for bitcoind. Bitcoind requires at least 1.5GByte memory when doing some verification even there is no GUI. Additionally, I assume you use typical hardrive like WD RED. Remember more ram the better, especially in linux due to the I/O nature.
full member
Activity: 154
Merit: 100
October 18, 2013, 08:29:34 AM
#13
Monit sounds great. It could solve my problem. Thanks Smiley Lol, why artificial? Cheesy
legendary
Activity: 3682
Merit: 1580
October 18, 2013, 08:17:14 AM
#12
I have been able to run bitcoind on a VPS with just 768MB of RAM + 256MB vswap (openvz). Of course it only stays up for about a week before dying. This was with bitcoind 0.8.3. I thought they fixed this memory leak issue in 0.8.4. Anyway you can install monit. It will automatically restart the daemon if it dies.

BTW this thread is a little strange. The interaction between the OP and imrer seems a little artificial.
Wed
legendary
Activity: 1231
Merit: 1018
October 18, 2013, 06:51:31 AM
#11
Thanks. 5€ for 4gb ram??

nope

5€ for the whole server but will become 9€ next month.
1gb ram are about 2,5€ per month

http://www.webtropia.com/en/vservercloud/cloud-vserver-linux-s.html
full member
Activity: 154
Merit: 100
October 18, 2013, 06:50:55 AM
#10
Thanks. 5€ for 4gb ram??
Wed
legendary
Activity: 1231
Merit: 1018
October 18, 2013, 06:49:23 AM
#9
Cool, so do you think 1gb ram + 2gb swap could be enough? Btw how much do you pay for that VPS, where you can't create swap?

5€ per Month

1GB Ram +2GB Swap should be enough but it depends on your system, what other daemons are running, etc.

Please consider that 1GB Ram + 2GB Swap will be full someday, so you have to restart bitcoind. If you're downloading the whole blackchain, this day will come fest (maybe in few hours Cheesy).
full member
Activity: 154
Merit: 100
October 18, 2013, 06:47:09 AM
#8
Cool, so do you think 1gb ram + 2gb swap could be enough? Btw how much do you pay for that VPS, where you can't create swap?
Wed
legendary
Activity: 1231
Merit: 1018
October 18, 2013, 06:34:27 AM
#7
Bei solchen Services wäre etwas Swap ratsam. Ein Teil des Adressraum muss nicht dauerhaft verfügbar sein und kann dann ausgelagert werden. Ausserdem verhindert man, dass der OOM Killer einem im Ernstfall einen wichtigen Prozess beendet.
Source: https://bitcointalksearch.org/topic/m.3361156

I try to translate:
In case of daemons like bitcoin swap is advisable. A part of addres space doesn't have to be available all the time and can be sourced out. Additionally it avoids that important processes are killed because no memory is left.

In my case, i can't use swap (virtual server, virtuozzo) so i have to buy more ram :-(

What you can do is restart it everytime it dies. After the whole blackchain is downloaded just restart bitcoind, it will eat less ram than before.
full member
Activity: 154
Merit: 100
October 18, 2013, 06:29:59 AM
#6
Lol... How could that eat so much? So even 2gb isn't enough? Can anyone tell me if large swap could help or if I really need 4gb ram?
Wed
legendary
Activity: 1231
Merit: 1018
October 18, 2013, 03:56:31 AM
#5
Lol, 1GB isn't enough? Have you had a swap?

It's a virtual machine without swap

/edit
I will create a swap partition, maybe that helps

btw, i have 4gb ram now but look at this:

Code:
PID   USER     PRI  NI  VIRT    RES   SHR   S CPU%  MEM%   TIME+       Command
2512 bitcoin    20   0   1405M  997M  5876 S 116.     48.7      40:58.90   /home/bitcoin/bitcoind


It doesn't rlease any ram...

/edit
I can't create swap file, because Parallels Virtuozzo doesn't supports swaps (in my case)

It's becoming worse
Code:
2512 bitcoin    20   0 1658M 1201M  6632 S 187. 58.7 51:24.59 /home/bitcoin/bitcoind

58.7% of 2GB Ram...
full member
Activity: 154
Merit: 100
October 18, 2013, 03:21:47 AM
#4
Lol, 1GB isn't enough? Have you had a swap?
hero member
Activity: 1246
Merit: 501
October 18, 2013, 03:20:38 AM
#3
1GB is barely enough to run a toaster...
Wed
legendary
Activity: 1231
Merit: 1018
October 18, 2013, 03:07:11 AM
#2
I think I have a solution.
I've upgraded my ram to 2 GB, now it runs.
Wed
legendary
Activity: 1231
Merit: 1018
October 18, 2013, 01:53:06 AM
#1
Hey together,
i have running bitcoind (0.8.5) on Linux (64 bit, debian). I have started it via
Code:
./bitcoind &

It starts to download blocks like expected, but then it dies. I dont know why.
I have downloaded the binaries, didnt compiled it by my self.


These are the last entries of debug.log, db.log is empty:

Code:
received block 0000000000000000f853cbbd99b479dd58bf7a6b8bf25230526b86f1a4f7fea1
ProcessBlock: ORPHAN BLOCK, prev=000000000000002d1178d427031d3c23264c24896a139e527b7ecf9759233741
received block 0000000000000039d5d6be0425beb36448dc39f4608129d81440cacbf066ecec
ProcessBlock: ORPHAN BLOCK, prev=0000000000000000f853cbbd99b479dd58bf7a6b8bf25230526b86f1a4f7fea1
received block 000000000000011783b381d68f9421e33599812638df968bf9ee7daa07b1b5a3
ProcessBlock: ORPHAN BLOCK, prev=0000000000000039d5d6be0425beb36448dc39f4608129d81440cacbf066ecec
received block 00000000000000ad94416ce430db254aece44475a2159948c807ecd002bd2ed0
ProcessBlock: ORPHAN BLOCK, prev=000000000000011783b381d68f9421e33599812638df968bf9ee7daa07b1b5a3
received block 0000000000000071b69800694cd7928d2072b4c1d981fd84d7fb2362159f23d2
Committing 40415 changed transactions to coin database...


Syslog entry:

Code:
Oct 18 08:45:32 41025 kernel: [7433419.027463] OOM killed process 13728 (bitcoind) vm:945220kB, rss:495276kB, swap:0kB

Does anyone have an idea?

/edit
I have 1024 MB RAM, could that be the problem?
Jump to: