Am 15.07.2011 10:10, schrieb Andi Vajda:
> PyLucene embeds a Java VM. Thus, with each subprocess, a new JVM is created 
> with all its threads. This can get insane pretty quickly.

The Java VM starts a lot of threads. On my Linux box eleven threads
additional threads are running after initVM() has been called.

>>> import lucene, os, psutil
>>> psutil.Process(os.getpid()).get_num_threads()
1
>>> lucene.initVM()
<jcc.JCCEnv object at 0x7f23a66f31e0>
>>> psutil.Process(os.getpid()).get_num_threads()
12

Christian

Reply via email to