[Spread-users] Java-Spread: SpreadException

Jacob Green jgreen at spreadconcepts.com
Thu Jun 17 09:22:20 EDT 2004


Most likely cause is due to the fact that you are not receiving fast enough
to the joined group.  

Spread daemons by default only buffer ~1000 message before it drops to the
connection due to slow receivers. You can increase this number
(MAX_SESSION_MESSAGES), in spread_params.h to 10,000, or 100,000 etc.

This property is nessisary for some applications.

However, if you don't want this, then you will need to implement some sort
of flow control.

Discussions and suds code for possible flow control methods can be found on
the list at: 
http://lists.spread.org/pipermail/spread-users/2003-June/001483.html

and a detailed analysis at the bottom of:
http://lists.spread.org/pipermail/spread-users/2002-May/000767.html

Jacob

> -----Original Message-----
> From: spread-users-admin at lists.spread.org [mailto:spread-users-
> admin at lists.spread.org] On Behalf Of Piero Campanelli
> Sent: Thursday, June 17, 2004 8:35 AM
> To: spread-users at lists.spread.org
> Subject: [Spread-users] Java-Spread: SpreadException
> 
> Hi,
> 
> I have writtend a simple sender and a simple receiver using Java Spread
> API. Sender does something that resemble the following:
> 
> for (;;) {
> 	msg = new Message(....)
> 	send(msg);
> }
> 
> while receiver listen messages and do some statistical count.
> 
> I am experimenting an high throughput of messages/sec but at the same
> time i am experiencing a spreacexception on receiver (cfr: "Connection
> closed while reading header").
> I see that this happen when message flow is very high and CPU workload
> too. What does this mean?
> 
> Tnx
> Piero
> 
> 
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
> http://lists.spread.org/mailman/listinfo/spread-users





More information about the Spread-users mailing list