Groups | Blog | Home
all groups > dotnet web services > february 2007 >

dotnet web services : Web Service process ID?


Asaf
2/24/2007 2:17:10 PM
Hi,

I have a web service that run in several instances to do a large process.
What I would like to do is to know the process ID of each web service
instance and the ability to terminate the work of this web service instance
by the process ID from for example an ASPX page.

Is there a way to do this?

Thanks in advanced,
Asaf
Laurent Bugnion [MVP]
2/25/2007 12:03:08 AM
Hi,

[quoted text, click to view]

Web services do not run as processes. They run in AppDomains inside the
ASPNET process (on Windows XP) or the w3wp process (on WinServer 2003)

Restarting that process would be a rather bad idea, since that would
terminate all the other web applications and web services running on
that machine.

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
stcheng NO[at]SPAM online.microsoft.com
2/26/2007 1:40:21 AM
Hello Asaf,

As you mentioned "I have a web service that run in several instances to do
a large process", is the several instances here means you have multiple
client applications that call the webservice or you've host the webservice
in multiple IIS virtual directory(and different application pool)?

As Laurent has said, if you have only one IIS virtual directory that host
your server-side webservice(not use web garden), the IIS will start a host
the webservice in a .NET managed AppDomain which is inside a certain IIS
worker process(aspnet_wp.exe for IIS5 and w3wp.exe for IIS6). Also,
multiple applications(appdomains) may share the same worker process
according to the process isolation model(application pool) setting. And
for multiple client application which simultaneous call the same
server-side webservice, each webservice call will be processed by an
individual worker thread in the webservice application(appdomain), no
separate service instance/process will be launched. Is the worker thread
here the unit you want to control?

Please feel free to let me know your detailed scenario or if there is
anything we missed here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



AddThis Social Bookmark Button