27. Mind the gap
byte[][][] b = new byte[1000][100][10];
byte[][][] b = new byte[10][100][1000];
28. Mind the gap
byte[][][] b = new byte[1000][100][10];
byte[][][] b = new byte[10][100][1000];
1.032.344=
1.000.000+
8.080(r)+20.220(h)+4.044(a)
29. Mind the gap
byte[][][] b = new byte[1000][100][10];
byte[][][] b = new byte[10][100][1000];
4.832.024=
1.000.000+
808.000(r)+2.020.020(h)+1.004.004(a)
1.032.344=
1.000.000+
8.080(r)+20.220(h)+4.044(a)
30. Mind the gap
byte[][][] b = new byte[1000][100][10];
byte[][][] b = new byte[10][100][1000];
4.832.024=
1.000.000+
808.000(r)+2.020.020(h)+1.004.004(a)
1.032.344=
1.000.000+
8.080(r)+20.220(h)+4.044(a)
x100
31. Mind the gap
byte[][][] b = new byte[1000][100][10];
byte[][][] b = new byte[10][100][1000];
4.832.024=
1.000.000+
808.000(r)+2.020.020(h)+1.004.004(a)
1.032.344=
1.000.000+
8.080(r)+20.220(h)+4.044(a)
x100 x100
32. Mind the gap
byte[][][] b = new byte[1000][100][10];
byte[][][] b = new byte[10][100][1000];
4.832.024=
1.000.000+
808.000(r)+2.020.020(h)+1.004.004(a)
1.032.344=
1.000.000+
8.080(r)+20.220(h)+4.044(a)
x100 x100 x250
63. Garbage Collection
1. Starts if allocation fails or
System.gc()* called or
condition met
2. Stop-of-the-world operation
64. Garbage Collection
1. Starts if allocation fails or
System.gc()* called or
condition met
2. Stop-of-the-world operation
3. Mark, Sweep and Compact*
79. References
1. Strong - always marked
2. Soft - not marked if too old or need
memory
3. Weak - not marked if no strong
reference
4. Phantom - correct implementation of
finalize() method
140. Paging
1. Linux/Windows use Virtual memory
and “paging” to reference physical
2. Pages mapped to physical only when
referenced
3. OS manages pages
142. Real size of Java Process?
1. Architecture: 32 vs 64
143. Real size of Java Process?
1. Architecture: 32 vs 64
2. JVM vendor: Oracle vs IBM
144. Real size of Java Process?
1. Architecture: 32 vs 64
2. JVM vendor: Oracle vs IBM
3. JVM version incl. update
145. Real size of Java Process?
1. Architecture: 32 vs 64
2. JVM vendor: Oracle vs IBM
3. JVM version incl. update
4. JVM settings
146. Real size of Java Process?
1. Architecture: 32 vs 64
2. JVM vendor: Oracle vs IBM
3. JVM version incl. update
5. OS (above applies)
4. JVM settings
147. Real size of Java Process?
1. Architecture: 32 vs 64
2. JVM vendor: Oracle vs IBM
3. JVM version incl. update
5. OS (above applies)
+ Run under real load for long time
4. JVM settings