“Can't start a new thread error” in Python

后端 未结 2 763
梦如初夏
梦如初夏 2021-01-19 09:02

I am running a script which extracts the information from debian packages and saves it in a database.

After extracting information from about 100 packages an error

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-19 09:16

    You're using a 32bit system and running out of virtual memory. One of your libraries is likely spawning threads and not reclaiming them correctly. As a workaround, try reducing the default thread stack size with threading.stack_size.

提交回复
热议问题