RPi Java

From eLinux.org
Revision as of 23:06, 22 February 2013 by RxS-pi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

General tips

Some general tips about Java perfomace on Raspberry Pi.

System memory

Java loves memory. If you do not plan to use desktop enviroment / XBMC run sudo raspi-config select memory_split and decrease GPU memory to 16. You'll get more than 100 Mb of additional system memory.

Swap file

Do not swap! Manage your JVM memory consumption with -ms and -mx keys. If you absolutely have to swap move swap file (/var/swap) to USB HDD of fast flash drive because swapping to SD card is painfully slow. You can set swap size in /etc/dphys-swapfile config file.


Consider CPU overclocking with sudo raspi-config for considerable performance boost.