Ive implemented an msmq to read from a socket and push the packet in msmq. The expected no. of message per sec would be 20,000 but if I i try to do so my CPU usage goes upto 100% and new come down.
Can anyone suggest any alternate or solution for this issue. Upto 50% CPU usage is acceptable for me
My main purpose is to store the tcp packets as such in msmq so as to avoid packet dropage issue. And for bulk manipulation instead of mainulating signle packet at a time.
Maryada
Member
42 Points
88 Posts
MSMQ CPU usage issue
Aug 20, 2012 07:40 AM|LINK
Ive implemented an msmq to read from a socket and push the packet in msmq. The expected no. of message per sec would be 20,000 but if I i try to do so my CPU usage goes upto 100% and new come down.
Can anyone suggest any alternate or solution for this issue. Upto 50% CPU usage is acceptable for me
msmq
GaurangNaik
Contributor
2095 Points
499 Posts
Re: MSMQ CPU usage issue
Aug 20, 2012 08:32 AM|LINK
Hi,
What is the need to use MSMQ? would you please explain me the requirement?
msmq
GauranG
Maryada
Member
42 Points
88 Posts
Re: MSMQ CPU usage issue
Aug 20, 2012 09:10 AM|LINK
My main purpose is to store the tcp packets as such in msmq so as to avoid packet dropage issue. And for bulk manipulation instead of mainulating signle packet at a time.
msmq
GaurangNaik
Contributor
2095 Points
499 Posts
Re: MSMQ CPU usage issue
Aug 20, 2012 11:58 AM|LINK
I will strongly encourage you to WCF wih MSMQ. This article is useful to implment the same.
http://www.codeproject.com/Articles/326909/Creating-a-WCF-Service-with-MSMQ-Communication-and
But if you cant do that then you can refer below links where this issue is addressed.
http://serverfault.com/questions/110143/msmq-very-slow-to-receive-messages
http://stackoverflow.com/questions/2271310/architecture-queuing-asp-net-msmq
http://support.microsoft.com/kb/256323
http://vbcity.com/forums/t/64334.aspx
msmq
GauranG
Maryada
Member
42 Points
88 Posts
Re: MSMQ CPU usage issue
Aug 20, 2012 01:04 PM|LINK
Thanks for the reply.
I know the final option will be to switch on WCF with msmq.
I've already read those links. But not solution so far
msmq
GaurangNaik
Contributor
2095 Points
499 Posts
Re: MSMQ CPU usage issue
Aug 21, 2012 06:51 AM|LINK
Hi,
It also might be the bandwidth issue. If you lower your packets then CPU usage might be less.
msmq
GauranG
Maryada
Member
42 Points
88 Posts
Re: MSMQ CPU usage issue
Aug 21, 2012 07:27 AM|LINK
nops..
ts same for 200 bytes and 1.5 lac bytes size