WebLogic Server 版本: 12.2.1.1.0下HttpURLConnection问题

weblogic下使用HttpURLConnection发起http请求存在两个问题:
1. 闲置几秒后第一次请求慢
2. 不断请求接口当次数达到一定程度也慢,次数可能是10、20左右。

 HttpURLConnection conn = (HttpURLConnection)httpUrl.openConnection();
 -- 添加头
 -- 添加参数
 conn.connect();
        BufferedReader in = null;
        in = new BufferedReader(new InputStreamReader(conn.getInputStream(), "UTF-8"));

              -- 上行代码是主要耗时地方,事实上请求的接口很快响应并返回数据了

        StringBuilder sb = new StringBuilder();

        String line;
        while((line = in.readLine()) != null) {
            sb.append(line);
        }

        in.close();
        conn.disconnect();

关于头部header有尝试各种情况,不能解决问题。