Tomcat readiness

I deployed the web application to the server. I created a script to execute the load on the application (stress test). Stress generated different requests using 10 threads. I have come to the following status, as shown in the tomcat manager:

Free memory: 34.57 MB; Total memory: 1166.43 MB; Maximum memory: 1166.43 MB

Maximum streams: 200 Number of current threads: 59 Current thread busy: 12 Maximum processing time: 60295419 ms Processing time: 1,8809264E7 s Number of requests: 233217 Number of errors: 8100 Bytes received: 4.11 MB Bytes sent: 7493.59 MB

In accordance with this status, 12 threads are busy serving requests, while the remaining 47 threads are in a ready state. Available 34.57 MB of memory from 1166.43 MB, which was originally allocated. I suspect that since tomcat does not destroy unused ready-made threads, memory is not freed, but I'm not sure. Does anyone have any other ideas? Does anyone know how to disable ready-made threads?

thank

+3
source share
1 answer

47 tomcats . . , , , , , . . tomcat (, / ).

<Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
    maxThreads="60" minSpareThreads="4"/>
+2

Source: https://habr.com/ru/post/1753142/


All Articles