Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

IIS 6 and DCOM instanciation

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  loopback connects to TCP port 8181 and CPU goes t..  
Author Message
pnozay

External


Since: Jan 12, 2004
Posts: 1



(Msg. 1) Posted: Mon Jan 12, 2004 2:12 pm
Post subject: IIS 6 and DCOM instanciation
Archived from groups: microsoft>public>inetserver>iis (more info?)

I developped an ISAPI DLL that instanciate a DCOM application.
These executables are running under Windows 2003 and IIS 6.

The web site under IIS 6 is set to basic authentication.
I use one set of credential (username and password) per company so
several users connect using the same credential.
I would like to have one server instance of my DCOM per company and as
many threads in this instance as there are users for this company.
Making it easy to maintain, relatively reliable and scalable.

If the identity of the DCOM is set to "this user", only one instance
of the DCOM server is launched and then as many threads as I got users
connected.
However with this setting, all the users of all the companies are
connecting to the same DCOM server instance whatever the credential
they use. This is not easy to maintain and reliable if you imagine
having hundred of users connected to the same DCOM server instance...

If the identity of the DCOM is set to use "launching user" which
corresponds to the username and password the user used to authenticate
to IIS, a new DCOM server instance is created for each credential.
Several users can also connect to one instance but from time to time,
Windows decides to create a new server instance even if the credential
stay the same. Therefore, several DCOM instance are created for each
company. This is also not easy to maintain and not scalable as an
instance use a big chunk of memory.

I noticed that the window station is different for each DCOM server
instance even if the credential are the same.

The ISAPI DLL is running under the application pool identity (Network
service) and only one instance of this DLL is loaded so this ISAPI DLL
only get one window station.

I don't understand why Windows decides to create several instances of
my DCOM server when the window station of ISAPI DLL which should be
the calling process stay constant and the credential too.

Any insight help would be greatly appreciated,

 >> Stay informed about: IIS 6 and DCOM instanciation 
Back to top
Login to vote
user649

External


Since: Aug 25, 2003
Posts: 244



(Msg. 2) Posted: Tue Jan 13, 2004 10:24 am
Post subject: RE: IIS 6 and DCOM instanciation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Philippe,

Thank you for posting in MSDN managed newsgroup!

From your description, I understand that you found the windows station for
each DCOM server instance was different, even the credentials are the same.

For the "Launching Users" scenario, there will two clients: local client
and remote client. When the web users login in the site with the same
credential, we can see this as Local client for the DCOM component. This
will not create a new window station for the DCOM activation. I'd suggest
the kb article 169321 will introduce more information regarding this.
Please go to:
169321 INFO: COM Servers Activation and NT Windows Stations
http://support.microsoft.com/?id=169321

Furthermore, it will be appreciated you tell me how you find the windows
station different for these DCOM server instances.

If you have any questions or concerns, please feel free to post it in the
group. I am standing by to be some of assistance.

Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

 >> Stay informed about: IIS 6 and DCOM instanciation 
Back to top
Login to vote
pnozay1

External


Since: Jan 13, 2004
Posts: 1



(Msg. 3) Posted: Tue Jan 13, 2004 10:24 am
Post subject: RE: IIS 6 and DCOM instanciation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Wei-Dong XU,

Thank you very much for looking after this thread.
Yes, I did read several times this interesting article:
http://support.microsoft.com/?id=169321

This is the reason I was examining the window station. I added some code
to the DCOM to log in a text file the name of the window station used by
the DCOM when it initialised, using the GetProcessWindowStation API. I
did the same for the ISAPI DLL.

The logs indicate that the ISAPI is initialised only once with one
window station while the DCOM is initialised several time with different
window station names. The DCOM appears several times in memory but we
currently only use one set of credential.

I observed that all the threads inside a DCOM instances are all created
within 25 minutes of the instance initialisation. I have never observed
threads created after 25mn of the DCOM instance its belong. But I am not
looking at it all the time!


If the credential does not change, the calling process (ISAPI DLL) stay
the same (same window station and same SID) why does the DCOM is
initialised several times from time to time in different window stations
and at other time just a new module (thread) is created in exiting DCOM
instance?

The question seems to be related to window station. Why do Windows or
IIS 6 decide to create a different window station from time to time even
if nothing changed?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 >> Stay informed about: IIS 6 and DCOM instanciation 
Back to top
Login to vote
user649

External


Since: Aug 25, 2003
Posts: 244



(Msg. 4) Posted: Wed Jan 14, 2004 12:12 pm
Post subject: RE: IIS 6 and DCOM instanciation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi philippe,

Thank you for replying and the detailed information about the
troubleshooting!

I don't know whether your checking code can print the process ID into the
log with Window station. If not, I'd suggest you can add some codes in the
DCOM component to print out the process ID. Then, it will be appreciated
you can mail me or attach the log in the community. I will check this log
for you.

Furthermore, I'd also suggest you can check the "Server process shut down"
item from COM configuration mmc. You can type "DCOMCNFG"(no quotation) in
start->run. Select "Component Services->Computers->My Computer->Com+
Application->IIS out-of-Process Pooled Application", then right click the
"IIS out..." node and select "Properties". From the "Advanced" tab of the
properties window, please check the setting for "Server process shut down"
item to see which choice is selected. This setting will affect the process
behaviour for the out-of-process component at runtime. Please tell me the
result. Thanks!

Please feel free to let me know if you have any further questions.

Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 >> Stay informed about: IIS 6 and DCOM instanciation 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
DCOM - Thanks for the help. I executed the steps in the article and it solved the 80110414 error. Now when I try to open the page I get the following error: Access denied attempting to launch a DCOM server. The server is {numbers} The user is ..

DCOM Error - Has anyone seen this DCOM error before and know possible causes? Thanks Bryan DCOM got error "Overlapped I/O operation is in progress. " and was unable to logon ..\IWAM_SINDMSPGEN01 in order to run the server: {F21BD7BE-1CF4-41F2-9C75-E3841A5...

DCOM error - Hello All; When loading Localhost page, we get an Application Server Error and when looked into the Event Viewer, we get: DCOM got error "Overlapped I/O operation is in progress. " and was unable to logon. \IWAM_Machinename in order to run ...

DCOM Error - Everytime I try to browse the Default Web site it gives me a 500 error and the event log contains a DCOM error as shown below. Why is this happening? DCOM got error "Overlapped I/O operation is in progress. " and was unable to logon .\IWAM...

DCOM error - I have a W2k server running IIS 5 that I had to replace the new boot disk on. I replaced it and restored the system & files. After the restore I can't get my Citrix web site to come up. I cannot access the IIS Admin snap- in. I am getting a DC...
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]