NEM Node on Raspberry Pi 2

Hi,

I'm setting up NEM node on latest model of Raspberry Pi 2. It has 1 GB RAM so this shouldn't be issue. NXT Node works fine on this model, without any issues.

But, when I try to start NIS on Raspberry Pi 2, it gives me this error:

pi@raspberrypi ~/package $ ./nix.runNis.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/env/EnvironmentCapable
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2688)
at java.lang.Class.getMethod0(Class.java:2937)
at java.lang.Class.getMethod(Class.java:1771)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.springframework.core.env.EnvironmentCapable
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 18 more
/home/pi/package


Have anybody tried it on Raspberry Pi before? Any special configuration or changes I need to do?

I just downloaded NEM archive again, and this time it started without any issue.

Right now my RasPi 2 is running both NIS and NXT togher.



Will keep an eye on it for a day or two or week. Hope it will go well. ;D

NIS + NXT prob won't work for very long. As blockchians grow you'll ran out of RAM.
I'm interested to see how long it'll work though :slight_smile:

But nxt use about 350-400 mb and have a blockchain of about 350000 block.

There is about 600 mb free and Nem have now about 6000 blocks.

So Why you think that nxt and nis not work together for a lungo time?


NIS + NXT prob won't work for very long. As blockchians grow you'll ran out of RAM.
I'm interested to see how long it'll work though :)


Yea, seems like NXT can not run alongside NEM. After and hour or two either of them crashed due to out of RAM.

But, NIS alone is working pretty fine. :) I'm happy with it. And it's just not NIS on RasPi, I'm also mining Scrypt on the same RasPi.  :P

[img width=800 height=452]http://i.imgur.com/kPYUheZ.png[/img]

I just downloaded NEM archive again, and this time it started without any issue.

Right now my RasPi 2 is running both NIS and NXT togher.

[img width=800 height=281]http://i.imgur.com/PxIkZuC.png[/img]

Will keep an eye on it for a day or two or week. Hope it will go well. ;D


Okay I'm a Linux noobie, I know what top is but how do you get the graphical version as in your screenshot?

KC



Okay I'm a Linux noobie, I know what top is but how do you get the graphical version as in your screenshot?

KC


htop


Cheers

Kc



NIS + NXT prob won't work for very long. As blockchians grow you'll ran out of RAM.
I'm interested to see how long it'll work though :)


Yea, seems like NXT can not run alongside NEM. After and hour or two either of them crashed due to out of RAM.

But, NIS alone is working pretty fine. :) I'm happy with it. And it's just not NIS on RasPi, I'm also mining Scrypt on the same RasPi.  :P



What about running NXT with this option -Xmx256M and NEM with -Xmx512M?


I'm still testing this NEM and NXT.

The first day it was clear that even optimized java settings will not let NXT run along side NEM on RasPi 2. Reason is threads and consumption of RAM which is only 1 GB on latest model of RasPi.

With NEM -Xmx512M setting does fine, but again not for so long. I found RasPi freezing and unresponsive many times with default NEM configuration and with java -Xmx settings.

I don't remember if I changed the NIS configuration settings nem.maxThreads = 500 or it was like that by default. So, today I changed it to
nem.maxThreads = 30

[img width=800 height=295]http://i.imgur.com/no59xDU.png[/img]

Since then I haven't seen any glitch with NIS. RasPi isn't frozen or hanging. The system seems running smoothly so far. Will keep an eye on it for another few days.

EDIT: I also ran NXT with 192M option, but that again kills NXT process sometimes. I think there isn't any max thread option for NXT. At least I haven't found one like NIS have. May be that's why. I have another RasPi B+ model with 512 MB RAM which is running NXT dedicatedly. That seems to be working fine so far. It's just it's TP-LINK wifi which is pain.

Cheers! :)

Whilst you maybe able to run NXT and NEM on a RPi2 now I doubt you will be able to do this for very long. As the NEM blockchain and transactions increase the RPi would likely struggle to cope. During testing of the NIS beta it was only the last few revisions that allowed a RPi to run in a stable fashion.

KC