The maximum theoritical size of a message is 4G - 1 bytes.  This is the 
maximum size of an unsigned int which is what STAF (a C++ application) 
uses to store the size of a STAFString.  The maximum actual size is 
further limited by the operating system and by memory limits available to 
your process.  On Windows, it may limit the maximum size to 750M or 1G. On 
Unix, ulimits may impose additional limitations.

What is the size of the message that you are trying to send?  What 
operating system are you using?  What version of STAF are you using?

If your message is really huge, then you may not want to send it via the 
STAF QUEUE service where the entire message is stored in memory.  Instead, 
perhaps a better option is to write the message to a file and use the STAF 
FS service to copy a file (which can copy a file to the same machine or to 
a remote machine) and then use Python functions to read the file.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347




"Norma Zimmerman" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
07/03/2008 03:05 PM

To
<staf-users@lists.sourceforge.net>
cc

Subject
[staf-users] Problems queueing messages






We are currently using STAF?s Queue Service to send data between processes 
running on both the same machine and remote machines. The data we are 
sending back and forth consists of a dictionary of varied types, i.e. a 
dictionary which may contain other dictionaries, lists, etc. This 
dictionary is converted to a string from which the message is constructed. 
 We have been doing this for sometime with no problem. Recently we have 
been having problems with a new dictionary which is much larger than ones 
we have used in the past. As soon as we attempt to queue the message, we 
have problems. i.e. the python process aborts, our error messages and staf 
log messages are cut off, and all communications via tcp/ip is lost. The 
computer crashes and has to be rebooted. Since we have used this 
successfully to date the questions are:
 
1.      Is there a limit to the size of message which can be sent using 
STAF?s queue service.
2.      What is the largest message size allowed?
3.      Is this limit configurable?
4.      If so, how is it configured?
 
Thanks,
Norma 
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to