[Seaside] ThreadPool with Seaside - how?

Sabine Manaa manaa.sabine at gmail.com
Thu Jul 27 13:34:05 UTC 2017


I switched to www.imagemagick.org and away from pdfbox.
The problem is solved, the howling of my mac disappeared :-)



2017-07-27 9:59 GMT+02:00 jtuchel [via Smalltalk] <
ml+s1294792n4957128h63 at n4.nabble.com>:
>
> Sounds like you need a pdfbox box ;-)
>
>
>
>
> Am 27.07.2017 um 09:42 schrieb Sabine Manaa <[hidden email]>:
>
> when the report generation is invoked, the session is alive and I have a
long session time.
> So, it is unlikely that the session will expire.
> If it does expire nevertheless, the user will not notice it (because he
is logged out) and I will stop report generation if the session is not
available.
>
> Ramon, I tested your suggestion and with the session passed into the fork
with the local variable, it works.
>
> I was mislead by the method >>queueWorkAndExpireIn:session:
>
> This works
> | theSession |
> theSession := self session.
> [ theSession dummyMethod ] queueWorkAndExpireIn: 25 seconds session: self
session ]
>
> and this works too:
> | theSession |
> theSession := self session.
> [ theSession dummyMethod2 ] queueWork ]);
>
> ==>I don't understand for what the session parameter in
>>queueWorkAndExpireIn:session: is used.
>
> But I can also use queueWork.
>
> This/the smalltalk side seems to work all fine now with the ThreadPool.
Thank you for this!
>
> I also use an external program to
> * merge multiple  PDFs into one
> * and to generate pngs from pdfs for the preview
> (https://pdfbox.apache.org).
>
> The remaining problem is, that I have many pdfbox calls which create a
high load on the machine...
> :-)
>
>
>
>
>
>
>
>
>
>
>
> ________________________________
> View this message in context: Re: ThreadPool with Seaside - how?
> Sent from the Seaside General mailing list archive at Nabble.com.
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
below:
> http://forum.world.st/ThreadPool-with-Seaside-how-tp4956812p4957128.html
> To start a new topic under Seaside General, email
ml+s1294792n86180h75 at n4.nabble.com
> To unsubscribe from Seaside, click here.
> NAML




--
View this message in context: http://forum.world.st/ThreadPool-with-Seaside-how-tp4956812p4957192.html
Sent from the Seaside General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20170727/dc9e8628/attachment.html>


More information about the seaside mailing list