Heim  >  Fragen und Antworten  >  Hauptteil

java - SpringMVC+Tomcat并发响应问题,耗时操作在Controller和Service中差别巨大

SpringMVC + tomcat
两个HTTP请求:
/a: 其中的service有个一耗时 2s 的业务 ab -n 10 -c 10 共耗时 20s 左右
/b: controller 有一个耗时 2s 的等待 ab -n 10 -c 10 功耗 3s 左右
然后我懵逼了

PHP中文网PHP中文网2741 Tage vor339

Antworte allen(0)Ich werde antworten

Keine Antwort
  • StornierenAntwort