I posted this about a month ago and peter asked for a stack trace. I
didn't get the error again until yesterday and here is the stack trace
and what I posted before.
Traceback (most recent call last):
File "./ab.py", line 240, in ?
main()
File "./ab.py", line 217, in main
abThread.start( )
File "/usr/lib/python2.2/threading.py", line 396, in
start
_start_new_thre ad(self.__boots trap, ())
thread.error: can't start new thread
I'm at a loss on this one. I have a multithreaded script that gets
'thread.error: can't start new thread' errors randomly. I
just got it right after starting the script when it was trying to
create the 5th thread. Usually the script will run for a while before
throwing this error, but sometimes it throws it right away.
This script has worked without a problem for months, but I did make
some changes recently. I don't see how those changes would cause
this error though. It's also on a VPS so it's possible that they
changed something in the OS. Does anyone have any suggestions about
possible causes of this error?
I'm using Python 2.2.3 on a custom vps version of FC1. 3 5365
"jdonnell" <ja********@gma il.com> writes: This script has worked without a problem for months, but I did make some changes recently. I don't see how those changes would cause this error though. It's also on a VPS so it's possible that they changed something in the OS. Does anyone have any suggestions about possible causes of this error?
Maybe some other VPS(s) under the host OS have spun enough processes
or threads to make the host OS exhaust some limit.
>Maybe some other VPS(s) under the host OS have spun enough processes or threads to make the host OS exhaust some limit.
I'm not familiar with any hard limits in linux. Is there a config file
with these settings?
"jdonnell" <ja********@gma il.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . I'm using Python 2.2.3 on a custom vps version of FC1.
I am pretty sure there have been thread-related bug fixes since then.
Trying the latest release (even if you can't use it for production) might
give you some idea of the source of the failure (Python versus your OS).
Terry J. Reedy This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: iam1708 via DotNetMonster.com |
last post by:
I was looking at the docs for Thread and can't understand the different
between "unnamed data slot "and "data slot".and docs in Thread.GetData()
say "Threads use a local store memory mechanism to store thread-specific
data." what is "thread-specific data"?
Best regards
wmt
email:iam1708@hotmail.com
|
by: VMI |
last post by:
In the following code, how can I display the MessageBox once MyThread has
finished executing? updateFiles method copies 5 humongous files to the HDD
but for some reason, the MessageBox is displayed before updateFles has
finished executing.
This is the code:
MyThread = new Thread(new ThreadStart (updateFiles));
MyThread.Start();
MessageBox.Show("Program has ended");
|
by: Dale Lundgren |
last post by:
I have a c# class library that launches a Win Form in a secondary thread.
From the Form (now running in the secondary thread) I need to be able to
start a method that is defined in the class and have it run in the main
thread.
I have read many examples and tried numerous approaches based on delegates
all of which will launch the method, but never in the main thread, always in
the secondary thread. Is what I'm trying to accomplish...
|
by: Nathan |
last post by:
I'm trying to start a thread from the Application_Start event in
Global.asax. The thread is supposed to run some code, store the time it
ran in the database and then sleep for 24 hours.
My code is:
Dim jb as New DailyJob
Dim td as Thread
td = New Thread(AddressOf jb.Start)
td.Start()
|
by: Bob Day |
last post by:
Using VS 2003, VB.net , MSDE ....
I am confused by the help example below. In a sub main (whether in a module
or winform), do you have to explicitly start the Main_Thread, as they do in
this example? If the answer is not always, when and where would you and for
what reasons? I don't explicitly start the thread (although I give it a
name) in a module Sub Main, and it still lists the thread as being created
in the threads window.
...
| |
by: Carl Heller |
last post by:
If I'm creating a class to do some work that I want threaded out, where's
the best location to call ThreadStart? Or does it depend on the nature of
the work?
a. Call it outside the class, giving it the starting method of the class?
b. Have the class create the thread itself?
ie:
x = new WorkerClass();
ioThread = new Thread(new ThreadStart(x.StartWork));
|
by: sauce |
last post by:
Hi,
Hm this error has gotten me really frustrated....I wrote a cgi script implementing threads using the threading module, but ran into these errors from my web server:
Exception in thread Thread-2:
Traceback (most recent call last): File "/usr/lib64/python2.3/threading.py", line 436, in __bootstrap self.run() File "test.py", line 214, in run current.start() File "/usr/lib64/python2.3/threading.py", line 410, in start...
|
by: Brent |
last post by:
Page1.aspx calls Page2.aspx like this:
----------------
Server.Execute("Page2.aspx");
---------------
Page2.aspx's Page_Load event calls a function, getMsgs().This function
runs normally when it is called directly, as in
---------------
|
by: Polaris |
last post by:
Hi C# Experts:
I have 2 threads and I like to run them in seperate AppDomains.
In other words, I want to start 2 new AppDomains and then run a thread
within each of the AppDomains. How to do it?
Thanks
Polaris
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |