亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

java - Why does the execution of this code occasionally reach 50~100ms?
黃舟
黃舟 2017-07-03 11:43:18
0
1
927
    for(Map.Entry<String, String> entry : map.entrySet()) { //map 最多2個key-value對
        Request request = new Request();

        ClientInfo clientInfo = new ClientInfo(clientid, host, ip);

        String value = entry.getValue();
        RealInfo realInfo = new RealInfo(clientId, value , clientInfo);
        request.realInfo = realInfo ;

        concurrentLinkedQueue.add(request);
    }
}

jre is a 1.7 environment, and 1.6 is used for compilation.
Looking at the monitoring, most of them return within 0~1ms, but some of them return within 50~100ms, and the qps is about 800.
Now we have ruled out CPU load, memory, network card and other reasons
I really can’t figure out why it can reach 50ms. . . Please help me analyze it

黃舟
黃舟

人生最曼妙的風景,竟是內(nèi)心的淡定與從容!

reply all(1)
學霸

It may be a problem with the database connection. After the IP parameter is changed, will there be any processing in the database to cause this delay? I have encountered similar problems before, but later found out that it is a problem with the database

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template