Sonntag, 28. Dezember 2014

Set -XX:-UsePerfData for 24/7 java-apps on your raspberry

The "official" raspberry pi distribution raspbian doesn't use tmpfs for /tmp. Therefore, all applications storing temporary stuff in /tmp cause writes to the rootfs which in most cases means to the SD card.

Usually the few kilobyte every minute are no big deal.
However, if you plan to deploy raspberry pi based systems running java applications 24/7 for years every unnescessary periodically occurring write counts.

So, beside using only high-quality SD cards (with MLC or SLC flash), you might want to run your java apps with -XX:-UsePerfData specified. This flag instructs hotspot to no longer generate temporary files for performance monitoring in /tmp.

Keine Kommentare:

Kommentar veröffentlichen