【Get 以太坊技能】遇到错误 issues#14633 runtime: out of memory:cannot allocate 1413480448-byte block (737902592
前言
- geth version
Geth
Version: 1.9.7-stable
Git Commit: a718daa674a2e23cb0c8a6789f7e5467e705bbbd
Git Commit Date: 20191107
Architecture: 386
Protocol Versions: [64 63]
Network Id: 1
Go Version: go1.13.4
Operating System: windows
GOPATH=
GOROOT=C:\go
- windows 7
错误信息
INFO [11-22|11:09:41.205] Starting peer-to-peer node instance=Geth/v1.9.7-stable-a718daa6/windows-386/go1.13.4
INFO [11-22|11:09:41.205] Allocated trie memory caches clean=674.00MiB dirty=674.00MiB
INFO [11-22|11:09:41.205] Allocated cache and file handles database=D:\\go-ethereum\\privNetwork\\data\\geth\\chaindata cache=1.32GiB handles=8192
INFO [11-22|11:09:41.253] Opened ancient database database=D:\\go-ethereum\\privNetwork\\data\\geth\\chaindata\\ancient
INFO [11-22|11:09:41.254] Initialised chain configuration config="{ChainID: 12345 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: 0 Petersburg: 0 Istanbul: <nil> Engine: unknown}"
INFO [11-22|11:09:41.254] Disk storage enabled for ethash caches dir=D:\\go-ethereum\\privNetwork\\data\\geth\\ethash count=3
INFO [11-22|11:09:41.254] Disk storage enabled for ethash DAGs dir=C:\\Users\\Administrator\\AppData\\Local\\Ethash count=2
INFO [11-22|11:09:41.254] Initialising Ethereum protocol versions="[64 63]" network=1 dbversion=7
INFO [11-22|11:09:41.495] Loaded most recent local header number=0 hash=ffaf2b…905286 td=131072 age=50y7mo1w
INFO [11-22|11:09:41.495] Loaded most recent local full block number=0 hash=ffaf2b…905286 td=131072 age=50y7mo1w
INFO [11-22|11:09:41.495] Loaded most recent local fast block number=0 hash=ffaf2b…905286 td=131072 age=50y7mo1w
INFO [11-22|11:09:41.496] Loaded local transaction journal transactions=0 dropped=0
INFO [11-22|11:09:41.499] Regenerated local transaction journal transactions=0 accounts=0
runtime: out of memory: cannot allocate 1413480448-byte block (737902592 in use)
fatal error: out of memoryruntime stack:
runtime.throw(0x156b255, 0xd)C:/go/src/runtime/panic.go:774 +0x64
runtime.largeAlloc(0x54400000, 0x1f20101, 0x37b6f0b0)C:/go/src/runtime/malloc.go:1140 +0x108
runtime.mallocgc.func1()C:/go/src/runtime/malloc.go:1033 +0x39
runtime.systemstack(0x56e22b0)C:/go/src/runtime/asm_386.s:399 +0x53
runtime.mstart()C:/go/src/runtime/proc.go:1146
官方解释
https://github.com/ethereum/go-ethereum/issues/14633
You will not be able to mine on a 32bit OS (or running a 32bit version of Geth). The ethash mining DAG requires more memory than the 32bit address space allows. Please use a 64bit machine, 64bit OS and 64bit verision of Geth if you wish to mine.
解决办法
解决办法1(推荐):换成64位的geth就可以了
解决办法2:降低geth的缓存大小
查看geth是32位还是64位
shell> geth version
执行结果:
Geth
Version: 1.9.7-stable
Git Commit: a718daa674a2e23cb0c8a6789f7e5467e705bbbd
Git Commit Date: 20191107
Architecture: amd64
Protocol Versions: [64 63]
Network Id: 1
Go Version: go1.13.4
Operating System: windows
GOPATH=
GOROOT=C:\go
Architecture: amd64表示是64位的应用程序。
windows中查看exe程序是32位还是64位
参考:https://www.cnblogs.com/chrischennx/p/6132435.html
【Get 以太坊技能】遇到错误 issues#14633 runtime: out of memory:cannot allocate 1413480448-byte block (737902592相关推荐
- 【Get 以太坊技能】CentOS 7 Geth 搭建私链
前言 CentOS Linux release 7.4.1708 (Core) geth Version: 1.8.17-stable ([Get 以太坊技能]CentOS 7 Geth安装) 为啥搭 ...
- php_version_too_low,以太坊常见问题和错误 / Web3j error:Intrinsic gas too low - 汇智网
我是一个以太坊区块链ethereum blockchain开发新手,我一直尝试执行智能合约使用MetaMask和Remix在Chrome浏览器上. 我现在正在尝试使用web3j开发并通过Java部署相 ...
- uni-app框架+app端+ethers.js库+以太坊开发+常见错误
uni-app框架常见错误解决方案: app端如果不使用兼容的ethers.js库,uni-app框架会报错: * reportJSException > ...
- java.lang.arr_以太坊常见问题和错误 / java.lang.ArrayIndexOutOfBoundsException? - 汇智网...
web3j:智能合约写操作时总是抛出java.lang.ArrayIndexOutOfBoundsException错误,不知道什么问题. 我的代码如下: String hexPrivateKey = ...
- 【Get 以太坊技能】CentOS 7 Geth安装
前言 CentOS Linux release 7.4.1708 (Core) 已安装Go (Centos 7安装go) github 地址:https://github.com/ethereum/g ...
- 【Get 以太坊技能】CentOS 7 安装 go
前言 CentOS Linux release 7.4.1708 (Core) go1.13.4.linux-amd64.tar.gz https://golang.google.cn Step1:下 ...
- 以太坊EVM源码注释之数据结构
以太坊EVM源码分析之数据结构 EVM代码整体结构 EVM相关的源码目录结构: ~/go-ethereum-master/core/vm# tree . ├── analysis.go // 分析合约 ...
- 以太坊gas、gaslimit、gasPrice、gasUsed详解。
1. gas是什么. Gas 翻译成中文就是"燃气",是以太坊世界的燃料,它决定了以太坊网络生态系统的正常运行.Gas 用来衡量执行某些动作需要多少"工作量", ...
- 以太坊的交易id是如何来的
基础概念 在计算机里,一个字节(Byte)是8个比特(Bit),即8位二进制数,即1Byte=8bit.8位二进制数也就是2位十六进制数. 举个例子: 全是0的1个字节就是 00000000,转换为十 ...
最新文章
- android Fragment 学习资料推荐
- Javascript字符串的格式化
- 如何显示服务器上的图片,显示服务器上的图片怎么写
- 边缘和智能,是谁在借谁上位?
- Nmap参数--指纹识别探测
- C++后端向JS前端转换
- LeetCode 225. Implement Stack using Queues
- SSR -- 服务端渲染基础
- CS224n——lecture3课程导学
- odoo12 启动过程中出现的问题解决
- 如何搞定知乎模拟登陆的加密难题?
- red flag linux双网卡,centos双网卡绑定负载均衡
- Android集成百度语音识别API
- ajax中加html,向DIV中写入HTML(AJAX高手赐教)
- 算法(第四版) 2.1答案
- 爬虫,爬取猫眼电影Top100的电影名与评分
- type=“text/javascript“什么意思?
- 利用qrcode生成二维码
- 一个C++程序员的学习经历
- 题目1163:素数 九度OJ