Work Managers 什 Work Managers? WebLogic Server 9.x 行 (thread) 理 thread pool 數量 立 execute queues 來 量 理 thread count, thread priority 參數 理 thread pool 數量? WebLogic Server 9.x 理 行 (thread) (self-tuning) 句 說 WebLogic Server thread pool 數量 什 Self-tuning? WebLogic Server 立了 thread pool thread pool server thread pool 數量 來 WebLogic Server 9.x 理 行 行 (thread) Work Managers Work Managers 理 Default Work Manager WebLogic Server default Work Manager Application 行 (fair share) Work Manager Application default Work Manager 理 立 default Work Manager 來 default Work Manager Page 1 of 14
Work Manager 來 行 不 fair-share-request-class, response-time-request-class, context-request-class WebLogic Server 來 行 fair-share-request-class 來 thread-usage time default 50 1 1000 行 Application fair-share-request-class 1000 response-time-request-class response time thread 來 類 request 例 response time millisecond default 0 context-request-class user group 來 來 參 request class 類 Request Classes 不 兩 Request Classes Page 2 of 14
max-threads-constraint, min-threads-constraint, capacity constraint max-threads-constraint 來 行 (concurrent threads) 數量 default -1 min-threads-constraint 來 行 數量 (concurrent threads) default 1 capacity constraint 來 pending request 數量 WebLogic Server request server deadlock default -1 Work Manager Request Classes Constraints 兩 不 兩 Request Classes 兩 Constraints Work Managers Work manager Global Work Manager domain config.xml target server instance server application module 參 Application Ear Work Manager weblogic-application.xml application module 參 Work Manager Page 3 of 14
Component 裡 component ejb Work Manager weblogic-ejb-jar.xml 裡 ejb 參 Web Application Work Manager weblogic.xml web module Page 4 of 14
例 說 Global max-threads-constraint capacity 例來 Admin Console menu bar locate <Domain>/Environment/Work Managers lock and edit New Work Manager Page 5 of 14
capacity constraint Next constraint type count 數 count -1 了 10 Next Page 6 of 14
target server instance 了 target AdminServer Finished Constraint Maximum Threads Constraint Next Page 7 of 14
name count count -1 了 7 Next target AdminServer Finished 行 立 Work Manager 兩 Constraints Work Manager Page 8 of 14
wm1 Next Page 9 of 14
target AdminServer Work Manager sumary list wm1 configuration config maxt1 cc1 兩 Constraints wm1 Save Active Changes : Constraints Request Class application module 參 不 Work Manager 來 來 Servlet 來 理 Client request 裡 Thread sleep 來 Thread 理 量 Thread Thread Pool Page 10 of 14
了 config weblogic.xml web module 參 Work Manager Work Manager web module web module weblogic server 來 利 java Thread 來 行 Server request ( implement Runnable ) Page 11 of 14
( 15 Thread 15 request) 行 : capacity 數 10 立 reject 了 (HTTP Status Code 503) 7 request max-threads-constraint Client Reading Timeout HTTP Status Code 200 利讀 Server 3 exception Reading Timeout Page 12 of 14
WebLogic Execution Queue WebLogic 9 WebLogic Execution Queue : -D 令列 更 config.xml 行 更 Work Manager Execution Queue 了 Page 13 of 14
WebLogic self-tuning 了 Server Configuration 了 Queues Work Manager 理 例 理 行 Thread 不 Work Manager 來 理 列 例 更 讀 BEA Page 14 of 14