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