<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.20591" name=GENERATOR>
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; MARGIN: 10px; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana color=#000080 size=2>
<DIV><FONT face=Verdana color=#000080 size=2>Hi Emile :</FONT></DIV>
<DIV><FONT color=#000080>&nbsp;&nbsp; Thanks a lot for your help。</FONT></DIV>
<DIV><FONT color=#000080></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080>&nbsp;&nbsp;&nbsp;"The </FONT><FONT 
color=#000000>new&nbsp;persister" may be the solution&nbsp;, I will follow it. 
Thanks!&nbsp;</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=2>&nbsp;&nbsp; <FONT 
color=#000000>Regards.</FONT></FONT></DIV></FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#c0c0c0 size=2>2010-07-07 </FONT></DIV><FONT 
face=Verdana color=#000080 size=2>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>张明涛</SPAN> </FONT></DIV>
<HR color=#b5c4df SIZE=1>

<DIV><FONT face=Verdana size=2><STRONG>发件人:</STRONG> Emile Joubert </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>发送时间:</STRONG> 2010-07-06&nbsp; 19:44:43 
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>收件人:</STRONG> 张明涛; RabbitMQ Discuss 
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>抄送:</STRONG> </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>主题:</STRONG> Re: [rabbitmq-discuss] 
rabbit is out of service in disk mode. </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>Hi&nbsp;张明涛,</DIV>
<DIV></DIV>
<DIV>Regardless&nbsp;of&nbsp;whether&nbsp;messages&nbsp;are&nbsp;published&nbsp;as&nbsp;persistent,&nbsp;all&nbsp;messages</DIV>
<DIV>are&nbsp;held&nbsp;in&nbsp;RAM.&nbsp;If&nbsp;you&nbsp;publish&nbsp;messages&nbsp;without&nbsp;consuming&nbsp;them&nbsp;them&nbsp;you</DIV>
<DIV>will&nbsp;eventually&nbsp;run&nbsp;out&nbsp;of&nbsp;RAM.&nbsp;Your&nbsp;server&nbsp;seems&nbsp;to&nbsp;have&nbsp;enough&nbsp;memory</DIV>
<DIV>for&nbsp;9000&nbsp;messages.</DIV>
<DIV></DIV>
<DIV>You&nbsp;will&nbsp;not&nbsp;be&nbsp;able&nbsp;to&nbsp;open&nbsp;any&nbsp;new&nbsp;channels&nbsp;to&nbsp;the&nbsp;broker&nbsp;after&nbsp;the</DIV>
<DIV>memory&nbsp;limit&nbsp;has&nbsp;been&nbsp;reached,&nbsp;but&nbsp;existing&nbsp;consumers&nbsp;may&nbsp;continue&nbsp;to</DIV>
<DIV>consume&nbsp;messages.</DIV>
<DIV></DIV>
<DIV>The&nbsp;source&nbsp;repository&nbsp;currently&nbsp;contains&nbsp;a&nbsp;new&nbsp;persister&nbsp;in&nbsp;branch</DIV>
<DIV>(bug21673)&nbsp;which&nbsp;will&nbsp;solve&nbsp;your&nbsp;problem.&nbsp;This&nbsp;feature&nbsp;is&nbsp;currently</DIV>
<DIV>undergoing&nbsp;QA.</DIV>
<DIV></DIV>
<DIV>The&nbsp;memory&nbsp;high-watermark&nbsp;is&nbsp;somewhat&nbsp;relevant&nbsp;to&nbsp;your&nbsp;situation.&nbsp;This</DIV>
<DIV>can&nbsp;be&nbsp;set&nbsp;in&nbsp;the&nbsp;config&nbsp;file&nbsp;(see</DIV>
<DIV>http://www.rabbitmq.com/install.html).&nbsp;The&nbsp;default&nbsp;of&nbsp;40%&nbsp;is&nbsp;recommended.</DIV>
<DIV></DIV>
<DIV>Regards</DIV>
<DIV></DIV>
<DIV>Emile</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>On&nbsp;06/07/10&nbsp;09:39,&nbsp;张明涛&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;</DIV>
<DIV>&gt;&nbsp;I&nbsp;send&nbsp;messages(size:10kB)&nbsp;to&nbsp;a&nbsp;queue&nbsp;on&nbsp;single&nbsp;node,but&nbsp;with&nbsp;no</DIV>
<DIV>&gt;&nbsp;consumers.&nbsp;Here&nbsp;is&nbsp;my&nbsp;java&nbsp;code:</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;channel.exchangeDeclare(exec,&nbsp;"direct",&nbsp;true,&nbsp;false,&nbsp;null);</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;channel.queueDeclare("FirstQueue",&nbsp;true,&nbsp;false,&nbsp;false,&nbsp;null);</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;channel.queueBind(queueName,&nbsp;exec,&nbsp;routingKey);</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;BasicProperties&nbsp;bp&nbsp;=&nbsp;new&nbsp;BasicProperties();</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;bp.setDeliveryMode(2);</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;channel.basicPublish(exec,&nbsp;routingKey,&nbsp;bp,&nbsp;messageBodyBytes);</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;When&nbsp;9000&nbsp;message&nbsp;sent,&nbsp;the&nbsp;producer&nbsp;was&nbsp;blocked,&nbsp;I&nbsp;got&nbsp;a&nbsp;message&nbsp;in&nbsp;log&nbsp;:</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;vm_memory_high_watermark&nbsp;set.&nbsp;Memory&nbsp;used:288650128&nbsp;allowed:211065241</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;alarm_handler:&nbsp;{set,{vm_memory_high_watermark,[]}}</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;Then&nbsp;I&nbsp;stop&nbsp;the&nbsp;rabbit,restart&nbsp;it,&nbsp;but&nbsp;I&nbsp;got&nbsp;same&nbsp;messages&nbsp;in&nbsp;log&nbsp;.</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;If&nbsp;I&nbsp;start&nbsp;a&nbsp;consumer,it&nbsp;receives&nbsp;no&nbsp;messages&nbsp;either。</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;Anyone&nbsp;knows&nbsp;how&nbsp;many&nbsp;messages&nbsp;can&nbsp;a&nbsp;queue&nbsp;persist?&nbsp;just&nbsp;9000&nbsp;?</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;I&nbsp;want&nbsp;to&nbsp;persist&nbsp;all&nbsp;the&nbsp;messages,&nbsp;is&nbsp;it&nbsp;possible?</DIV>
<DIV>&gt;&nbsp;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;Anyone&nbsp;give&nbsp;me&nbsp;some&nbsp;advice?&nbsp;Thks&nbsp;.</DIV>
<DIV></DIV></FONT></DIV></BODY></HTML>