Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
java [2012/12/06 17:28] 194.249.198.48 Added garbage collector part |
java [2012/12/06 17:29] 194.249.198.48 |
||
---|---|---|---|
Line 42: | Line 42: | ||
</ | </ | ||
- | ===== Choosing the garbage collector | + | ==== Choosing the garbage collector ==== |
- | ==== Good/best practices ==== | + | ===== Good/best practices |
1. OpenJDK 1.6 and 1.7 may (as of now, 6. 12. 2012) still be unstable in stressful production environments leading up to segmentation faults and unintended behaviour. Use Sun/Oracle JVM for maximum stability and performance. | 1. OpenJDK 1.6 and 1.7 may (as of now, 6. 12. 2012) still be unstable in stressful production environments leading up to segmentation faults and unintended behaviour. Use Sun/Oracle JVM for maximum stability and performance. | ||
- | ==== Examples ==== | + | ===== Examples |
tying to limit jvm to ~2G of RAM (java x86_64) | tying to limit jvm to ~2G of RAM (java x86_64) | ||
Line 56: | Line 56: | ||
java (i386) | java (i386) | ||
java -Xms1400m -Xmx2G -XX: | java -Xms1400m -Xmx2G -XX: | ||
- | ==== Troubleshooting ==== | + | |
+ | ===== Troubleshooting | ||
=== Resolving java.lang.OutOfMemoryError: | === Resolving java.lang.OutOfMemoryError: |