public class GcTest {
/**
* [color=red]-Xloggc:d:\gc.log[/color] -Xms10m -Xmx10m
* @param args
* @throws InterruptedException
*/
public static void main(String[] args) throws InterruptedException {
while(true){
Thread.sleep(1000);
byte[] _byte= new byte[1024*1024*6];
System.err.println(_byte);
}
}
}
jvm GC日志输出
最新推荐文章于 2024-04-13 13:47:55 发布