|
Hi,
There is multithreading capabilities in IIS 5.1 but how do we enable and manage multithreading?
I would like to know the general steps to do so.
Or any weblinks describing multithreading management in IIS would be appreciated also
|
|
|
|
|
This is my recollection of some material that, IIRC, was in "Transactional COM+" by Tim Ewald.
All requests in IIS 5.x come into the inetinfo.exe process. This process has a pool of threads for processing requests. It works out whether any user code needs to be executed for a given request; if not the thread receiving the request simply locates the static content, serves it, and returns to the thread pool waiting for the next request. This thread pool is, IIRC, dynamically sized by IIS.
If user code does need to be executed, IIS checks the Application settings for Application Protection. If the Application Protection level is Low (IIS Process), the pool thread executes the user code directly. If set to Medium (Pooled), IIS accesses an instance of the IISWAM.OutofProcessPool COM+ component, which runs in a shared host process (dllhost.exe). This host process is also multithreaded. For an application marked High (Isolated), the application is given its own, separate dllhost.exe process.
For an ASP page, the worker thread that's processing the request then hands off the request to a different pool of threads used for executing ASP requests.
For ASP.NET, the file extensions used for ASP.NET are associated with an ISAPI extension, aspnet_isapi.dll . This extension starts up an aspnet_wp.exe process if one is not already running, which again has its own thread pool which manages requests. To configure the behaviour of the ASP.NET worker process, see machine.config .
In writing this response I referred to these articles: Optimize ASP and IIS by Decoupling Long-running Requests[^] and Diagnosing Problems in IIS[^]. I hope these are of use to you.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Can anybody help? I need to create a ROM image of a Pocket PC 2003 (2nd Ed) with 3rd party application installed and then flash the whole lot back to the ROM. I am trying to acheive a state whereby if the device (An Acer n30) is hard reset, all the setup and installed applications are there, ready to go.
Any helpful suggestions appreciated.
If anybody can do this as a professional job, please let me know.
Thanks.
Andy Brenton
|
|
|
|
|
The only way you can do this is to contact Acer and ask them to make a special build for you. I think this is going to be highly unlikely.
A better option is probably to investigate AutoRun from a storage card, and simply fit each unit with an SD card containing your program's installer. That's more-or-less what we do.
Actually we work mainly with Symbol hardware, sometimes Intermec and HHP. Symbol have drivers which copy files and parse registry files from specific flash file systems on hard reset. Intermec's built-in flash file store on some units acts like a storage card, so the AutoRun mechanism works there. HHP have a process that runs after cold boot which looks for and installs CABs stored in a particular persistent location.
Alternatively look for a device running Windows Mobile 5.0, which has persistent storage. You then no longer need to worry about the device hard resetting due to a flat battery. My experience with Symbol's Windows Mobile 5.0 devices is that it's actually very hard for the user to wipe the persistent storage.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hello. I cloned WinXP Prof for 20 computers (with True Image). After clone network works about 1-15 minutes, computers disappear.
Thank you for attention!!!
|
|
|
|
|
Did you change the machine SID on the clones before you added them to the network? Google for "NewSID" and you'll find what I'm talking about.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I changed SID before add to the network. I changed SID with NewSID, after that i add to the network. Network works 5-15 minutes, after that copmuter by computer disappeares.
Thank you for attention!!!
|
|
|
|
|
I've never run into the problem before. Hmmmmm.....
The only other thing I can think of is the network adapter auto-negotiating the link speed and duplex with the hub/router you're machine are plugged into, and getting it wrong. This isn't a one-time process, but something that is re-evaluated every so often. You might want to try going into the Properties of the Network Adapter and changing the Speed and Duplex options, from Auto, to the values expected by your hub/switch. Like 100Mb Full Duplex or 10Mb Half Duplex...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
OK. I will do it. You know when i had installed WinMe everything works (i mean network). Why?
Thank you for attention!!!
|
|
|
|
|
Driver versions are different... If this is indeed the problem, it's probabyl because the negotiation code isn't implments properly in the driver.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Is the license for your copies of XP the "commercial open license".
If not I believe they get flagged. I have not bothered with cloning on XP so this is just a guess.
"Every new day begins with possibilities. It's up to us to fill it with things that move us toward progress and peace.” (Ronald Reagan)
|
|
|
|
|
Before make the image for your XP installation use the sysprep utility from support tools to remove SIDs from the machines. This is the recommended by Microsoft.
|
|
|
|
|
I need to enumerate network resources from my service and for this i plan to use impersonation.
This is what i did.
LogonUser(username)
ImpersonateLoggedOnUser()
// do networking stuff
RevertToSelf()
when i perform these operations with username = Administrator, the networking code works fine but with
username = xxxx (which belong to the Administrators group), the networking code fails (GetLatError = 2).
What am i doing wrong here ?
As i see the username(xxxx) does not have a few access rights or privileges which the Administrator has to
enumerate network resources. any idea what are those rights or privileges ?
I tried with granting SeNetworkLogonRight to xxxx and it did not work.
any inputs will be helpful.
|
|
|
|
|
Hi, what is the difference between normal format and quick format partition in windows 2000 or windows xp pro?
|
|
|
|
|
|
Thank you very much for your support. Now I understand the main difference between normal format and quick format.
|
|
|
|
|
Hi
Is there any virus that effects functionality of mouse?
Thank you
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Yes, there are a few. But, who cares? Just scan your entire system for viruses, using a reputable virus scanning package with the latest updates.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I never met that kind of virus. But in my opinion, i think it has because virus is the software that cause operating system run incorrectly and disturb or annoyes to computer user.
If you met this kind of virus, i think you should use your keyboard shortcut to access an anti-virus software and scan your system.
|
|
|
|
|
Hi,
Are there any ways to get Event Log information from a remote box other than with the EventLog class?
EventLog dumps the entire collection of log entries, for the specified log, as soon as it's opened. There is no way to throttle it, Read Next, or filter on anything besides "Source". The buffer size appears to be set at 40,000 and I don't see any way to change that (not that I'd want to). Everything was going great until I tried to get a a rather large log.
And of course, the solution has to be entirely from the client side and I have no control over the size of the remote server logs.
Any suggestions would be appreciated.
Will
|
|
|
|
|
Without using the EventLog class??? You'd have to come up with your own implementation of the class, P/Invoking all the Windows API calls and structures involved. You might be able to use the existing EventLog classes and just override or add new methods to read the events one at a time or implement an asynchronous version of the log download.
You can find more about the Event Log API here[^]. If you look in the Contents in the left pane, you'll see Windows Event Log. Dont bother looking at it yet, it's the API used in Vista. It doesn't exist in lower versions of Windows, at least not yet...
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 10:53 Friday 14th April, 2006
|
|
|
|
|
Thanks,
I was just looking at ".NET Framework Solutions: In Search of the Lost Win32 API" over at Amazon. I haven't played with Win32 since the Windows 95 days so it's a little daunting for what should have been the simple part of the app.
As far as extending the EventLog class. I don't see anything exposed as "protected" that could help me.
Oh well!
Will
|
|
|
|
|
AhClem wrote: As far as extending the EventLog class. I don't see anything exposed as "protected" that could help me.
Huh??? No, you create your own EventLog class! EIther by inheriting from the original EventLog class or by creating one from scratch. Then you can add your own methods to open the remote machine's event log and download each event, one at a time, from each log.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I understand.
My point was that: in addition to the exposed (public) fields/properties, there are NO unexposed (protected) fields/properties in the FCL's EventLog class that would be nice to get at. So, there is no point in inheriting from it. There is nothing it would provide as a base class to make it any less useless to me.
Will
|
|
|
|
|
Ahh! I see what you were gettin' at!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|