Discussion:
Insufficient resources to perform operation.
(too old to reply)
Centract
2004-09-23 20:49:04 UTC
Permalink
Hello, we are experiencing an error message when sending a small message to
MSMQ from dotnet. The error message is below:


1) Exception Information
*********************************************
Exception Type: System.Messaging.MessageQueueException
MessageQueueErrorCode: InsufficientResources
Message: Insufficient resources to perform operation.
ErrorCode: -2147467259
TargetSite: System.Object InternalLateCall(System.Object, System.Type,
System.String, System.Object[], System.String[], Boolean[], Boolean)
HelpLink: NULL
Source: Microsoft.VisualBasic

The client is a VB6/COM/MTS application and we are using Interop.

Thanks
Frank Boyne
2004-09-23 22:44:38 UTC
Permalink
Post by Centract
MessageQueueErrorCode: InsufficientResources
Even though the message is small, it might be the straw
that is breaking the camel's back.

MSMQ has an overall limit of just under 2GB for all the
bytes in all messages in all queues (on MSMQ 1.0 and 2.0
anyway). You could check this value by running perfmon
and adding the Total Bytes in All Queues counter from the
MSMQ Service performance object.

If you are running MSMQ 2.0 (Windows 2000) there are also
a couple of KB articles that might apply

PRB: "Insufficient Resources to Perform This Operation"
Error Message with Message Queuing Queue
http://support.microsoft.com/default.aspx?scid=kb;en-us;326447&Product=msq

MSMQ: Error 0xc00e0027 When You Send or Receive a
Microsoft Message Queue Server Message
http://support.microsoft.com/default.aspx?scid=kb;en-us;810507&Product=msq
Centract
2004-09-27 07:43:02 UTC
Permalink
Thanks, Frank. However, this did not work for us.
I think our problem is similar to the one in the "Close() vs .Dispose()" post.

We do not normally have any messages in the queue since they are processed
very quickly, and the messages we are sending are only a couple of lines in
size. We are running Windows 2000 SP3 and Citrix Metaframe XPe on the client
machine.

We seem to get the error during the middle of the day, and it works fine at
other times of the day. The MQ dependent client service seems to recover from
this error by itself (no reboot necessary).
Post by Frank Boyne
Post by Centract
MessageQueueErrorCode: InsufficientResources
Even though the message is small, it might be the straw
that is breaking the camel's back.
MSMQ has an overall limit of just under 2GB for all the
bytes in all messages in all queues (on MSMQ 1.0 and 2.0
anyway). You could check this value by running perfmon
and adding the Total Bytes in All Queues counter from the
MSMQ Service performance object.
If you are running MSMQ 2.0 (Windows 2000) there are also
a couple of KB articles that might apply
PRB: "Insufficient Resources to Perform This Operation"
Error Message with Message Queuing Queue
http://support.microsoft.com/default.aspx?scid=kb;en-us;326447&Product=msq
MSMQ: Error 0xc00e0027 When You Send or Receive a
Microsoft Message Queue Server Message
http://support.microsoft.com/default.aspx?scid=kb;en-us;810507&Product=msq
Doron Juster [MSFT]
2004-09-27 11:39:44 UTC
Permalink
I'd suggest you enable error logging (driver too) as explained in
http://www.microsoft.com/windows2000/technologies/communications/msmq/wp_msmqfaq.asp
Q15.1. Post here the log file once you reproduce the failure.

Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
.
Post by Centract
Thanks, Frank. However, this did not work for us.
I think our problem is similar to the one in the "Close() vs .Dispose()" post.
We do not normally have any messages in the queue since they are processed
very quickly, and the messages we are sending are only a couple of lines in
size. We are running Windows 2000 SP3 and Citrix Metaframe XPe on the client
machine.
We seem to get the error during the middle of the day, and it works fine at
other times of the day. The MQ dependent client service seems to recover from
this error by itself (no reboot necessary).
Post by Frank Boyne
Post by Centract
MessageQueueErrorCode: InsufficientResources
Even though the message is small, it might be the straw
that is breaking the camel's back.
MSMQ has an overall limit of just under 2GB for all the
bytes in all messages in all queues (on MSMQ 1.0 and 2.0
anyway). You could check this value by running perfmon
and adding the Total Bytes in All Queues counter from the
MSMQ Service performance object.
If you are running MSMQ 2.0 (Windows 2000) there are also
a couple of KB articles that might apply
PRB: "Insufficient Resources to Perform This Operation"
Error Message with Message Queuing Queue
http://support.microsoft.com/default.aspx?scid=kb;en-us;326447&Product=msq
Post by Centract
Post by Frank Boyne
MSMQ: Error 0xc00e0027 When You Send or Receive a
Microsoft Message Queue Server Message
http://support.microsoft.com/default.aspx?scid=kb;en-us;810507&Product=msq
Centract
2004-09-29 17:55:04 UTC
Permalink
Thanks Doron. We enabled logging and strangely, the error does not occur any
more!

The only other thing that has changed in our environment is that we added
some indexes to our database to speed up some queries. This has sped up our
applications and reduced database contention. We are monitoring the server
and the CPU usage seems to have come down a little. This may be somehow
related to MSMQ. Does MSMQ require a minimum amount of CPU cycles? We are
running off two Citrix servers. When the "Insufficient resources to perform
operation" error occurs on one server, the other server still functions fine
and we can still send MSMQ messages from the other server.
Post by Doron Juster [MSFT]
I'd suggest you enable error logging (driver too) as explained in
http://www.microsoft.com/windows2000/technologies/communications/msmq/wp_msmqfaq.asp
Q15.1. Post here the log file once you reproduce the failure.
Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
..
Post by Centract
Thanks, Frank. However, this did not work for us.
I think our problem is similar to the one in the "Close() vs .Dispose()"
post.
Post by Centract
We do not normally have any messages in the queue since they are processed
very quickly, and the messages we are sending are only a couple of lines
in
Post by Centract
size. We are running Windows 2000 SP3 and Citrix Metaframe XPe on the
client
Post by Centract
machine.
We seem to get the error during the middle of the day, and it works fine
at
Post by Centract
other times of the day. The MQ dependent client service seems to recover
from
Post by Centract
this error by itself (no reboot necessary).
Post by Frank Boyne
Post by Centract
MessageQueueErrorCode: InsufficientResources
Even though the message is small, it might be the straw
that is breaking the camel's back.
MSMQ has an overall limit of just under 2GB for all the
bytes in all messages in all queues (on MSMQ 1.0 and 2.0
anyway). You could check this value by running perfmon
and adding the Total Bytes in All Queues counter from the
MSMQ Service performance object.
If you are running MSMQ 2.0 (Windows 2000) there are also
a couple of KB articles that might apply
PRB: "Insufficient Resources to Perform This Operation"
Error Message with Message Queuing Queue
http://support.microsoft.com/default.aspx?scid=kb;en-us;326447&Product=msq
Post by Centract
Post by Frank Boyne
MSMQ: Error 0xc00e0027 When You Send or Receive a
Microsoft Message Queue Server Message
http://support.microsoft.com/default.aspx?scid=kb;en-us;810507&Product=msq
Doron Juster [MSFT]
2004-09-30 18:20:16 UTC
Permalink
msmq doesn't require any minimum amount of cpu cycles. It will use whatever
is available.
Please note that error logging over long period of time will consume disk
space as the log file grow. If the problem does not happen anymore then I'd
suggest you delete the log file once in a while, or disable logging.

Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
.
Post by Centract
Thanks Doron. We enabled logging and strangely, the error does not occur any
more!
The only other thing that has changed in our environment is that we added
some indexes to our database to speed up some queries. This has sped up our
applications and reduced database contention. We are monitoring the server
and the CPU usage seems to have come down a little. This may be somehow
related to MSMQ. Does MSMQ require a minimum amount of CPU cycles? We are
running off two Citrix servers. When the "Insufficient resources to perform
operation" error occurs on one server, the other server still functions fine
and we can still send MSMQ messages from the other server.
Post by Doron Juster [MSFT]
I'd suggest you enable error logging (driver too) as explained in
http://www.microsoft.com/windows2000/technologies/communications/msmq/wp_msmqfaq.asp
Q15.1. Post here the log file once you reproduce the failure.
Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
..
Post by Centract
Thanks, Frank. However, this did not work for us.
I think our problem is similar to the one in the "Close() vs .Dispose()"
post.
Post by Centract
We do not normally have any messages in the queue since they are processed
very quickly, and the messages we are sending are only a couple of lines
in
Post by Centract
size. We are running Windows 2000 SP3 and Citrix Metaframe XPe on the
client
Post by Centract
machine.
We seem to get the error during the middle of the day, and it works fine
at
Post by Centract
other times of the day. The MQ dependent client service seems to recover
from
Post by Centract
this error by itself (no reboot necessary).
Post by Frank Boyne
Post by Centract
MessageQueueErrorCode: InsufficientResources
Even though the message is small, it might be the straw
that is breaking the camel's back.
MSMQ has an overall limit of just under 2GB for all the
bytes in all messages in all queues (on MSMQ 1.0 and 2.0
anyway). You could check this value by running perfmon
and adding the Total Bytes in All Queues counter from the
MSMQ Service performance object.
If you are running MSMQ 2.0 (Windows 2000) there are also
a couple of KB articles that might apply
PRB: "Insufficient Resources to Perform This Operation"
Error Message with Message Queuing Queue
http://support.microsoft.com/default.aspx?scid=kb;en-us;326447&Product=msq
Post by Centract
Post by Frank Boyne
MSMQ: Error 0xc00e0027 When You Send or Receive a
Microsoft Message Queue Server Message
http://support.microsoft.com/default.aspx?scid=kb;en-us;810507&Product=msq
Centract
2004-10-01 16:39:06 UTC
Permalink
Thanks Doron. I think what happened to us is described in KB article 810507
We probably ran out of paged pool memory.

However, the error message that we received was slightly different to the
error message described in KB 810507.

"There are insufficient resources to perform the operation" vs "Insufficient
resources to perform operation"
Post by Doron Juster [MSFT]
msmq doesn't require any minimum amount of cpu cycles. It will use whatever
is available.
Please note that error logging over long period of time will consume disk
space as the log file grow. If the problem does not happen anymore then I'd
suggest you delete the log file once in a while, or disable logging.
Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
..
Post by Centract
Thanks Doron. We enabled logging and strangely, the error does not occur any
more!
The only other thing that has changed in our environment is that we added
some indexes to our database to speed up some queries. This has sped up our
applications and reduced database contention. We are monitoring the server
and the CPU usage seems to have come down a little. This may be somehow
related to MSMQ. Does MSMQ require a minimum amount of CPU cycles? We are
running off two Citrix servers. When the "Insufficient resources to perform
operation" error occurs on one server, the other server still functions fine
and we can still send MSMQ messages from the other server.
Post by Doron Juster [MSFT]
I'd suggest you enable error logging (driver too) as explained in
http://www.microsoft.com/windows2000/technologies/communications/msmq/wp_msmqfaq.asp
Q15.1. Post here the log file once you reproduce the failure.
Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
..
Post by Centract
Thanks, Frank. However, this did not work for us.
I think our problem is similar to the one in the "Close() vs .Dispose()"
post.
Post by Centract
We do not normally have any messages in the queue since they are processed
very quickly, and the messages we are sending are only a couple of lines
in
Post by Centract
size. We are running Windows 2000 SP3 and Citrix Metaframe XPe on the
client
Post by Centract
machine.
We seem to get the error during the middle of the day, and it works fine
at
Post by Centract
other times of the day. The MQ dependent client service seems to recover
from
Post by Centract
this error by itself (no reboot necessary).
Post by Frank Boyne
Post by Centract
MessageQueueErrorCode: InsufficientResources
Even though the message is small, it might be the straw
that is breaking the camel's back.
MSMQ has an overall limit of just under 2GB for all the
bytes in all messages in all queues (on MSMQ 1.0 and 2.0
anyway). You could check this value by running perfmon
and adding the Total Bytes in All Queues counter from the
MSMQ Service performance object.
If you are running MSMQ 2.0 (Windows 2000) there are also
a couple of KB articles that might apply
PRB: "Insufficient Resources to Perform This Operation"
Error Message with Message Queuing Queue
http://support.microsoft.com/default.aspx?scid=kb;en-us;326447&Product=msq
Post by Centract
Post by Frank Boyne
MSMQ: Error 0xc00e0027 When You Send or Receive a
Microsoft Message Queue Server Message
http://support.microsoft.com/default.aspx?scid=kb;en-us;810507&Product=msq
Doron Juster [MSFT]
2004-10-03 17:23:06 UTC
Permalink
If you run out of paged pool memory and you don't keep many messages in your
queues (as you pointed out in a previous post) then I'd suggest you
troubleshoot the paged pool consumption problem and see who's consuming it.
Use the poolmon tool (run it with the -b switch) to check which component
consumes this memory.

Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
.
Post by Centract
Thanks Doron. I think what happened to us is described in KB article 810507
We probably ran out of paged pool memory.
However, the error message that we received was slightly different to the
error message described in KB 810507.
"There are insufficient resources to perform the operation" vs
"Insufficient
Post by Centract
resources to perform operation"
Post by Doron Juster [MSFT]
msmq doesn't require any minimum amount of cpu cycles. It will use whatever
is available.
Please note that error logging over long period of time will consume disk
space as the log file grow. If the problem does not happen anymore then I'd
suggest you delete the log file once in a while, or disable logging.
Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
..
Post by Centract
Thanks Doron. We enabled logging and strangely, the error does not
occur
Post by Centract
Post by Doron Juster [MSFT]
Post by Centract
any
more!
The only other thing that has changed in our environment is that we added
some indexes to our database to speed up some queries. This has sped
up
Post by Centract
Post by Doron Juster [MSFT]
Post by Centract
our
applications and reduced database contention. We are monitoring the server
and the CPU usage seems to have come down a little. This may be somehow
related to MSMQ. Does MSMQ require a minimum amount of CPU cycles? We are
running off two Citrix servers. When the "Insufficient resources to perform
operation" error occurs on one server, the other server still
functions
Post by Centract
Post by Doron Juster [MSFT]
Post by Centract
fine
and we can still send MSMQ messages from the other server.
Post by Doron Juster [MSFT]
I'd suggest you enable error logging (driver too) as explained in
http://www.microsoft.com/windows2000/technologies/communications/msmq/wp_msmqfaq.asp
Post by Centract
Post by Doron Juster [MSFT]
Post by Centract
Post by Doron Juster [MSFT]
Q15.1. Post here the log file once you reproduce the failure.
Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
..
Post by Centract
Thanks, Frank. However, this did not work for us.
I think our problem is similar to the one in the "Close() vs .Dispose()"
post.
Post by Centract
We do not normally have any messages in the queue since they are processed
very quickly, and the messages we are sending are only a couple of lines
in
Post by Centract
size. We are running Windows 2000 SP3 and Citrix Metaframe XPe on the
client
Post by Centract
machine.
We seem to get the error during the middle of the day, and it works fine
at
Post by Centract
other times of the day. The MQ dependent client service seems to recover
from
Post by Centract
this error by itself (no reboot necessary).
Post by Frank Boyne
Post by Centract
MessageQueueErrorCode: InsufficientResources
Even though the message is small, it might be the straw
that is breaking the camel's back.
MSMQ has an overall limit of just under 2GB for all the
bytes in all messages in all queues (on MSMQ 1.0 and 2.0
anyway). You could check this value by running perfmon
and adding the Total Bytes in All Queues counter from the
MSMQ Service performance object.
If you are running MSMQ 2.0 (Windows 2000) there are also
a couple of KB articles that might apply
PRB: "Insufficient Resources to Perform This Operation"
Error Message with Message Queuing Queue
http://support.microsoft.com/default.aspx?scid=kb;en-us;326447&Product=msq
Post by Centract
Post by Doron Juster [MSFT]
Post by Centract
Post by Doron Juster [MSFT]
Post by Centract
Post by Frank Boyne
MSMQ: Error 0xc00e0027 When You Send or Receive a
Microsoft Message Queue Server Message
http://support.microsoft.com/default.aspx?scid=kb;en-us;810507&Product=msq
Loading...