Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Scaldingllama on September 24, 2017, 07:26:23 AM



Title: "Not enough memory" error while syncing blockchain with bitcoin core
Post by: Scaldingllama on September 24, 2017, 07:26:23 AM
After installing Bitcoin Core, I keep getting an "out of memory" error message while the blockchain updates. Then it closes the program. Im using a 4 TB external hard drive on Windows 10.  Any suggestions?


Title: Re: "Not enough memory" error while syncing blockchain with bitcoin core
Post by: HCP on September 24, 2017, 08:53:51 AM
Did you actually set Core to store the blocks on your external drive during the install/setup process? If you didn't it will default to C: drive... specifically your "C:\Users\USERNAME\AppData\Roaming\Bitcoin" folder.

Could also be an out of RAM issue... Do you have other apps running?

Post the Bitcoin Core debug.log


Title: Re: "Not enough memory" error while syncing blockchain with bitcoin core
Post by: cr1776 on September 24, 2017, 10:09:00 AM
After installing Bitcoin Core, I keep getting an "out of memory" error message while the blockchain updates. Then it closes the program. Im using a 4 TB external hard drive on Windows 10.  Any suggestions?

Memory is RAM. How much does your system have?  What version of Bitcoin Core?


Title: Re: "Not enough memory" error while syncing blockchain with bitcoin core
Post by: jackg on September 24, 2017, 10:46:03 PM
After installing Bitcoin Core, I keep getting an "out of memory" error message while the blockchain updates. Then it closes the program. Im using a 4 TB external hard drive on Windows 10.  Any suggestions?

Core has a tendency to revert back to the C drive instead of looking for the actual file.
Wherever the bitcoin-qt file is stored whre you launch it from, open notepad and save a file called "bitcoin-qt.bat" - taking off the .txt extension when you use it.
Then in this notepad file copy the following
Code:
Bitcoin-qt.exe -datadir="F:\Bitcoin\Data"

With the path after -datadir being whatever the path you want the data to be saved in in your hard drive.

ENSURE YOUR DRIVE IS IN THE SAME LETTER BEFORE CLICKING THE .bat file.
IF it isn't:
click start+r and type "diskpart"
then type "list disk" and get the number of your drive in it.
then use the "select disk n" with n being the number of your drive and pass the "assign letter=F" command (or whatever letter you're using).


Hope this helps OP!

After installing Bitcoin Core, I keep getting an "out of memory" error message while the blockchain updates. Then it closes the program. Im using a 4 TB external hard drive on Windows 10.  Any suggestions?

Memory is RAM. How much does your system have?  What version of Bitcoin Core?

If it is RAM, OP can you post your computers tasklist and the debug.log at least.


Title: Re: "Not enough memory" error while syncing blockchain with bitcoin core
Post by: miguelmorales85 on September 25, 2017, 12:44:31 PM
After installing Bitcoin Core, I keep getting an "out of memory" error message while the blockchain updates. Then it closes the program. Im using a 4 TB external hard drive on Windows 10.  Any suggestions?

Hello, I have currently the same issue in an old server I'm trying to set as a Bitcoin full node.

It seems the problem is because of low RAM memory, I have tried to use the indications in this URL

https://gist.github.com/laanwj/efe29c7661ce9b6620a7


But It still shutdown after a few hours.

My next step is to download a set a pruned node in my laptop and then migrate it to the old server and even to a raspberry pi.

I will keep you all informed of the results.


Title: Re: "Not enough memory" error while syncing blockchain with bitcoin core
Post by: cr1776 on September 25, 2017, 01:04:46 PM
After installing Bitcoin Core, I keep getting an "out of memory" error message while the blockchain updates. Then it closes the program. Im using a 4 TB external hard drive on Windows 10.  Any suggestions?

Hello, I have currently the same issue in an old server I'm trying to set as a Bitcoin full node.

It seems the problem is because of low RAM memory, I have tried to use the indications in this URL

https://gist.github.com/laanwj/efe29c7661ce9b6620a7


But It still shutdown after a few hours.

My next step is to download a set a pruned node in my laptop and then migrate it to the old server and even to a raspberry pi.

I will keep you all informed of the results.

Are you running 0.15.x? 


Title: Re: "Not enough memory" error while syncing blockchain with bitcoin core
Post by: kiddikoddi on September 25, 2017, 01:22:46 PM
It is either that the HDD space is too small or ram for syncing the wallet because sometimes the wallet has a large amount allocated to sync but i vaguely remember someone here inputting some kinda tag at the beginning of the wallet to make it be max like 1 gb or something but i don't remember the exact tag though, but worst case scenario you can always upgrade your HDD or your RAM haha