Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
java [2012/12/06 17:27]
194.249.198.48 [Good/best practices]
java [2012/12/06 17:29]
194.249.198.48
Line 42: Line 42:
 </note> </note>
  
-==== Good/best practices ====+==== Choosing the garbage collector ==== 
 + 
 +===== 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 54: Line 56:
 java (i386) java (i386)
     java -Xms1400m -Xmx2G -XX:MaxPermSize=128m -server     java -Xms1400m -Xmx2G -XX:MaxPermSize=128m -server
-==== Troubleshooting ====+     
 +===== Troubleshooting =====
  
 === Resolving java.lang.OutOfMemoryError: PermGen === === Resolving java.lang.OutOfMemoryError: PermGen ===
Line 67: Line 70:
 (Note that Xmx is separate from the PermGen space, so increasing Xmx will not help with the PermGen errors). \\ (Note that Xmx is separate from the PermGen space, so increasing Xmx will not help with the PermGen errors). \\
 **The PermGen memory in addition to the Xmx memory.  e.g. -Xmx128m and MaxPermSize=128m would use up to 256MB.** **The PermGen memory in addition to the Xmx memory.  e.g. -Xmx128m and MaxPermSize=128m would use up to 256MB.**
- 
  
  
java.txt · Last modified: 2012/12/07 12:29 by a
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready