Java useful config
mouse 285 · person cloud · link
Last update
2018-02-27
2018
02-27
« — »
1
2
3
4
5
6
7
8
9
10
java \
  -server      \ # default on linux 64 bit
  -Xms128M     \ # memory heap start size
  -Xmx256M     \ # memory heap max size
  -XX:+UseG1GC \ # faster garbage collector without CMS memory fragmentation
  -Dawt.useSystemAAFontSettings=on \ # fonts anti aliasing
  -Dswing.aatext=true              \
  -Dsun.java2d.uiScale=2           \ # fixes for HiDPI displays
  -Dsun.java2d.dpiaware=true       \
  -Dsun.java2d.xrender=true          # faster 2D rendering

Note: ignore line comments as they are not syntactically correct.