- 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日志输出
最新推荐文章于 2022-09-01 16:41:41 发布