473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

.Net web application threading

Hi everyone,

I've got a smaller problem which I can't get around of. I've seen some quite usefull answers around and was hoing someone might be able to help.

What I'm working on is a web application, which will be used for internal web service testing. All of it runs on c# .net 2.0. Currently I wanted to do some stress testing using multi-threading. Problem is I'm using threading iside web context.

To further complicate things, I'm also using AjaxPro (www.ajaxpro.info) to fire async requests. The web application is consuming a couple of different web services but that's not really the point. Everything is working fine and reliable up to where I try to run multiple threads to simulate multiple users/requests comming in to web services. I can't really use any of existing testing utilities since web services have a very specific headers and it needs to be constructed manualy.

Here's the problem:
Once a request comes in to the server side (through AjaxPro client call) a System.Threading.ThreadPool is used to que desired number of processes - each of those being a new instance of processing class. All of this works ok as well, the instance processes are being fired and those in turn fire off some events, cought by the same instance that loads the ThreadPool que.
One of the problems was you can't use HttpCOntext.Current.Session since there is no HttpContext inside child Threads. So I'm using external file storage to store thread progress. This part works ok now.
Biggest problem now is the client (browser) is not getting anything back once all the threads are fired, aldough I can clearly debug the main thread returning correctly.

I've done some isolated testing and processes loaded into ThreadPool should not block the main thread from ending execution. If you use ThreadStart -> Thread -> Start() routine, all of threads created that way block the main thread from finishing but using the ThreadPool should not block that.

Are there any more specifics about using multithreading inside http context I'm missing?
Dec 20 '07 #1
0 1111

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: David Harrison | last post by:
I am working on an application on Mac OS X that calls out to python via PyImport_ImportModule(). I find that if the imported module creates and starts a python thread, the thread seems to be...
11
by: Timothy Shih | last post by:
Hi, I am having a freezing issue with my application. My application serves several remotable objects, all of which must be initialized before their use. Furthermore, some of them depend on each...
7
by: Sharon | last post by:
I wrote some Windows application. in the Main() method of the project I use Mutex. I was sure that that mutex will live during all the application run time. But it appears that the Mutex is CG...
8
by: Yatharth | last post by:
Hi, I m new to threading and i have successfully runed threading but i could display value on my web page ,but its working in code behind when i see it through debugger,plzzzzzzz help me here...
3
by: Chris Calzaretta | last post by:
Hello Working with system.threading.thread Ok I have an windows user control. It has 3 thread on it thread 1 uploaded files types a thread 2 upload files types b thread 3 upload files types c...
9
by: JoeB | last post by:
Hi, This is 100% reproducable. .NetCF / WinCE5.0 / VS.Net 2003 1. Create a new 'smart device application' project. 2. Add a progress bar to the form 'progressBar1' 3..Add: using...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
17
by: > Adrian | last post by:
I have converted a number of applications to enable them to work together on a network. I have been led to believe that I can do this as follows: FileStream fs = new FileStream(some code); while...
0
ammoos
by: ammoos | last post by:
hi friends pls help me.. i got an assignment which i feel very difficult to me.. i dont have more knowledge about multi-threading in .net... the assignment details is below.... pls help me... i...
6
by: Allan Ebdrup | last post by:
I have a webservice written in dotNet1.1 that does some stuff and calls a webservice written in dotNet 2.0. I'm using a Visual Studio 2005 webtest and loadtest to test webservice. When I load...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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,...

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.