[Opa] Scheduling troubles

Clement Le Marc clement at revolutionmobile.fr
Fri Apr 13 08:35:32 UTC 2012


Hi everyone,

I've been having some trouble with CPU intensive task blocking the whole 
server.
The attached file will help to understand what's going on. I'm trying to 
import some email from a list (from an uploaded file but that's not 
really the problem here).

Basically I'm parsing each email to check its validity and if it is 
correct, I'm adding it to my db.
"Normal" case: no problem appears (/click1()/)
"Bad" case, email are not parsing and we're in a close loop 
(/click3()/). jlog are not printed and no one can access the server anymore.
A nasty fix consists in manually adding a /Scheduler.wait(1)/ at the 
beginning of each loop (/click2()/).

And some other thing I just find out writing this few lines, the 
/List.init()/ seems to be a perfect example of my problem, the server is 
not responding while initialising the list.

Clément
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/opa/attachments/20120413/1b6de821/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: schedule.opa
URL: <http://lists.owasp.org/pipermail/opa/attachments/20120413/1b6de821/attachment.ksh>


More information about the Opa mailing list