3. JVM Structure
class files class loader
Runtime Data Area
Native
Method Area Java Stack Method
Stack
Heap PC Register
Execute Native Native
Engine Interface Library
4. Heap
Java new 对
Method Area
Java Stack Java栈&Native Statck
栈
5. HotSpot JVM GC
weak generational hypothesis:
Most allocated objects are not
referenced (considered live) for long,
that is, they die young.
Few references from older to younger
objects exist.
35. Levit JVM
-XX:+DisableExplicitGC GC System.gc() JVM
GC
-XX:+UseConcMarkSweepGC CMS GC
-XX:+CMSParallelRemarkEnabled CMS remark remark
-XX:+UseParNewGC
-XX:+UseCMSCompactAtFullCollection:CMS Compact
-XX:+UseFastAccessorMethods:Use optimized versions of
Get<Primitive>Field.
-XX:+UseCMSInitiatingOccupancyOnly :Used to enabled/disable the use of the
anticipated promotions to start a concurrent collection set
-XX:+UseCompressedOops : 64 64
32Gb 32