<br>According to this post, <br><a href="http://commedia.cnds.jhu.edu/pipermail/spread-users/2001-May/000084.html">http://commedia.cnds.jhu.edu/pipermail/spread-users/2001-May/000084.html</a><br>it seems that they can be set up high as "tens of thousand".
<br><br>I also have the same problem on the receiver' end. In my application, the messages are sent to a receiver and logged using the following PERL code:<br><br><br>use Spread;<br><br>.....<br>Spread::join($mbox, SPREAD_GROUP); # join the group
<br>.....<br>for(;;) {<br> $current = time();<br> if ($current > ($stamp+GAP*60)) { # GAP == 5 minutes, used to rotate the logs<br> $fh->close;<br> ($stamp, $dir) = get_stamp_dir(GAP, ARCHIVE, $current); # ARCHIVE is a top directory
<br> $fh->open($dir."/".$stamp, O_WRONLY|O_CREAT|O_APPEND) or die("Can't open $stamp in $dir\n");<br> }<br> my @readable = $select->can_read;<br> for (@readable) {<br> my ($service_type,$sender,$groups,$mess_type,$endian,$message) = Spread::receive($mbox);
<br> if ($service_type & REGULAR_MESS) {<br> print $fh $message;<br> }<br> }<br>}<br><br>The program works for about a few hours, then suddenly nothing is shown up in the log files while the CPU is going up to 100%, apparently due to the fact that the application is dropped off by SPREAD and it goes into the "for (;;)" circle.
<br><br>Can my problem be solved by raising WATER_MARK and MAX_SESSION_MESSAGES to very high values, maybe 10,000 - 100,000 ?<br><br><br>Sam<br><br><br><br>On 9/18/07, Vivien Quema <<a href="mailto:Vivien.Quema@inrialpes.fr">
Vivien.Quema@inrialpes.fr</a>> wrote:<br>> Hello,<br>> <br>> I am testing spread with a bursty application (processes send bursts<br>> of 10000 messages, each message having a size of 1kB). I have seen<br>> that it was possible to change the WATER_MARK and
<br>> MAX_SESSION_MESSAGES (they have for default value 500 and 1000<br>> respectively).<br>> <br>> Which value do you advise me?<br>> <br>> Thanks for your help,<br>> Vivien<br>> <br>> _______________________________________________
<br>> Spread-users mailing list<br>> <a href="mailto:Spread-users@lists.spread.org">Spread-users@lists.spread.org</a><br>> <a href="http://lists.spread.org/mailman/listinfo/spread-users">http://lists.spread.org/mailman/listinfo/spread-users
</a><br>> <br><br>