参数实践:Xmx -XX:NewRatio -XX:SurvivorRatio

{
byte[] holder = new byte[32*1024*1024];
// holder = null; 导致内存回收
}

// 词句在holder作用域之外执行一次读写操作。也可导致内存回收
int a= 0;

List<String> list = new ArrayList<String>();
while(true){
list.add("1234567890");
}

-XX:+PrintGCDetails -Xmx100m -XX:NewRatio=10 -XX:SurvivorRatio=2 -XX:+HeapDumpOnOutOfMemoryError

Heap
PSYoungGen total 7680K, used 246K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6144K, 4% used [0x00000007bf700000,0x00000007bf73d8a0,0x00000007bfd00000)
from space 1536K, 0% used [0x00000007bfd00000,0x00000007bfd00000,0x00000007bfe80000)
to space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
ParOldGen total 93184K, used 54456K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 58% used [0x00000007b9c00000,0x00000007bd12e3d8,0x00000007bf700000)
Metaspace used 3238K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 357K, capacity 386K, committed 512K, reserved 1048576K

 

注意,元空间(永久带)不属于堆,属于方法区,元空间内存为直接内存,不受XmX Xms监管

 

最后一次gc情况:

[GC (Allocation Failure) [PSYoungGen: 0K->0K(7680K)] 54474K->54474K(100864K), 0.0007046 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
[Full GC (Allocation Failure) [PSYoungGen: 0K->0K(7680K)] [ParOldGen: 54474K->54457K(79360K)] 54474K->54457K(87040K), [Metaspace: 3206K->3206K(1056768K)], 3.2137489 secs] [Times: user=3.48 sys=0.03, real=3.21 secs]

 

从这条日志我们可以看出新生代 YoungGen 分配成功,54474K->54474K(100864K) 表示 GC 前已使用->GC后已使用(该区域总容量),[]之外表示Java堆GC前已使用->GC后已使用(Java堆总容量),最后为 GC 耗时。

 

error dump :

 

 

加参数:

-XX:+PrintHeapAtGC -XX:+PrintGCDetails -Xmx100m -XX:NewRatio=10 -XX:SurvivorRatio=2 -XX:+HeapDumpOnOutOfMemoryError -Xloggc:gc.txt

 

Java HotSpot(TM) 64-Bit Server VM (25.121-b13) for bsd-amd64 JRE (1.8.0_121-b13), built on Dec 12 2016 20:39:32 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Memory: 4k page, physical 4194304k(169528k free)

/proc/meminfo:

CommandLine flags: -XX:+HeapDumpOnOutOfMemoryError -XX:InitialHeapSize=67108864 -XX:MaxHeapSize=104857600 -XX:NewRatio=10 -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:SurvivorRatio=2 -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseParallelGC
{Heap before GC invocations=1 (full 0):
PSYoungGen total 4608K, used 2896K [0x00000007bf700000, 0x00000007bfc80000, 0x00000007c0000000)
eden space 3584K, 80% used [0x00000007bf700000,0x00000007bf9d4300,0x00000007bfa80000)
from space 1024K, 0% used [0x00000007bfb80000,0x00000007bfb80000,0x00000007bfc80000)
to space 1024K, 0% used [0x00000007bfa80000,0x00000007bfa80000,0x00000007bfb80000)
ParOldGen total 59904K, used 32768K [0x00000007b9c00000, 0x00000007bd680000, 0x00000007bf700000)
object space 59904K, 54% used [0x00000007b9c00000,0x00000007bbc00010,0x00000007bd680000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
0.334: [GC (Allocation Failure) [PSYoungGen: 2896K->993K(4608K)] 35664K->33857K(64512K), 0.0022534 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
Heap after GC invocations=1 (full 0):
PSYoungGen total 4608K, used 993K [0x00000007bf700000, 0x00000007bfc80000, 0x00000007c0000000)
eden space 3584K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfa80000)
from space 1024K, 97% used [0x00000007bfa80000,0x00000007bfb78528,0x00000007bfb80000)
to space 1024K, 0% used [0x00000007bfb80000,0x00000007bfb80000,0x00000007bfc80000)
ParOldGen total 59904K, used 32864K [0x00000007b9c00000, 0x00000007bd680000, 0x00000007bf700000)
object space 59904K, 54% used [0x00000007b9c00000,0x00000007bbc18010,0x00000007bd680000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
}
{Heap before GC invocations=2 (full 0):
PSYoungGen total 4608K, used 3409K [0x00000007bf700000, 0x00000007bfc80000, 0x00000007c0000000)
eden space 3584K, 67% used [0x00000007bf700000,0x00000007bf95c1a8,0x00000007bfa80000)
from space 1024K, 97% used [0x00000007bfa80000,0x00000007bfb78528,0x00000007bfb80000)
to space 1024K, 0% used [0x00000007bfb80000,0x00000007bfb80000,0x00000007bfc80000)
ParOldGen total 93184K, used 76717K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 82% used [0x00000007b9c00000,0x00000007be6eb490,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
0.417: [GC (Allocation Failure) [PSYoungGen: 3409K->384K(4608K)] 80126K->77101K(97792K), 0.0610395 secs] [Times: user=0.20 sys=0.01, real=0.06 secs]
Heap after GC invocations=2 (full 0):
PSYoungGen total 4608K, used 384K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 3584K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfa80000)
from space 1024K, 37% used [0x00000007bfb80000,0x00000007bfbe0020,0x00000007bfc80000)
to space 1024K, 0% used [0x00000007bfa80000,0x00000007bfa80000,0x00000007bfb80000)
ParOldGen total 93184K, used 76717K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 82% used [0x00000007b9c00000,0x00000007be6eb490,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
}
{Heap before GC invocations=3 (full 0):
PSYoungGen total 4608K, used 384K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 3584K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfa80000)
from space 1024K, 37% used [0x00000007bfb80000,0x00000007bfbe0020,0x00000007bfc80000)
to space 1024K, 0% used [0x00000007bfa80000,0x00000007bfa80000,0x00000007bfb80000)
ParOldGen total 93184K, used 76717K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 82% used [0x00000007b9c00000,0x00000007be6eb490,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
0.478: [GC (Allocation Failure) [PSYoungGen: 384K->384K(4608K)] 77101K->77101K(97792K), 0.0601565 secs] [Times: user=0.17 sys=0.00, real=0.06 secs]
Heap after GC invocations=3 (full 0):
PSYoungGen total 4608K, used 384K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 3584K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfa80000)
from space 1024K, 37% used [0x00000007bfa80000,0x00000007bfae0020,0x00000007bfb80000)
to space 1024K, 0% used [0x00000007bff00000,0x00000007bff00000,0x00000007c0000000)
ParOldGen total 93184K, used 76717K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 82% used [0x00000007b9c00000,0x00000007be6eb490,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
}
{Heap before GC invocations=4 (full 1):
PSYoungGen total 4608K, used 384K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 3584K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfa80000)
from space 1024K, 37% used [0x00000007bfa80000,0x00000007bfae0020,0x00000007bfb80000)
to space 1024K, 0% used [0x00000007bff00000,0x00000007bff00000,0x00000007c0000000)
ParOldGen total 93184K, used 76717K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 82% used [0x00000007b9c00000,0x00000007be6eb490,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
0.539: [Full GC (Allocation Failure) [PSYoungGen: 384K->0K(4608K)] [ParOldGen: 76717K->16416K(27136K)] 77101K->16416K(31744K), [Metaspace: 3206K->3206K(1056768K)], 0.9171653 secs] [Times: user=0.88 sys=0.01, real=0.92 secs]
Heap after GC invocations=4 (full 1):
PSYoungGen total 4608K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 3584K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfa80000)
from space 1024K, 0% used [0x00000007bfa80000,0x00000007bfa80000,0x00000007bfb80000)
to space 1024K, 0% used [0x00000007bff00000,0x00000007bff00000,0x00000007c0000000)
ParOldGen total 27136K, used 16416K [0x00000007b9c00000, 0x00000007bb680000, 0x00000007bf700000)
object space 27136K, 60% used [0x00000007b9c00000,0x00000007bac083b0,0x00000007bb680000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
}
{Heap before GC invocations=5 (full 1):
PSYoungGen total 4608K, used 71K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 3584K, 2% used [0x00000007bf700000,0x00000007bf711ed0,0x00000007bfa80000)
from space 1024K, 0% used [0x00000007bfa80000,0x00000007bfa80000,0x00000007bfb80000)
to space 1024K, 0% used [0x00000007bff00000,0x00000007bff00000,0x00000007c0000000)
ParOldGen total 93184K, used 76508K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 82% used [0x00000007b9c00000,0x00000007be6b7300,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
1.532: [GC (Allocation Failure) [PSYoungGen: 71K->0K(5632K)] 76580K->76508K(98816K), 0.0197187 secs] [Times: user=0.02 sys=0.00, real=0.02 secs]
Heap after GC invocations=5 (full 1):
PSYoungGen total 5632K, used 0K [0x00000007bf700000, 0x00000007bff80000, 0x00000007c0000000)
eden space 5120K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfc00000)
from space 512K, 0% used [0x00000007bff00000,0x00000007bff00000,0x00000007bff80000)
to space 1024K, 0% used [0x00000007bfd80000,0x00000007bfd80000,0x00000007bfe80000)
ParOldGen total 93184K, used 76508K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 82% used [0x00000007b9c00000,0x00000007be6b7300,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
}
{Heap before GC invocations=6 (full 1):
PSYoungGen total 5632K, used 0K [0x00000007bf700000, 0x00000007bff80000, 0x00000007c0000000)
eden space 5120K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfc00000)
from space 512K, 0% used [0x00000007bff00000,0x00000007bff00000,0x00000007bff80000)
to space 1024K, 0% used [0x00000007bfd80000,0x00000007bfd80000,0x00000007bfe80000)
ParOldGen total 93184K, used 76508K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 82% used [0x00000007b9c00000,0x00000007be6b7300,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
1.552: [GC (Allocation Failure) [PSYoungGen: 0K->0K(7680K)] 76508K->76508K(100864K), 0.0250558 secs] [Times: user=0.02 sys=0.00, real=0.03 secs]
Heap after GC invocations=6 (full 1):
PSYoungGen total 7680K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6656K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfd80000)
from space 1024K, 0% used [0x00000007bfd80000,0x00000007bfd80000,0x00000007bfe80000)
to space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
ParOldGen total 93184K, used 76508K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 82% used [0x00000007b9c00000,0x00000007be6b7300,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
}
{Heap before GC invocations=7 (full 2):
PSYoungGen total 7680K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6656K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfd80000)
from space 1024K, 0% used [0x00000007bfd80000,0x00000007bfd80000,0x00000007bfe80000)
to space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
ParOldGen total 93184K, used 76508K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 82% used [0x00000007b9c00000,0x00000007be6b7300,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
1.578: [Full GC (Allocation Failure) [PSYoungGen: 0K->0K(7680K)] [ParOldGen: 76508K->36447K(52736K)] 76508K->36447K(60416K), [Metaspace: 3206K->3206K(1056768K)], 0.4138549 secs] [Times: user=0.41 sys=0.00, real=0.41 secs]
Heap after GC invocations=7 (full 2):
PSYoungGen total 7680K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6656K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfd80000)
from space 1024K, 0% used [0x00000007bfd80000,0x00000007bfd80000,0x00000007bfe80000)
to space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
ParOldGen total 52736K, used 36447K [0x00000007b9c00000, 0x00000007bcf80000, 0x00000007bf700000)
object space 52736K, 69% used [0x00000007b9c00000,0x00000007bbf97c78,0x00000007bcf80000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
}
{Heap before GC invocations=8 (full 2):
PSYoungGen total 7680K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6656K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfd80000)
from space 1024K, 0% used [0x00000007bfd80000,0x00000007bfd80000,0x00000007bfe80000)
to space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
ParOldGen total 93184K, used 90529K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 97% used [0x00000007b9c00000,0x00000007bf468700,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
2.078: [GC (Allocation Failure) [PSYoungGen: 0K->0K(7680K)] 90529K->90529K(100864K), 0.0188341 secs] [Times: user=0.03 sys=0.00, real=0.02 secs]
Heap after GC invocations=8 (full 2):
PSYoungGen total 7680K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6144K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfd00000)
from space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
to space 1536K, 0% used [0x00000007bfd00000,0x00000007bfd00000,0x00000007bfe80000)
ParOldGen total 93184K, used 90529K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 97% used [0x00000007b9c00000,0x00000007bf468700,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
}
{Heap before GC invocations=9 (full 3):
PSYoungGen total 7680K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6144K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfd00000)
from space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
to space 1536K, 0% used [0x00000007bfd00000,0x00000007bfd00000,0x00000007bfe80000)
ParOldGen total 93184K, used 90529K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 97% used [0x00000007b9c00000,0x00000007bf468700,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
2.097: [Full GC (Ergonomics) [PSYoungGen: 0K->0K(7680K)] [ParOldGen: 90529K->54474K(77824K)] 90529K->54474K(85504K), [Metaspace: 3206K->3206K(1056768K)], 1.6951871 secs] [Times: user=1.78 sys=0.01, real=1.69 secs]
Heap after GC invocations=9 (full 3):
PSYoungGen total 7680K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6144K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfd00000)
from space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
to space 1536K, 0% used [0x00000007bfd00000,0x00000007bfd00000,0x00000007bfe80000)
ParOldGen total 77824K, used 54474K [0x00000007b9c00000, 0x00000007be800000, 0x00000007bf700000)
object space 77824K, 69% used [0x00000007b9c00000,0x00000007bd132aa0,0x00000007be800000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
}
{Heap before GC invocations=10 (full 3):
PSYoungGen total 7680K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6144K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfd00000)
from space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
to space 1536K, 0% used [0x00000007bfd00000,0x00000007bfd00000,0x00000007bfe80000)
ParOldGen total 93184K, used 54474K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 58% used [0x00000007b9c00000,0x00000007bd132aa0,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
3.793: [GC (Allocation Failure) [PSYoungGen: 0K->0K(7680K)] 54474K->54474K(100864K), 0.0004545 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
Heap after GC invocations=10 (full 3):
PSYoungGen total 7680K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6144K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfd00000)
from space 1536K, 0% used [0x00000007bfd00000,0x00000007bfd00000,0x00000007bfe80000)
to space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
ParOldGen total 93184K, used 54474K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 58% used [0x00000007b9c00000,0x00000007bd132aa0,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
}
{Heap before GC invocations=11 (full 4):
PSYoungGen total 7680K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6144K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfd00000)
from space 1536K, 0% used [0x00000007bfd00000,0x00000007bfd00000,0x00000007bfe80000)
to space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
ParOldGen total 93184K, used 54474K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 58% used [0x00000007b9c00000,0x00000007bd132aa0,0x00000007bf700000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
3.793: [Full GC (Allocation Failure) [PSYoungGen: 0K->0K(7680K)] [ParOldGen: 54474K->54456K(87040K)] 54474K->54456K(94720K), [Metaspace: 3206K->3206K(1056768K)], 1.6507411 secs] [Times: user=1.97 sys=0.01, real=1.66 secs]
Heap after GC invocations=11 (full 4):
PSYoungGen total 7680K, used 0K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6144K, 0% used [0x00000007bf700000,0x00000007bf700000,0x00000007bfd00000)
from space 1536K, 0% used [0x00000007bfd00000,0x00000007bfd00000,0x00000007bfe80000)
to space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
ParOldGen total 87040K, used 54456K [0x00000007b9c00000, 0x00000007bf100000, 0x00000007bf700000)
object space 87040K, 62% used [0x00000007b9c00000,0x00000007bd12e3d8,0x00000007bf100000)
Metaspace used 3206K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 354K, capacity 386K, committed 512K, reserved 1048576K
}
Heap
PSYoungGen total 7680K, used 246K [0x00000007bf700000, 0x00000007c0000000, 0x00000007c0000000)
eden space 6144K, 4% used [0x00000007bf700000,0x00000007bf73d8a0,0x00000007bfd00000)
from space 1536K, 0% used [0x00000007bfd00000,0x00000007bfd00000,0x00000007bfe80000)
to space 1536K, 0% used [0x00000007bfe80000,0x00000007bfe80000,0x00000007c0000000)
ParOldGen total 93184K, used 54456K [0x00000007b9c00000, 0x00000007bf700000, 0x00000007bf700000)
object space 93184K, 58% used [0x00000007b9c00000,0x00000007bd12e3d8,0x00000007bf700000)
Metaspace used 3238K, capacity 4494K, committed 4864K, reserved 1056768K
class space used 357K, capacity 386K, committed 512K, reserved 1048576K

posted on 2018-07-13 11:59  silyvin  阅读(582)  评论(0)    收藏  举报