There were so few details about the specific situation that anyone who
would answer you - would have to answer using general principles.
On Wed, 2006-02-08 at 02:07 -0600, [EMAIL PROTECTED] wrote:
> Hi there,
>
> Having a message queue designed so that each queue (message type) is assigned
> to one process for reading. How do you handle a situation where the reading
> process of a given queue doesn't function and messages still arrive to that
> queue?
> 1. Will the queue fill up untill blocking the entire resource?
Depends upon the handshake between the message handling process and the
processes which send it messages. If the sending processes expect to
get response before proceeding, they'll eventually stop sending
messages.
But if the sending processes do not wait for ACK, then they'll continue
sending messages. Since some memory needs to be used for storing each
message in the queue, and since the amount of RAM+swap memory a
physically realizable PC is limited, eventually memory will fill up and
the resource will be blocked some way or other (probably by aborting the
entire application by the OOM handler or equivalent).
> 2. Can the blocking issue effect other message queues supposebly used by
> other
> applications?
Not directly.
But if memory is full, and all queues get memory from the same memory
pool, then message senders won't be able to send messages also to the
other queues.
> 3. Can you identify from a different process that there is a queue filling up?
Depends upon the application in question. If memory for the messages is
taken from the general RAM (rather than from a limited memory pool),
then you can use a RAM usage monitor (such as 'top' or
'gnome-system-monitor') for this purpose.
> 4. Can you clear the overflown queue?
Depends upon the application. At extreme cases, you can abort it and
restart it.
--- Omer
--
My Commodore 64 is suffering from slowness and insufficiency of memory;
and its display device is grievously short of pixels. Can anyone help?
My own blog is at http://tddpirate.livejournal.com/
My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]