-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: pymilvus.exceptions.MilvusException: <MilvusException: (code=1, message=Unexpected error, message=<can't start new thread>) #2716
Comments
hi @PapowFish , it looks like a server-side error. Is your Milvus service still working properly? |
Thanks for your reply. Yes, I am running v2.5.3 Milvus standalone on another server and storing data through a remote connection. What exactly does "server-side error" mean? Can you explain it in more detail? Is it due to insufficient server system resources? |
This code will only create a milvus_client and a thread pool equal to the number of CPUs, which is unlikely to exhaust all threads. Check the maximum number of threads in the system. cat /proc/sys/kernel/threads-max |
The machine running the code is 4126101, and the server side where Milvus is installed is 125443. Is it because I have too many videos? |
Use this command to see the number of threads of the process ps -T -p PID | wc -l |
It seems to be 380 when the error occurs. |
Milvus standalone process or towhee process? |
maybe towhee? It is the number of threads of the executed Python script, and it seems that the Milvus standalone does not start the process. |
I used your code to process 500 videos (Each video is approximately a few dozen seconds long), but your problem did not occur. At the same time, I used the command |
Thank you for your reply! It seems to be a hardware issue. After switching to another computer, it has been running smoothly. Thank you very much! |
Is there an existing issue for this?
Current Behavior
hi,When I was using the #video-embedding pipeline# of Towhee to perform video feature extraction and insert it into the Milvus database, I encountered the "can't start new thread" error. This problem occurs after approximately 18 videos have been stored. I asked the Milvus developers for their opinion, and it seems that "Looks like the code created many MilvusClient and might never close any MilvusClient to release the connection resoures in operator_pool."
So, does this pipeline need additional settings?
Expected Behavior
I have approximately 10,000 videos and need to use the built-in model of Towhee for embedding, and then store them in Milvus.
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: