Clayton Donahue wrote:

Hello again,

We're running into a situation where one of the pages on our system
(which takes ~10-15 seconds to execute) seems to be choking out other
pages from making requests to the 4D server.  This is one of our larger
"portal" style pages which in turn executes a native 4D method (we put
it there to take advantage of compiled code - we usually use a4d
libraries :-) .  During the time that it takes this particular page to
load, other users are unable to access any of the other pages.  The
browser will hang until the initial portal page has finished processing.


The native 4D code isn't reliant on any other outside code/machines.
It's simply turning a lot of machinations and crunching a bunch of
things.  It's my understanding that Active4D handles each page request
as an individual process, so is it possible that the first process is
just grabbing up all available processor time and not allowing the
subsequent requests to come through?  Now, I know that 4D Server doesn't
support true multi-threading, but is there a way to have the processes
"play friendly" with one another?
Clayton, I _think_ you've answered this question but is it possible that the 4D code might be using 4D Internet Commands to send mail or do other stuff ? If not 4DIC, does that code use any other plug-ins that might not run asynchronously? This could cause the blocking you are seeing.

Also have you tried liberally sprinkling IDLE commands throughout the 4D method?

hth,

Brad Perkins
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to