因此,我们通常需要保持很少数量的线程,但足够大的线程池可以满足服务器的性能和容量需求。
So we normally want to keep the number of threads small, though large enough to meet the performance and capacity requirements of the server.
因此他的结论是不应该将内存释放回一个全局的内存池,而是将内存保持为针对特定目而初始化的状态。
His conclusion was that instead of freeing the memory back to a global pool, he would have the memory remain initialized for its intended purpose.
通常,应用服务器保持一个端点池,所以第二个选项或许是为了在多个线程之间提供更好的重用而提供的。
Typically, the application server keeps a pool of endpoints, so the second option is likely to provide for greater reuse between multiple threads.
应用推荐