Changing default java heap size

100 views
Skip to first unread message

Forrest Collman

unread,
Jan 16, 2017, 9:54:59 AM1/16/17
to Kaa project
Hi, 

I am trying to run a kaa server on a raspberry pi, and have successfully compiled it from source on the ARM processor, and installed the resulting .deb package.

However when i try to start the kaa-node i get the following error.

Starting Kaa Node...

Invalid maximum heap size: -Xmx4G

The specified size exceeds the maximum representable size.

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.


I have tried to search through the /etc/kaa-node/conf directory, and the bin files, but I can't see where the "4G" setting is actually set, so that I might change it to something smaller and launch this on the Pi which has 1G of RAM.


Can someone point me to the correct place to make this modification, while still making use of launching the server as a service using the built in utilities? I know i could just run it with java, and passit my own JAVA_OPTIONS. 

best,

Forrest

Volodymyr Chyzhevskyi

unread,
Jan 17, 2017, 7:21:40 AM1/17/17
to Kaa project
Hi,

You can change maximum memory allocation pool for JVM of kaa-node service by editing JVM options in /etc/default/kaa-node file. Also if you'r building kaa-node.deb you can change this options in kaa-server.default.
Refer to this thread for more details about kaa-node service on raspberry pi.

Starting from October 1st, Kaa crew stopped supporting google forum and shifted totally to stackoverflow, see - Kaa project forum.
Reply all
Reply to author
Forward
0 new messages