473,385 Members | 1,712 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,385 software developers and data experts.

server gs vs workstation gs


I just realized that there are 2 modes for garbage collection modes: server
gs and workstation gs. Would someone know how I can go about changing the
mode for my web application written in C#? I want to make sure it's using
server gs mode. Thank you for any comment or advice.

-zeng
Nov 19 '05 #1
10 1441
Zeng:
Take a look at:
http://odetocode.com/Blogs/scott/arc...07/15/323.aspx

You'll see some information about how to figure out which your web server is
currently using as well as some info about how to swtich it.

Hope this helps
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Zeng" <Ze******@hotmail.com> wrote in message
news:OT**************@TK2MSFTNGP15.phx.gbl...

I just realized that there are 2 modes for garbage collection modes: server gs and workstation gs. Would someone know how I can go about changing the
mode for my web application written in C#? I want to make sure it's using
server gs mode. Thank you for any comment or advice.

-zeng

Nov 19 '05 #2
Zeng,
In addition to the other comments.

The following site provides some further info on the Server GC verses the
Workstation GC.

http://blogs.msdn.com/clyon/archive/...10/228104.aspx

http://blogs.msdn.com/clyon/archive/...08/226981.aspx

Hope this helps
Jay

"Zeng" <Ze******@hotmail.com> wrote in message
news:OT**************@TK2MSFTNGP15.phx.gbl...

I just realized that there are 2 modes for garbage collection modes:
server
gs and workstation gs. Would someone know how I can go about changing the
mode for my web application written in C#? I want to make sure it's using
server gs mode. Thank you for any comment or advice.

-zeng

Nov 19 '05 #3
The two mode of GC are 'Concurrent' and 'Preemptive' (also called serial).
There are two run-time versions "server" and "workstation".
The server version can only be loaded when hosted (v1.x) and only uses the
"preemptive GC" mode.
The workstation version of the runtime is loaded per default on both single
and multi-proc. machines, the default GC mode being 'preemptive'.
To enable 'Concurent GC' on multi-proc machines for the workstation version,
you need to add:

<RUNTIME>
<GCCONCURRENT enabled="true" />
</RUNTIME>

To your config file.

Willy.

"Zeng" <Ze******@hotmail.com> wrote in message
news:OT**************@TK2MSFTNGP15.phx.gbl...

I just realized that there are 2 modes for garbage collection modes:
server
gs and workstation gs. Would someone know how I can go about changing the
mode for my web application written in C#? I want to make sure it's using
server gs mode. Thank you for any comment or advice.

-zeng

Nov 19 '05 #4
Willy,
The server version can only be loaded when hosted (v1.x) and only uses the
"preemptive GC" mode. The server version can be loaded in V1.1 SP1 via the app.config

<configuration>
<runtime>
<gcServer enabled="true" />
</runtime>
</configuration>

http://blogs.msdn.com/clyon/archive/...08/226981.aspx

Hope this helps
Jay

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl... The two mode of GC are 'Concurrent' and 'Preemptive' (also called serial).
There are two run-time versions "server" and "workstation".
The server version can only be loaded when hosted (v1.x) and only uses the
"preemptive GC" mode.
The workstation version of the runtime is loaded per default on both
single and multi-proc. machines, the default GC mode being 'preemptive'.
To enable 'Concurent GC' on multi-proc machines for the workstation
version, you need to add:

<RUNTIME>
<GCCONCURRENT enabled="true" />
</RUNTIME>

To your config file.

Willy.

"Zeng" <Ze******@hotmail.com> wrote in message
news:OT**************@TK2MSFTNGP15.phx.gbl...

I just realized that there are 2 modes for garbage collection modes:
server
gs and workstation gs. Would someone know how I can go about changing
the
mode for my web application written in C#? I want to make sure it's
using
server gs mode. Thank you for any comment or advice.

-zeng


Nov 19 '05 #5

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:u3**************@TK2MSFTNGP14.phx.gbl...
Willy,
The server version can only be loaded when hosted (v1.x) and only uses
the "preemptive GC" mode.

The server version can be loaded in V1.1 SP1 via the app.config

<configuration>
<runtime>
<gcServer enabled="true" />
</runtime>
</configuration>

http://blogs.msdn.com/clyon/archive/...08/226981.aspx

Hope this helps
Jay


Absolutely right Jay, I always forget about v1.1 SP1, I wonder why!

Willy.
Nov 19 '05 #6
I added this node parallel to <system.web> node in my web.config of the
application and it gave me error (parsing error), both <system.web> and
<runtime> are under <configuration> node. What am I missing? Thanks!

<RUNTIME>
<GCSERVER enabled="true" />
</RUNTIME>


"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:u3**************@TK2MSFTNGP14.phx.gbl...
Willy,
The server version can only be loaded when hosted (v1.x) and only uses
the "preemptive GC" mode.

The server version can be loaded in V1.1 SP1 via the app.config

<configuration>
<runtime>
<gcServer enabled="true" />
</runtime>
</configuration>

http://blogs.msdn.com/clyon/archive/...08/226981.aspx

Hope this helps
Jay


Absolutely right Jay, I always forget about v1.1 SP1, I wonder why!

Willy.

Nov 19 '05 #7
I'm running window 2000 server, I don't have the command tasklist that was
mentioned in the article, is there anything else I can do to get find out
which .dll an executable is loading? Thanks!

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:uV**************@TK2MSFTNGP15.phx.gbl...
Zeng:
Take a look at:
http://odetocode.com/Blogs/scott/arc...07/15/323.aspx

You'll see some information about how to figure out which your web server is currently using as well as some info about how to swtich it.

Hope this helps
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Zeng" <Ze******@hotmail.com> wrote in message
news:OT**************@TK2MSFTNGP15.phx.gbl...

I just realized that there are 2 modes for garbage collection modes:

server
gs and workstation gs. Would someone know how I can go about changing the mode for my web application written in C#? I want to make sure it's using server gs mode. Thank you for any comment or advice.

-zeng


Nov 19 '05 #8
Zeng,
Be certain to get the case correct.

Also be certain to read:

http://blogs.msdn.com/clyon/archive/...10/228104.aspx

Specifically the second paragraph:

<quote>
If the server OS is running on a single-proc machine then the runtime will
have to load the Workstation GC, since Server GC doesn't work on a single
proc, so we're down to just the multi-proc issue.
</quote>

Further I don't believe the setting is needed under ASP.NET, as ASP.NET is a
hosted environment that already automatically loads the server GC if
allowed.

Chris Lyon's Weblog (http://blogs.msdn.com/clyon/) has a number of useful
entries on the GC:

http://blogs.msdn.com/clyon/category/7091.aspx

Hope this helps
Jay

"Zeng" <Ze******@hotmail.com> wrote in message
news:uP**************@TK2MSFTNGP14.phx.gbl...
I added this node parallel to <system.web> node in my web.config of the
application and it gave me error (parsing error), both <system.web> and
<runtime> are under <configuration> node. What am I missing? Thanks!

<RUNTIME>
<GCSERVER enabled="true" />
</RUNTIME>


"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:u3**************@TK2MSFTNGP14.phx.gbl...
> Willy,
>> The server version can only be loaded when hosted (v1.x) and only uses
>> the "preemptive GC" mode.
> The server version can be loaded in V1.1 SP1 via the app.config
>
> <configuration>
> <runtime>
> <gcServer enabled="true" />
> </runtime>
> </configuration>
>
> http://blogs.msdn.com/clyon/archive/...08/226981.aspx
>
> Hope this helps
> Jay
>


Absolutely right Jay, I always forget about v1.1 SP1, I wonder why!

Willy.


Nov 19 '05 #9
Hello,

you could use the Process Explorer from Sysinternals (www.sysinternals.com).
Awesome tool!

Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)
"Zeng" <Ze******@hotmail.com> wrote in message
news:uu**************@TK2MSFTNGP14.phx.gbl...
I'm running window 2000 server, I don't have the command tasklist that was
mentioned in the article, is there anything else I can do to get find out
which .dll an executable is loading? Thanks!

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:uV**************@TK2MSFTNGP15.phx.gbl...
Zeng:
Take a look at:
http://odetocode.com/Blogs/scott/arc...07/15/323.aspx

You'll see some information about how to figure out which your web server
is
currently using as well as some info about how to swtich it.

Hope this helps
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Zeng" <Ze******@hotmail.com> wrote in message
news:OT**************@TK2MSFTNGP15.phx.gbl...

I just realized that there are 2 modes for garbage collection modes:

server
gs and workstation gs. Would someone know how I can go about changing

the mode for my web application written in C#? I want to make sure it's using server gs mode. Thank you for any comment or advice.

-zeng



Nov 19 '05 #10
This setting is not relevant for asp.net.
The worker process hosting the CLR runs in 'server' mode if on multi-cpu
box.

Willy.

"Zeng" <Ze******@hotmail.com> wrote in message
news:uP**************@TK2MSFTNGP14.phx.gbl...
I added this node parallel to <system.web> node in my web.config of the
application and it gave me error (parsing error), both <system.web> and
<runtime> are under <configuration> node. What am I missing? Thanks!

<RUNTIME>
<GCSERVER enabled="true" />
</RUNTIME>

This setting is not relevant for asp.net.
The worker process hosting the CLR runs in 'server' mode if on multi-cpu
box.

Willy.
Nov 19 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Rich | last post by:
Hello, I would like to turn on/invoke a VB6 app which resides on the server/folder where IIS is running from an ASP page. As for security, this would be all happening within an intranet with...
10
by: ThunderMusic | last post by:
Hi, How can I get if the Windows running is a server version? Is there a property somewhere that can tell me if the Windows version is a server edition (including server, advanced server, web...
10
by: Zeng | last post by:
I just realized that there are 2 modes for garbage collection modes: server gs and workstation gs. Would someone know how I can go about changing the mode for my web application written in C#? I...
10
by: Roy | last post by:
Judging from the sheer number of posts on this topic, I'm sensing this is a fairly common problem. Only problem is, I've tried just about every recommendation in all the posts I've found thus far...
1
by: lecnac | last post by:
Here's some details: Server and workstation both in the same workgroup Logged into server as local Administrator Logged into workstation as a local user that is only in the Users group The...
1
by: lecnac | last post by:
Sorry for the repost. I must have done something wrong when I tried to post my reply (I can't seem to find it). Anyway, I'd really appreciate any help that anyone could provide. My issue is...
1
by: kito | last post by:
Hi, I have a problem, when I want to access to my SQL Server Express database from my ASP.NET application. My workstation ID is KITOLAP-HP My username is user01 Now I built the following...
1
by: gnusmsa | last post by:
ASP.NET 2.0 (C#) application Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged into server as a domain user that is in the...
5
by: lmttag | last post by:
ASP.NET 2.0 (C#) application Intranet application (not on the Internet) Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged...
0
by: 85ssp | last post by:
I am creating a small server client program that is meant for up to 70 connections from 70 different computers on a network. Everything in the program functions correctly except when testing...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.