473,789 Members | 2,898 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.net thread pooling problem

Hi,
I am developing a remote server application. this has to be service
multiple requests at the same time. This is currently being done using the
..Net thread pool.

I have no problems with upto 25 clients accessing my server. After
that I get an exception on the server , that the system is "unable to find a
free thread to complete the requested operation".

I know that .Net specifies a default setting of 25 worker threads
and 25 IO threads, these defaults are specified in machine.config. But even
by changing these parameters I am not being able to move beyond the limit of
25 simultaneous requests. I have also restarted my system after changing
these parameters, but there is no change in behaviour. We are also printing
to console, the number of WorkerThreads and RequestQueue by using
ThreadPool.GetM axThreads, but this prints 25 , 25 for both of these even
after changes to the config file. We have also tried to configure the
minFreeThreads , minLocalRequest FreeThreads and appRequestQueue Limit, but
there is no change in behaviour.

Why is the .Net thread pool not queueing the request if there are no
free threads available? Is there a way to ensure this happens ? Also, what
is the method of definitely increasing the thread pool size?

Note: I am using .Net framework version 1.03.

Any help would be highly appreciated.

TIA,

Gary
Nov 17 '05 #1
0 898

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2224
by: David Sworder | last post by:
This message was already cross-posted to C# and ADO.NET, but I forgot to post to this "general" group... sorry about that. It just occured to me after my first post that the "general" group readers might have some thoughts on this perplexing .NET blocking issue. (see below) ===== Hi,
31
2511
by: AlexeiOst | last post by:
Everywhere in documentation there are recommendations to use threads from thread pooling for relatively short tasks. As I understand, fetching a page or multiple pages (sometimes up to 50 but not tipical) from the Internet and doing some processing on those would be considered to be a big/long task for a thread from a pool. In our app it is possible to break the task into some small ones (thread per fetch and processing thereafter or event...
12
1553
by: serge calderara | last post by:
Dear all, I have a function that I need to run in a thread due to the fact that it can takes long time to execute according to the amount of data to collect. This function is also populating a treeview control whne collected data gets finished. In order to achieve this I have used the following code : System.Threading.ThreadPool.QueueUserWorkItem(New System.Threading.WaitCallback(AddressOf GetListOfReelsFromRemoteDB))
8
3183
by: Maurice LING | last post by:
Hi, I just have a simple question about threads. My classes inherits from threading.Thread class. I am calling threading.Thread.run() method to spawn a few threads to parallel some parts of my program. No thread re-use, pooling, joining ... just plainly spawn a thread, run a routine. So, at the end of run(), what happens to the thread? Just die? While I am on it, can threading.Thread.run() accept any parameters?
5
12755
by: John | last post by:
Does COM.ibm.db2.jdbc.DB2DataSource, (which supports connection pooling) need to be run within a J2EE container environment before the connection pooling facility is actually available to a user? Thanks John
0
1359
by: Vesna Martinovic \(Dolenc\) | last post by:
Hello, Environment: db2 v7 on os/390 web service on win XP written in .net (Visual basic) We have a web service connects to db2 (ODBC) that leaves thread active. We did turn off connection pooling for ibm db2 odbc driver, but it is still active. Web service is calling stored procedure that returns result set.
5
1140
by: Jim Stools | last post by:
Newbie question: Hopefully I worded this correctly... Does each instance of an aspx page spawn its own thread? If so are the threads protected? I assume each aspx page is processed in a synchronized method and each instance has to finish processing before the next instance is queued? If an aspx page has a class that requires lengthly processing are all other instances of the page queued. If more than one aspx page uses the modFoo class...
5
3434
by: jzlondon | last post by:
Hi, I have a question that I wonder if someone might be able to help me with... I have an application which handles real-time financial data from a third party source. The data comes in via events which are fired on an arbitrary thread, and I then take the data, generate update commands for a SQL Server database, and add them to a queue using a lock on a sync object to ensure thread safety when writing to the queue.
10
2197
by: Jon Slaughter | last post by:
Since a thread doesn't have a Stop feature and I'm not supose to use abort, I'm wondering how I stop a thread? My problem is that I simply want to excute a function in the background and possibly "restart" it. What've been doing is essentially: if (SerialRowThread != null)
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10410
Oralloy
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...
0
10200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10139
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,...
0
9984
tracyyun
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...
0
9020
agi2029
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...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4093
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
2
3701
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.