Re: POE performance issue.



On 30 Oct 2006 13:36:25 -0800, DJ Stunks wrote:
Fei Liu wrote:
Hello, I am new to the POE architecture and intricacies. I am
maintaining a code developped by such an architecture,

Client<->SOAP<->Server (scheduled by POE).

Request is delivered from client to server through SOAP and POE queues
the requests and handles them. The problem is we are getting extremely
poor performance from this message flow. I've tested each individual
component but POE (the code is almost unreadable partially due to my
unfamiliarity with POE). Each component is responding to request
blazingly fast (on the order of millisecond). However, the POE kernel is
queueing up all the requests before they are sent to the actualy request
handler and the request handler are not efficiently used. For some
reason, the response from the request handlers are not picked up by the
POE kernel after 60ms.

It sounds like a large number of events are entering the queue at
once. They will be dispatched in order, so new events entering the
queue will need to wait their turn. There are common strategies for
breaking up large groups of events, but as DJ Stunks said, the
discussion may be more advanced than this list.

Thus my problem requires a good understanding of the inner working of
POE. Someone said POE is designed to be responsive on the order of
second. And I cann't expect better performance than that. Is this
statement true?

That's false.

If you can provide some pointers on understanding POE or general POE
performance tuning tips, I'd really appreciate them.

As a cooperative system, POE's timing depends heavily on your
application's code. You should be prepared to illustrate issues with
relevant code.

this request is probably a little too detailed for perl.beginners, and
POE isn't used that often anyway.

I'd suggest the mailing list, or one of the other options listed here

http://poe.perl.org/?POE_Support_Resources

in order to find POE experts who could help you diagnose & troubleshoot
your bottleneck.

This is excellent advice, except that POE is used quite a lot.

--
Rocco Caputo - http://poe.perl.org/
.



Relevant Pages

  • Re: POE performance issue.
    ... Request is delivered from client to server through SOAP and POE queues ... Each component is responding to request ... handler and the request handler are not efficiently used. ...
    (perl.beginners)
  • POE performance issue.
    ... I am new to the POE architecture and intricacies. ... Request is delivered from client to server through SOAP and POE queues the requests and handles them. ... the POE kernel is queueing up all the requests before they are sent to the actualy request handler and the request handler are not efficiently used. ...
    (perl.beginners)