



下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、understanding the threads allocated in activemq attachments:6 added by hiram chirino, last edited by rich petersen on dec 18, 2007 (view change) one of the easiest ways to tune an activemq deployment to increase scaleability is reduce the number of threads used to get the work done. the default acti
2、vemq configuration makes use of several threads to isolate producers from consumers. this prevents a producer from blocking when a consumer is misbehaving. the following diagram shows the threads involved in the typical process of sending a message from a producer application to a consumer applicati
3、on.activemq has several options that change the way threads are used and allocated. understanding these options and knowing how they can impact the system will help you know if they are safe to enable on your system to reduce the number of threads used and thereby increase scaleability.for example,
4、the default configuration of the vm transport allocates a transport thread which polls for messages from the transport and delivers them to the connection. the vm transport considers this async delivery of messages. since the vm transport connects to its transport peer within the same jvm, its possi
5、ble to use the calling transports thread to deliver the message to connection instead of using the polling thread. when the aysnc=false option is used, the threads in the system look like the following diagram.the broker uses a dispatch thread when sending messages to another connection. this isolat
6、es the producers application thread from any problems that may occur with the consumers connection. the dispatching of a message over transport can be a blocking operation if there are problems with the network connection or if the client is misbehaving. the broker avoids blocking the producers thre
7、ad even when the consumers connection is blocked by using this dispatch thread.the broker supports an option to avoid using the dispatch thread and instead have the producers transport thread directly send the message over the consumers transport. this option should only be used when either you dont
8、 mind blocking the producer when a consumer problem occurs or you know you wont have consumer problems. this option can be enabled per consumer by setting dispatchasync=false. the thread usage diagram for this option is shown below:if you look at the consumer jvm, you see at least 2 threads when you
9、 create a consumer that uses a messagelistener. the first thread is the transport thread which polls and delivers messages from the underlying network. the second thread is the session thread which delivers the message to the messagelistener and processed the message. by using a session thread, acti
10、vemq frees up the transport thread to continue to receive more messages from the network.activemq has an option that can disable the creation and use of the session thread. when the optimizeddispatch=true option is enabled, the transport thread deliver the message directly to the messagelistener for
11、 processing. i would only recommend that this be used for simple messagelisteners that do not send messages back into the jms system and which execute quickly. please note that if you have multiple sessions, the consumers in each session will be serviced by a single transport thread, which makes the system less concurrent. the thread usage diagram for this option is shown below:
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 小自考漢語言文學(xué)階段性測試重要性試題及答案
- 2024年關(guān)心的設(shè)計與制作試題及答案
- 農(nóng)業(yè)種植測試題及答案
- 醫(yī)院藥房辭職報告怎么寫(8篇)
- 讀文言文的讀后感8篇
- 金融學(xué)知到智慧樹章節(jié)測試課后答案2024年秋商丘工學(xué)院
- (2024年秋季版)七年級道德與法治上冊 1.2.1 結(jié)識新同學(xué)教學(xué)設(shè)計 粵教版
- 小自考公共事業(yè)管理考試全景試題
- 商業(yè)轉(zhuǎn)型策略試題及答案
- 漢語言文學(xué)培養(yǎng)學(xué)生的思維能力分析試題及答案
- 小學(xué)數(shù)學(xué)作業(yè)評價分析報告
- 物業(yè)服務(wù)方案-物業(yè)增值服務(wù)方案
- 深入理解Zabbix監(jiān)控系統(tǒng)
- 醫(yī)院感染暴發(fā)的應(yīng)急預(yù)案與應(yīng)急處置演練
- 分析鋁粉儲存過程中可能發(fā)生火災(zāi)爆炸的原因
- 幼兒園幼兒園中班數(shù)學(xué)活動《9的認(rèn)識》
- Word操作練習(xí)題(解析和答案)
- 駕駛服務(wù)外包投標(biāo)方案(技術(shù)標(biāo))
- 緩解學(xué)習(xí)壓力做幸福的自己課件-高三上學(xué)期女生主題講座
- 招待行政費用申請表
- 《微信一個月》課件
評論
0/150
提交評論