[英]limit servlet cpu usage in tomcat
我的一些servlet會涉及大量的處理過程和耗時的過程。 其他servlet很簡單。 如果繁重的servlet調用數量很高,則無法使用簡單的servlet。 因此,我想限制繁重的servlet,使其最多只能使用總CPU的50%。 可能嗎? 如果是這樣,請解釋如何/在哪里進行tomcat。
將代碼與戰爭中的其他應用程序封裝在一起
然后
創建Tomcat的secound實例並configure via the operating system the priority
。
要么
嘗試將Executor (thread pool) in Tomcat
threadPriority
設置為Executor (thread pool) in Tomcat
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.