Thanks for the input.

Basically we had aolservers running and while serving pages, it's also
doing some heavy load processing from a ton of scheduled custom
written procedures.  Aolserver crashes and segmentation faults are
fairly frequent and the logs at the time pointed to these running
threads as a probable cause.  Possibly a configuration issue, but I
remember we tried fiddling with those numbers and it never really
helped.  So basically, what I'm currently beating my head over is to
build a much cleaner and better way of handling all the load but in so
doing, I'm not entirely sure whether or not to spawn a lot of threads
for the jobs, or basically keep it to a minimum.

Judging from Andrew's post, it would likely be better to reuse threads
but I'm not entirely sure how that happens.  I mean, everytime you'd
invoke ns_thread begin/begindetached, you are creating a new thread
already, no?  How do you reuse them?

This is probably a stupid question, but is there a distinction between
the threads and connection threads in aolserver?  I know the
connection threads are probably the connections to the database (I
think).

Thank you all for your insights and hope to hear more!

On Jun 30, 12:59 am, Jeff Hobbs <je...@activestate.com> wrote:
> On 28/06/2010 11:25 PM, Sep Ng wrote:
>
> > 2.  I read that in Windows, thread destruction can cause instability
> > and possible memory leaks.  Does this extend to other OS platforms?
>
> Just to highlight this point - this is partially true.  For some
> versions of msvcrt, the stock, documented thread calls actually would
> end up leaking memory.  This is why Tcl does not use those, resorting to
> lower-level calls.  This odd quirk of Windows msvcrt has become common
> knowledge over time.  If you are not using Tcl threads (which layer over
> native threads), make sure you read up on _beginthreadex/_endthreadex.
>
> Jeff
>
> --
> AOLserver -http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to 
> <lists...@listserv.aol.com> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
> field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to