On Aug 31, 2010, at 7:04, TJ Ninneman <[email protected]> wrote:
Since initVM() must be called from the main thread, the call to
attachCurrentThread() listed above is not necessary.
Thanks, I'll remove that line.
This should be called once per thread. Calling it for every request
better be fast and innocuous.
I've noticed no appreciable (measurable) overhead with this call.
How might one execute a statement once per apache thread anyway?
Maybe there is a hook for this when the thread is created ?
I can only assume the extra calls don't matter but I didn't verify
it.
I can say that over two+ years of heavy, heavy use, I haven't had
any issues. Our PyLucene/Apache servers are the busiest servers in
our setup and never so much as hiccup.
This is most excellent news !
Andi..
TJ