Bitcoin Forum
May 13, 2024, 01:41:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin daemon becomes slow and unresponsive  (Read 1139 times)
Green Lantern (OP)
Newbie
*
Offline Offline

Activity: 322
Merit: 0


View Profile
January 13, 2016, 06:40:52 PM
 #1

There is a web application which creates for each user its own account in wallet. Main problem is the bitcoin daemon with time becomes slow and almost does not load new blocks from network.
I reckon the reason is the huge number of "move" RPC command (which transfer coins from main account to user's account). In these conditions Bitcoin daemon uses more than 50% of CPU and 30% of MEM.
Main problem is how to force daemon to load new blocks. Any suggestions?
1715607667
Hero Member
*
Offline Offline

Posts: 1715607667

View Profile Personal Message (Offline)

Ignore
1715607667
Reply with quote  #2

1715607667
Report to moderator
1715607667
Hero Member
*
Offline Offline

Posts: 1715607667

View Profile Personal Message (Offline)

Ignore
1715607667
Reply with quote  #2

1715607667
Report to moderator
1715607667
Hero Member
*
Offline Offline

Posts: 1715607667

View Profile Personal Message (Offline)

Ignore
1715607667
Reply with quote  #2

1715607667
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
January 13, 2016, 08:51:24 PM
 #2

There is a web application which creates for each user its own account in wallet. Main problem is the bitcoin daemon with time becomes slow and almost does not load new blocks from network.
I reckon the reason is the huge number of "move" RPC command (which transfer coins from main account to user's account). In these conditions Bitcoin daemon uses more than 50% of CPU and 30% of MEM.
Main problem is how to force daemon to load new blocks. Any suggestions?

Get better hardware that has a faster cpu, faster/more RAM, and a disk with a high read/write speed (e.g. SSD) since a lot of those operations involve the wallet and constantly reading and writing the wallet to and from the disk.

Green Lantern (OP)
Newbie
*
Offline Offline

Activity: 322
Merit: 0


View Profile
January 14, 2016, 12:06:58 PM
 #3

There is a web application which creates for each user its own account in wallet. Main problem is the bitcoin daemon with time becomes slow and almost does not load new blocks from network.
I reckon the reason is the huge number of "move" RPC command (which transfer coins from main account to user's account). In these conditions Bitcoin daemon uses more than 50% of CPU and 30% of MEM.
Main problem is how to force daemon to load new blocks. Any suggestions?

Get better hardware that has a faster cpu, faster/more RAM, and a disk with a high read/write speed (e.g. SSD) since a lot of those operations involve the wallet and constantly reading and writing the wallet to and from the disk.

Thanks for reply. Actually I was hoping someone say me that problem has an another origin and how to solve it.
Any other suggestion how to force daemon to load blocks?
onemorexmr
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile
January 14, 2016, 12:09:35 PM
 #4

what do you mean by "account"?

you should not use bitcoin-cores account feature for a site as the result wont be what you think (please search in the tech section for the exact reason).

XMR || Monero || monerodice.net || xmr.to || mymonero.com || openalias.org || you think bitcoin is fungible? watch this
Green Lantern (OP)
Newbie
*
Offline Offline

Activity: 322
Merit: 0


View Profile
January 14, 2016, 12:17:45 PM
 #5

what do you mean by "account"?

you should not use bitcoin-cores account feature for a site as the result wont be what you think (please search in the tech section for the exact reason).
I mean every time when user wins the wallet transfers money from main account to user's account. User is able to manage the coins related to his account.
Here is an example.
Code:
{
        "account" : "",
        "category" : "move",
        "time" : 1452705552,
        "amount" : 12345.00000000,
        "otheraccount" : "user890",
        "comment" : ""
    }
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!