forked from Jossc/JavaCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemony.java
More file actions
25 lines (23 loc) · 577 Bytes
/
Memony.java
File metadata and controls
25 lines (23 loc) · 577 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.sun;
/**
* @ClassName Memony
* @Description TODO
* @Author chenzhuo
* @Date 2018/8/21 18:27
* @Version 1.0
**/
public class Memony {
public static void main(String[] args) throws InterruptedException {
for (int i =0;i<128;i++){
if(i<70){
byte[] b = new byte[1*1024*1024];
}
if(i==72){
System.err.println("使用了 72m");
Thread.sleep(2000);
}
byte[]b1 = new byte[1*1024*1024];
}
System.err.println("end ---- ");
}
}