Commit e0e28635 authored by 马博's avatar 马博

delete

parent 896ac173
package http.cases;
/**
* Created by mabo on 2018/10/17
*/
import java.util.ArrayList;
import java.util.List;
/*
* 堆oom
* 类的实例放到heap中,所以不断创建类就可以测试出heap的oom了
* jconsole可以监控资源
*
* Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
*/
public class test {
static class TestHeepObject {
}
public static void main(String[] args) {
List<TestHeepObject> heapList = new ArrayList<TestHeepObject>();
while (true) {
// try {
// Thread.sleep(100);
// } catch (InterruptedException e) {
// e.printStackTrace();
// }
heapList.add(new TestHeepObject());
}
}
}
import base.DuibaBase;
import base.DuibaLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.testng.annotations.Test;
import ui.Testui;
import java.util.Random;
/**
* Created by mabo on 2018/9/20
*/
public class test extends DuibaBase{
// @Autowired
// Testhttp_Test test;
// @Autowired
// Testui testui;
//
// public static int i=2;
// public DuibaLog log = DuibaLog.getLogger();
// @Test
// public void test(){
// test.test();
// testui.test();
//
// Random rand = new Random();
//
// log.info("test log");
//// Assert.assertEquals(1,rand.nextInt(2));
//
//
//
//
//
// }
// @Test
// public void test1(){
// i=i-1;
// }
}
package ui;
import org.springframework.stereotype.Service;
/**
* Created by mabo on 2018/9/20
*/
@Service
public class Testui {
public void test(){
System.out.println("ui");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment