tomcat parameter adjustment


Maximum number of requests (1) maxConnections receivable (default nio 1W, substantially without adjustment, sufficient);

(2) request the operating system level acceptCount accumulation, in addition there are other acceptCount parameters queue request queue buildup linux operating system (a case where there is a need to be increased).

(3) There is maxThreads parameters we handle the request is particularly important to adjust the parameters to the actual cpu usage case may need to "combine top command," if cpu usage always been able to stabilize at around 80%, and jmeter polymerization to achieve a certain number of reports per second expected, and the response time can be within the expected range.

    If you adjust the number of threads can not meet expectations, consider offloading processing multi-node, or increase the number of core cpu machine.

         If the average response time high, also need to consider the optimization program, most likely slow implementation of the code itself.

Guess you like

Origin www.cnblogs.com/zzq-include/p/12015738.html