Another thing to try is to replace "fetch" with "get".  Since you have set
the capacity of the receiver, you don't need fetch to actively poll the
server.

On Wed, Sep 23, 2020 at 10:29 AM Gordon Sim <[email protected]> wrote:

> On 23/09/2020 3:13 pm, umohank wrote:
> > receiver.fetch()  waits infinitely if there is no duration mentioned .
> > As I have mentioned 5 seconds, It wait for 5 seconds and come out if no
> > message in Queue.
> >
> > Note : I am getting CPU high even if there is not message in queue to
> > consume.
> >           I have tried receiver.fetch with abnd without duration, in both
> > case I am getting CPU high.
>
> Get a protocol trace (set env var QPID_LOG_ENABLE=trace=+Protocol) and
> get a pstack thread dump for the client process. That might give you
> more information.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to