Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
java [2012/12/04 23:57] a |
java [2012/12/05 00:07] a [Good/best practices] |
||
---|---|---|---|
Line 28: | Line 28: | ||
| **-XX: | | **-XX: | ||
| **-XX: | | **-XX: | ||
+ | |||
+ | |||
+ | <note important> | ||
+ | **A nice gotcha...** \\ | ||
+ | Major collection don't run until tenured is full. | ||
+ | This mean that using -Xmx1024, current heap could be 750MB with 500MB of " | ||
+ | </ | ||
<note tip> | <note tip> | ||
Line 36: | Line 43: | ||
==== Good/best practices ==== | ==== Good/best practices ==== | ||
+ | FIXME | ||
==== Examples ==== | ==== Examples ==== | ||
+ | tying to limit jvm to ~2G of RAM (java x86_64) | ||
+ | java -Xms512m -Xmx2G -XX: | ||
+ | | ||
+ | java (i386) | ||
+ | java -Xms1400m -Xmx2G -XX: | ||
==== Troubleshooting ==== | ==== Troubleshooting ==== | ||