Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Performance / July 2004

Tip: Looking for answers? Try searching our database.

MSCORWKS loaded instead of MSCORSVR on MP-Machine

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Karlsson - 30 Apr 2004 09:35 GMT
Hello,

I've deployed a service hosting some classes for remoting. It's a
NT-Service and it runs on a dual-processor win2003 server.

Using the Process explorer It's quite obvious that the runtime loads the
MSCORWKS instead of the MSCORSVR. Shouldn't the runtime load the
server-version on a multi-cpu machine?

Please don't tell me to use the COMPLUS_BUILDFLAVOR directive since it's
not supported!

I'd like a 100% supported and perfered way of getting the server-runtime
going. And I dont want to create my own host using unmanaged code
eather!

Please advice, I've read alot regarding this on usenet but I haven't
seen a good solution yet

Sincerely,
Daniel Karlsson
"Chris Lyon [MSFT]" - 30 Apr 2004 18:56 GMT
Hi Daniel

No, there is no supported way with v1.0 or v1.1 to specify server GC mode without an unmanaged host.

With Whidbey (v2.0) and v1.1 SP1 (due out this summer) there will be the ability to specify the gc mode in the application's config file.

Hope that helps
-Chris

--------------------
>From:     Daniel Karlsson <daniel.karlsson@n0sp4m.digidoc.com>
>X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
[quoted text clipped - 32 lines]
>Sincerely,
>Daniel Karlsson

Signature

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.

Josh - 01 May 2004 02:32 GMT
This article might help you out a bit:

http://www.codeproject.com/useritems/TCPRemotingHostServerGC.asp

> Hi Daniel
>
[quoted text clipped - 18 lines]
> >Lines: 1
> >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13
.phx.gbl
> >Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.performance:7511
> >X-Tomcat-NG: microsoft.public.dotnet.framework.performance
[quoted text clipped - 20 lines]
> >Sincerely,
> >Daniel Karlsson

originated.
Daniel Karlsson - 01 May 2004 17:02 GMT
First of all, thanks for your quick and accurate answer!

Now, is there any info about SP1 and the contents of it? Perhaps a
beta-program? I'm a MSDN-universal subscriber

Sincerely,
Daniel Karlsson
Vikram - 01 May 2004 19:31 GMT
Ya.
Even I am curious. Is there some info on what SP1 will fix ?

Vikram

> First of all, thanks for your quick and accurate answer!
>
[quoted text clipped - 3 lines]
> Sincerely,
> Daniel Karlsson
Matt Davey - 01 May 2004 23:27 GMT
1.1 and .NET 2.0 will allow the GC to be specified via a config setting,
which is not currently possible.  Example of the 1.0/1.1 bug would be
running a server .NET app on a 16 CPU Windows DataCenter OS.  The WKS GC
would be used today, whereas in reality the SVR GC should be selected

Later
http://weblogs.asp.net/mdavey/

> Ya.
> Even I am curious. Is there some info on what SP1 will fix ?
[quoted text clipped - 8 lines]
> > Sincerely,
> > Daniel Karlsson
"Chris Lyon [MSFT]" - 03 May 2004 18:18 GMT
Hi Matt

This behaviour is actually *by design*, not a bug.  v2.0 and v1.1 SP1 will not "fix" this bug, rather add the functionality you described below. The only supported way to specify
Server GC is by hosting the runtime.

If you could point me to any official documentation that says Server GC should be automatically selected on MP machines, I'll make sure to have it changed.

Thanks!
-Chris

--------------------
>From: "Matt Davey" <Matt.Davey@finetixDOTcom>
>References: <VqnIMytLEHA.3900@cpmsftngxa10.phx.gbl> <u86HzW5LEHA.2584@TK2MSFTNGP12.phx.gbl> <#kMg8p6LEHA.556@TK2MSFTNGP10.phx.gbl>
[quoted text clipped - 32 lines]
>> > Sincerely,
>> > Daniel Karlsson

Signature

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.

Matt Davey - 03 May 2004 19:05 GMT
By bug I mean, I view it as a bug :)  Sorry for the confusion, but it is
kinda mad if U run a .NET windows service on a 16 CPU machines, that the WKS
GC is used and not the SVR GC

Later

> Hi Matt
>
> This behaviour is actually *by design*, not a bug.  v2.0 and v1.1 SP1 will not "fix" this bug, rather add the functionality you described below. The
only supported way to specify
> Server GC is by hosting the runtime.
>
> If you could point me to any official documentation that says Server GC should be automatically selected on MP machines, I'll make sure to have it
changed.

> Thanks!
> -Chris
>
> --------------------
> >From: "Matt Davey" <Matt.Davey@finetixDOTcom>
> >References: <VqnIMytLEHA.3900@cpmsftngxa10.phx.gbl> <u86HzW5LEHA.2584@TK2MSFTNGP12.phx.gbl>
<#kMg8p6LEHA.556@TK2MSFTNGP10.phx.gbl>
> >Subject: Re: MSCORWKS loaded instead of MSCORSVR on MP-Machine
> >Date: Sat, 1 May 2004 23:27:09 +0100
[quoted text clipped - 7 lines]
> >NNTP-Posting-Host: spc1-hers1-3-0-cust151.lond.broadband.ntl.com 80.0.63.151
> >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
.phx.gbl
> >Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.performance:7523
> >X-Tomcat-NG: microsoft.public.dotnet.framework.performance
[quoted text clipped - 19 lines]
> >> > Sincerely,
> >> > Daniel Karlsson

originated.
Ice - 04 May 2004 15:29 GMT
what do you mean by "its not supported"?

ice
> Hello,
>
[quoted text clipped - 17 lines]
> Sincerely,
> Daniel Karlsson
Daniel Karlsson - 05 May 2004 07:29 GMT
I've read that the COMPLUS_BUILDFLAVOR is a unsupported way of getting
the server-runtime and I refuse to use it because of that =P

Since our production system is a multi-server webfarm that is
mission-critical for our customers I can't rely on unsupported features!
Ice - 06 May 2004 02:55 GMT
So in essence you are saying that running the server gc is unsupported?
Bottomline is that it loads the proper assembly - I think MSFT doesn't want
that to be the way we accomplish it, but it works.

And yes, I do have a mission-critical app :)

ice
> I've read that the COMPLUS_BUILDFLAVOR is a unsupported way of getting
> the server-runtime and I refuse to use it because of that =P
>
> Since our production system is a multi-server webfarm that is
> mission-critical for our customers I can't rely on unsupported features!
"Chris Lyon [MSFT]" - 14 May 2004 18:49 GMT
Hi Ice

Running Server GC is indeed a supported scenario, as long as it's done via supported means  (by not supported, I mean, the behaviour of complus_buildflavor is not
guaranteed to remain constant between versions of the runtime, nor will MS support issue a fix for bugs in server GC specified via that setting).

The only way Microsoft-supported way to specify Server GC with v1.0 and v1.1 is by hosting the runtime (see http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/dndotnet/html/dotnetperftechs.asp)

If you have a mission-critical application that you feel requires Server GC, you will have to host the runtime.  As I said earlier, this behaviour will change in v2.0 and v1.1 SP1.

Hope that helps
-Chris

--------------------
>From: "Ice" <ice@nospam.com>
>References: <OKrCGReMEHA.2508@TK2MSFTNGP10.phx.gbl> <u4UhZpmMEHA.2500@TK2MSFTNGP12.phx.gbl>
[quoted text clipped - 24 lines]
>> Since our production system is a multi-server webfarm that is
>> mission-critical for our customers I can't rely on unsupported features!

Signature

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.

Ice - 17 May 2004 15:07 GMT
Quite understood.  I just don't know how else I could do this when my
component are hosted in COM+ i.e. dllhost.  Any suggestions?

If I don't it this way, then there is no way to get the behavior I'm looking
for.

ice
> Hi Ice
>
> Running Server GC is indeed a supported scenario, as long as it's done via supported means  (by not supported, I mean, the behaviour of
complus_buildflavor is not
> guaranteed to remain constant between versions of the runtime, nor will MS support issue a fix for bugs in server GC specified via that setting).
>
> The only way Microsoft-supported way to specify Server GC with v1.0 and v1.1 is by hosting the runtime (see
http://msdn.microsoft.com/library/default.asp?url=/library/en-
> us/dndotnet/html/dotnetperftechs.asp)
>
> If you have a mission-critical application that you feel requires Server GC, you will have to host the runtime.  As I said earlier, this behaviour
will change in v2.0 and v1.1 SP1.

> Hope that helps
> -Chris
[quoted text clipped - 13 lines]
> >NNTP-Posting-Host: 208.28.230.35
> >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
> >Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.performance:7556
> >X-Tomcat-NG: microsoft.public.dotnet.framework.performance
[quoted text clipped - 11 lines]
> >> Since our production system is a multi-server webfarm that is
> >> mission-critical for our customers I can't rely on unsupported features!

originated.
Mike Blake-Knox - 22 Jul 2004 15:17 GMT
> The only way Microsoft-supported way to specify Server GC with v1.0 and v1.1 is by hosting the runtime (see
> http://msdn.microsoft.com/library/default.asp?url=/library/en-
> us/dndotnet/html/dotnetperftechs.asp)

Did you really mean to say that using the Garbage Collection Mode application property in the .NET Framework
Configuration .msc isn't supported? Or that it doesn't work?

Thanks

Mike
"Chris Lyon [MSFT]" - 23 Jul 2004 18:11 GMT
Hi Mike

In the configuration .msc, you can specify whether the GC is to use Concurrent GC or non-concurrent (the default).   Server GC can only be specified by hosting.

Concurrent GC does full (Generation 2) collections on a  seperate thread without blocking the other GC thread (for mark phase).  This is useful for GUI apps, since it means a
more responsive GC.  There are a few caveats to Concurrent:
-it only works on a multi-proc machine
-it is disabled if server GC is specified (through hosting)

-Chris

--------------------
>Date: Thu, 22 Jul 2004 10:17:53 EDT
>Mime-Version: 1.0
[quoted text clipped - 6 lines]
>Reply-To: mikebkdont@spamintrex.net
>References: <OKrCGReMEHA.2508@TK2MSFTNGP10.phx.gbl> <u4UhZpmMEHA.2500@TK2MSFTNGP12.phx.gbl> <ueHTF1wMEHA.1192@TK2MSFTNGP11.phx.gbl>
<vubBHvdOEHA.2608@cpmsftngxa10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.performance
>NNTP-Posting-Host: 65.194.244.137
[quoted text clipped - 13 lines]
>
>Mike

Signature

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.