Cordapp教程在Fedora VirtualBox计算机中崩溃 [英] Cordapp tutorial crashing in a Fedora VirtualBox Machine

查看:33
本文介绍了Cordapp教程在Fedora VirtualBox计算机中崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了Corda网站上提供的Cordapp示例.我遵循所有步骤(从控制台运行) https://docs.corda.net/tutorial-cordapp.html

I have downloaded the Cordapp example provided in the Corda website. I follow all the steps (to run it from the console) in https://docs.corda.net/tutorial-cordapp.html

没有任何问题,直到运行示例CorDapp"为止.在这里,我会以一种或另一种方式出错.

without any problem until "Running the example CorDapp". Here i get to errors one way or another.

首先,在运行时工作流程-kotlin/build/nodes/runnodes

First, when running workflows-kotlin/build/nodes/runnodes

一个或多个节点无法启动.我当时使用的是具有2个内核和4GB RAM的虚拟机.最终,我注意到RAM似乎是一个问题,因此我将VM配置更改为4 cpus和10 GB RAM.

one or more of the nodes would not start. I was using a virtual machine with 2 cores and 4GB of RAM. Eventually, i noticed it seemed to be an issue with the RAM, so i changed the VM condig to 4 cpus and 10 GB of RAM.

现在,我可以跑步了工作流程-kotlin/build/nodes/runnodes

Now, i can run workflows-kotlin/build/nodes/runnodes

并让所有4个节点正常工作,但是,只要我运行以下指令/gradlew runPartyXServer对于每个可能的节点,如果X = [A,B,C],则在20到30秒后,机器会后悔地放慢速度并中止运行.

and get all 4 nodes working but, as soon as I run the following instruction /gradlew runPartyXServer Where X=[A,B,C] for each of the possible nodes, after 20-30 seconds as much, the machine repently slows down and aborts.

VM具有Fedora 30、4核和10GB RAM.除了我为本教程下载的内容以外,其他内容均为空.我不敢相信这些资源不足以运行本教程,我错了吗?我需要更多吗?可能是另一回事吗?

The VM has Fedora 30, 4 cores and 10GB of RAM. It is empty except for what i downloaded for the tutorial. I cannot believe those are not enough resources to run the tutorial, Am i wrong? Do i need more? may it be another thing?

欢迎任何帮助.

==已解决==

问题出在资源上.我跳到8核和32GB,它运行了.我会在某些时候尝试16GB.无论如何,从我的角度来看,问题在于对硬件的需求如此之大,本教程应包括描述运行它所需的最小设置的部分.

The issue were the resources. I jumped to 8 cores and 32GB and it ran. I will try at some point with 16GB. In any case, the problem, from my point of view, is that having those large hardware requirements, the tutorial should include a section describing the minimum setup needed to run it.

推荐答案

从给定的信息来看,我认为您遇到了内存问题.

From the given information, I believe you had ran into a Memory issue.

根据我们的文档,Corda建议每个节点最低要求为1GB的堆和2-3GB的主机RAM. https://docs.corda.net/docs/corda-enterprise/4.4/node/sizing-and-performance.html#sizing

According to our documentation, Corda has a suggested minimal requirement of 1GB of Heap and 2-3GB of Host RAM per node. https://docs.corda.net/docs/corda-enterprise/4.4/node/sizing-and-performance.html#sizing

我建议减少一台计算机上托管的节点数,或者扩大VM的RAM大小

I would suggest either reduce the number of nodes hosted on a single machine or expand your RAM size of the VM

这篇关于Cordapp教程在Fedora VirtualBox计算机中崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆