tomcat 卡在获取数据源连接的地方
System.out.println("1:"+newDate().toString());Contextcxt=newInitialContext();System.o...
System.out.println("1: " + new Date().toString());
Context cxt = new InitialContext();
System.out.println("2: " + new Date().toString());
BasicDataSource ds = (BasicDataSource) cxt.lookup("java:comp/env/jdbc/orcl");
System.out.println("3: " + new Date().toString());
conn = ds.getConnection();
System.out.println("4: " + new Date().toString());
第四步哪里,经常会卡住 2-3秒的时间,有时候还会卡在那里不动。求解!
当active == 8 时,直接就卡死了,这是我配置的问题吗? 展开
Context cxt = new InitialContext();
System.out.println("2: " + new Date().toString());
BasicDataSource ds = (BasicDataSource) cxt.lookup("java:comp/env/jdbc/orcl");
System.out.println("3: " + new Date().toString());
conn = ds.getConnection();
System.out.println("4: " + new Date().toString());
第四步哪里,经常会卡住 2-3秒的时间,有时候还会卡在那里不动。求解!
当active == 8 时,直接就卡死了,这是我配置的问题吗? 展开
展开全部
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询