473,587 Members | 2,489 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 16 '05 #1
10 2354
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******@hotma il.com> wrote in message
news:OT******** ******@TK2MSFTN GP15.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 16 '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******@hotma il.com> wrote in message
news:OT******** ******@TK2MSFTN GP15.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 16 '05 #3
The two mode of GC are 'Concurrent' and 'Preemptive' (also called serial).
There are two run-time versions "server" and "workstatio n".
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******@hotma il.com> wrote in message
news:OT******** ******@TK2MSFTN GP15.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 16 '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

<configuratio n>
<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******** ******@TK2MSFTN GP11.phx.gbl... The two mode of GC are 'Concurrent' and 'Preemptive' (also called serial).
There are two run-time versions "server" and "workstatio n".
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******@hotma il.com> wrote in message
news:OT******** ******@TK2MSFTN GP15.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 16 '05 #5

"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:u3******** ******@TK2MSFTN GP14.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

<configuratio n>
<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 16 '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 <configuratio n> node. What am I missing? Thanks!

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


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

"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:u3******** ******@TK2MSFTN GP14.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

<configuratio n>
<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 16 '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******** ******@TK2MSFTN GP15.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******@hotma il.com> wrote in message
news:OT******** ******@TK2MSFTN GP15.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 16 '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******@hotma il.com> wrote in message
news:uP******** ******@TK2MSFTN GP14.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 <configuratio n> node. What am I missing? Thanks!

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


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

"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:u3******** ******@TK2MSFTN GP14.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
>
> <configuratio n>
> <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 16 '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******@hotma il.com> wrote in message
news:uu******** ******@TK2MSFTN GP14.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******** ******@TK2MSFTN GP15.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******@hotma il.com> wrote in message
news:OT******** ******@TK2MSFTN GP15.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 16 '05 #10

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

Similar topics

10
3464
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 server, etc) or just a workstation (if it's not a workstation, then it's a server). My app must verifies that for security reasons. It should work...
10
1454
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 want to make sure it's using server gs mode. Thank you for any comment or advice. -zeng
10
1453
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 and none have worked. I have XP on my workstation and two servers that run server 2003. I have sql server dev edition on all 3, but only VS.NET on...
1
2882
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 local user on the workstation is also defined with same name and password on the server (and only in the Users group on the server) Server is Windows...
1
3686
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 quickly becoming more and more urgent. I've tried the code below using the server's local Administrator user name and password. This gets me...
1
2112
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 connection String (VB.NET): Dim workstation As String = System.Environment.GetEnvironmentVariable("computername") connectionString = "workstation id="""...
1
3587
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 local Administrators group on the server Workstation is on the same domain Logged into the workstation as the same domain user, which is also in the...
5
6674
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 into server as a domain user that is in the local Administrators group on the server Workstation is on the same domain Logged into the workstation as...
0
1506
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 operations with a server crash, the clients go into a disconnected state and wait for the server to come back up. Once the server is up the clients...
0
7923
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7852
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.