简体   繁体   English

ReBus 应用程序在 ANTS Profiler 中显示消息队列性能问题

[英]ReBus Application shows Message Queue Performance Issue in ANTS Profiler

We have web Application built in AngularJS, ReBus and NHibernate.我们在 AngularJS、 ReBus和 NHibernate 中构建了 Web 应用程序。 While working on Performance optimization, REDGATE's ANTS Profiler shows that most of the time required to execute MessageQueue.StaleSafeReceiveMessage在进行性能优化时, REDGATE 的 ANTS Profiler显示执行MessageQueue.StaleSafeReceiveMessage所需的大部分时间

ANTS ScreenShot 显示执行流程

And Call Graph will look like this,调用图将如下所示,

在此处输入图片说明

So does Message queue taking more time, Why this behavior is observed, what will be the possible options to make this time less or so.消息队列花费更多时间也是如此,为什么会观察到这种行为,有什么可能的选择可以减少这个时间。 Note: I have not added code because for all scenarios, only this part taking 90% time.注意:我没有添加代码,因为对于所有场景,只有这部分需要 90% 的时间。

I am guessing that what you are observing is the fact that the worker thread is BLOCKED for a small duration, while it is waiting for the next message to become available.我猜你所观察到的事实是,工作线程被阻塞了一小段时间,同时它正在等待下一条消息可用。

If the queue always has messages in it, I suspect the time spent in StaleSafeReceiveMessage will be greatly diminished.如果队列中总是有消息,我怀疑在StaleSafeReceiveMessage花费的时间会大大减少。

In other words, I don't think it is a problem at all :)换句话说,我认为这根本不是问题:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM