By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,967 Members | 815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,967 IT Pros & Developers. It's quick & easy.

Visual Studio compiles slowly, low CPU usage

P: n/a
I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution
(more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the office
(P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of the
compilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during that
time (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in our
office. And the behavior is not due to the corporate antivirus because we
turned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that we
are on a corporate LAN and that .NET needs to run more expensive security
checks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.

Anybody experienced something like this? Any clues on what could cause this?

Bruno.
Nov 15 '05 #1
Share this Question
Share on Google+
26 Replies


P: n/a
On Mon, 1 Sep 2003 21:20:35 +0200, "Bruno Jouhier [MVP]"
<bj******@club-internet.fr> wrote:
I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution
(more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the office
(P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of the
compilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during that
time (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in our
office. And the behavior is not due to the corporate antivirus because we
turned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that we
are on a corporate LAN and that .NET needs to run more expensive security
checks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.


Could be... I know it is possible to run VS.net for a group of
developpers on a server... Most likely at your workplace, the VS.net
will be running from a server (hence the 'overall CPU usage' being so
low) end thus needs to be shared with your co-workers...

Bully them untill they give up using it whenever you need it ;)

How did you perform the installation of VS.net? Was it installed
localy (if so, my answer here is not to be considered)?

--
NULL
Nov 15 '05 #2

P: n/a
I've experienced this problem when the source files have been stored on a network drive. In my case it turned out to be a slow
router and changing it with a hub solved the problem. What transfer rate are you getting from your server?

The best solution would probably be to use sourcesafe, that way all files are on your local machine and network speed is not
important.

--
Michael Culley
Nov 15 '05 #3

P: n/a
Visual Studio is installed locally and the source files are local too (we
use CVS as source code control).
So the explanation is somewhere else.

Thanks anyway for the quick reply.

Bruno

"NULL" <Th***********@hotmail.com> a écrit dans le message de
news:rp********************************@4ax.com...
On Mon, 1 Sep 2003 21:20:35 +0200, "Bruno Jouhier [MVP]"
<bj******@club-internet.fr> wrote:
I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution(more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the office(P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of thecompilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during thattime (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in ouroffice. And the behavior is not due to the corporate antivirus because we
turned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that we
are on a corporate LAN and that .NET needs to run more expensive security
checks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.


Could be... I know it is possible to run VS.net for a group of
developpers on a server... Most likely at your workplace, the VS.net
will be running from a server (hence the 'overall CPU usage' being so
low) end thus needs to be shared with your co-workers...

Bully them untill they give up using it whenever you need it ;)

How did you perform the installation of VS.net? Was it installed
localy (if so, my answer here is not to be considered)?

--
NULL

Nov 15 '05 #4

P: n/a
Visual Studio is installed locally and the source files are local too (we
use CVS as source code control).
So the explanation is somewhere else.

Thanks anyway for the quick reply.

Bruno

"Michael Culley" <mc*****@NOSPAMoptushome.com.au> a écrit dans le message de
news:ud**************@TK2MSFTNGP11.phx.gbl...
I've experienced this problem when the source files have been stored on a network drive. In my case it turned out to be a slow router and changing it with a hub solved the problem. What transfer rate are you getting from your server?
The best solution would probably be to use sourcesafe, that way all files are on your local machine and network speed is not important.

--
Michael Culley

Nov 15 '05 #5

P: n/a
Visual Studio is installed locally and the source files are local too (we
use CVS as source code control).
So the explanation is somewhere else.

Thanks anyway for the quick reply.

Bruno

"Michael A. Covington" <Mi*****@CovingtonInnovations.com> a écrit dans le
message de news:e7**************@tk2msftngp13.phx.gbl...
Are any of your files -- either the project files or components of Visual
Studio itself -- stored on a network drive on another machine?

Nov 15 '05 #6

P: n/a
Visual Studio is installed locally and the source files are local too (we
use CVS as source code control).
So the explanation is somewhere else.

Thanks anyway for the quick reply.

Bruno

"Michael Culley" <mc*****@NOSPAMoptushome.com.au> a écrit dans le message de
news:ud**************@TK2MSFTNGP11.phx.gbl...
I've experienced this problem when the source files have been stored on a network drive. In my case it turned out to be a slow router and changing it with a hub solved the problem. What transfer rate are you getting from your server?
The best solution would probably be to use sourcesafe, that way all files are on your local machine and network speed is not important.

--
Michael Culley

Nov 15 '05 #7

P: n/a
Visual Studio is installed locally and the source files are local too (we
use CVS as source code control).
So the explanation is somewhere else.

Thanks anyway for the quick reply.

Bruno

"Michael A. Covington" <Mi*****@CovingtonInnovations.com> a écrit dans le
message de news:e7**************@tk2msftngp13.phx.gbl...
Are any of your files -- either the project files or components of Visual
Studio itself -- stored on a network drive on another machine?

Nov 15 '05 #8

P: n/a
H Bruno,

Could it be because you have network shares/drives in your PATH? I've had
similar problems caused by a network share on a computer that was offline.

Regards, Bert

"Bruno Jouhier [MVP]" <bj******@club-internet.fr> wrote in message
news:eB*************@TK2MSFTNGP10.phx.gbl...
I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution
(more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the office (P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of the compilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during that time (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in our
office. And the behavior is not due to the corporate antivirus because we
turned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that we
are on a corporate LAN and that .NET needs to run more expensive security
checks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.

Anybody experienced something like this? Any clues on what could cause this?
Bruno.

Nov 15 '05 #9

P: n/a
Bruno,

Make sure your disk is being slowed down by something like a defrag, that
will slow things down.

Regards
Lee

"Bruno Jouhier [MVP]" <bj******@club-internet.fr> wrote in message
news:eB*************@TK2MSFTNGP10.phx.gbl...
I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution
(more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the office (P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of the compilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during that time (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in our
office. And the behavior is not due to the corporate antivirus because we
turned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that we
are on a corporate LAN and that .NET needs to run more expensive security
checks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.

Anybody experienced something like this? Any clues on what could cause this?
Bruno.

Nov 15 '05 #10

P: n/a
"Bruno Jouhier [MVP]" <bj******@club-internet.fr> wrote in message news:<eB*************@TK2MSFTNGP10.phx.gbl>...
I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution
(more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the office
(P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of the
compilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during that
time (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in our
office. And the behavior is not due to the corporate antivirus because we
turned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that we
are on a corporate LAN and that .NET needs to run more expensive security
checks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.

Anybody experienced something like this? Any clues on what could cause this?

Bruno.

OK so the usual suspects are absent (Anti-Virus and Network
Read/Writes) lets look a bit deeper.

1) What OS and Service Packs are you running?
2) What other processes are running in the background?
3) Have you run Performance Monitor to check CPU / Disk / LSASS.EXE
etc.
Nov 15 '05 #11

P: n/a
Check the installation:
many "company setups" install the OS on C:,
which is typically rather small, and this will get you a
fragmented swapdisk, and the system is always searching for
room to write the temporary files...

Searchpath can also be critical (especially on nonexsitant
drives <g>)

HTH

thomas

"Bruno Jouhier [MVP]" <bj******@club-internet.fr> schrieb im Newsbeitrag
news:eq**************@TK2MSFTNGP12.phx.gbl...
Visual Studio is installed locally and the source files are local too (we
use CVS as source code control).
So the explanation is somewhere else.

Thanks anyway for the quick reply.

Bruno

"NULL" <Th***********@hotmail.com> a écrit dans le message de
news:rp********************************@4ax.com...
On Mon, 1 Sep 2003 21:20:35 +0200, "Bruno Jouhier [MVP]"
<bj******@club-internet.fr> wrote:
I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution(more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the office(P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of
the
compilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during thattime (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in ouroffice. And the behavior is not due to the corporate antivirus because

weturned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that weare on a corporate LAN and that .NET needs to run more expensive securitychecks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.


Could be... I know it is possible to run VS.net for a group of
developpers on a server... Most likely at your workplace, the VS.net
will be running from a server (hence the 'overall CPU usage' being so
low) end thus needs to be shared with your co-workers...

Bully them untill they give up using it whenever you need it ;)

How did you perform the installation of VS.net? Was it installed
localy (if so, my answer here is not to be considered)?

--
NULL


Nov 15 '05 #12

P: n/a
Could you possibly have the BLASTER visus worm ?
"Bruno Jouhier [MVP]" <bj******@club-internet.fr> wrote in message
news:eB*************@TK2MSFTNGP10.phx.gbl...
I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution
(more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the office (P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of the compilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during that time (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in our
office. And the behavior is not due to the corporate antivirus because we
turned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that we
are on a corporate LAN and that .NET needs to run more expensive security
checks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.

Anybody experienced something like this? Any clues on what could cause this?
Bruno.

Nov 15 '05 #13

P: n/a
NULL <Thomas-dot-Delrue-at-Tiscali-dot-Be> wrote in message news:<9a********************************@4ax.com>. ..
On 2 Sep 2003 02:36:52 -0700, ot**********@yahoo.co.uk (Rob 'The Other
Nice Man' Kenny) wrote:
3) Have you run Performance Monitor to check CPU / Disk / LSASS.EXE
etc.


What does LSASS.EXE actualli do, what is it?

Process File: lsass or lsass.exe
Process Name: Local Security Authority Service
Description: The Windows Local Security Authority Server Process
Handles Windows Security Mechanisms

The Lsass.exe process is responsible for management of local security
authority domain authentication and Active Directory management. This
process handles authentication for both the client and the server, and
it also governs the Active Directory engine. The Lsass.exe process is
responsible for the following components:

* Local Security Authority
* Net Logon service
* Security Accounts Manager service
* LSA Server service
* Secure Sockets Layer (SSL)
* Kerberos v5 authentication protocol
* NTLM authentication protocol
Nov 15 '05 #14

P: n/a
C drive cannot be the culprit because there is only one drive (C:) and there
is plenty of room on it.
I'm going to check the searchpath. Thanks for the pointer.

Bruno.

"Thomas Ganss" <TG****@t-online.de> a écrit dans le message de
news:bj*************@news.t-online.com...
Check the installation:
many "company setups" install the OS on C:,
which is typically rather small, and this will get you a
fragmented swapdisk, and the system is always searching for
room to write the temporary files...

Searchpath can also be critical (especially on nonexsitant
drives <g>)

HTH

thomas

"Bruno Jouhier [MVP]" <bj******@club-internet.fr> schrieb im Newsbeitrag
news:eq**************@TK2MSFTNGP12.phx.gbl...
Visual Studio is installed locally and the source files are local too (we
use CVS as source code control).
So the explanation is somewhere else.

Thanks anyway for the quick reply.

Bruno

"NULL" <Th***********@hotmail.com> a écrit dans le message de
news:rp********************************@4ax.com...
On Mon, 1 Sep 2003 21:20:35 +0200, "Bruno Jouhier [MVP]"
<bj******@club-internet.fr> wrote:

>I'm currently experiencing a strange phenomenon:
>
>At my Office, Visual Studio takes a very long time to compile our solution
>(more than 1 minute for the first project).
>At home, Visual Studio compiles the same solution much faster (about 10 >seconds for the first project).
>
>My home computer is only marginally faster than the one I have at the

office
>(P4 2.53 vs. P4 2.4, same amount of RAM).
>On the slow machine, the CPU usage is very low, especially at the end of
the
>compilation phase (once the progress bar is at the end, waiting for the >"build complete" message). This low CPU phase seems to account for the >difference in overall time. There is no other process taking CPU during that
>time (the "overall" CPU usage is 0 or very close to 0).
>
>Also, we observe the same slowness on all the machines that we have
in our
>office. And the behavior is not due to the corporate antivirus

because we >turned it off.
>
>I'm puzzled (and a bit frustrated). Could this be due to the fact
that
we >are on a corporate LAN and that .NET needs to run more expensive security >checks that block on network requests. This my only hypothesis so far
>because I saw small bursts of activity in lsass.exe during the low

CPU >phase.

Could be... I know it is possible to run VS.net for a group of
developpers on a server... Most likely at your workplace, the VS.net
will be running from a server (hence the 'overall CPU usage' being so
low) end thus needs to be shared with your co-workers...

Bully them untill they give up using it whenever you need it ;)

How did you perform the installation of VS.net? Was it installed
localy (if so, my answer here is not to be considered)?

--
NULL



Nov 15 '05 #15

P: n/a
I have network shares but I don't think that they are in my PATH (but I'm
not sure). I'll check that tomorrow (at my office). Thanks for the pointer.

Bruno.

"Bert Roos" <re***@to.group> a écrit dans le message de
news:OO**************@TK2MSFTNGP11.phx.gbl...
H Bruno,

Could it be because you have network shares/drives in your PATH? I've had
similar problems caused by a network share on a computer that was offline.

Regards, Bert

"Bruno Jouhier [MVP]" <bj******@club-internet.fr> wrote in message
news:eB*************@TK2MSFTNGP10.phx.gbl...
I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the

office
(P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of

the
compilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during

that
time (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in our office. And the behavior is not due to the corporate antivirus because we turned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that we are on a corporate LAN and that .NET needs to run more expensive security checks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.

Anybody experienced something like this? Any clues on what could cause

this?

Bruno.


Nov 15 '05 #16

P: n/a
> 1) What OS and Service Packs are you running?
XP pro sp1 with all the critical patches I could get from Windows Update
(same on both machines).
2) What other processes are running in the background? SQL server is running (but idle).
3) Have you run Performance Monitor to check CPU / Disk / LSASS.EXE
etc.

Yes and I did not see any significant activity but I need to do more
research with perfmon. I did not monitor network or disk activity. Before
going too deep into monitoring, I wanted to check if anybody had experienced
something like this, and get the most obvious pointers.

So, I'll investigate the network shares in %PATH% (see other replies) and
I'll do a bit of perfmon testing if I don't find anything.

Bruno.

Nov 15 '05 #17

P: n/a
No, I had run Windows Update a few days before the attack and my machine was
protected. Also, I ran the AntiVirus after the attack and it did not find
anything. So Blaster's not the culprit.

Bruno.

"james" <no****@hypercon.net> a écrit dans le message de
news:ub**************@TK2MSFTNGP10.phx.gbl...
Could you possibly have the BLASTER visus worm ?
"Bruno Jouhier [MVP]" <bj******@club-internet.fr> wrote in message
news:eB*************@TK2MSFTNGP10.phx.gbl...
I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the

office
(P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of

the
compilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during

that
time (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in our office. And the behavior is not due to the corporate antivirus because we turned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that we are on a corporate LAN and that .NET needs to run more expensive security checks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.

Anybody experienced something like this? Any clues on what could cause

this?

Bruno.


Nov 15 '05 #18

P: n/a
Hi Bruno, Are you on a Domain at work? If so see

318738 FIX: .NET Programs Are Slow to Load When Running Under a Domain
http://support.microsoft.com/?id=318738

This is 'supposed' to be fixed, but might be worth a look. You may need to to have an ASPNet account set up according to the article..

Want to know more? Check out the MSDN Library at http://msdn.microsoft.com or the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.


--------------------
From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
Subject: Visual Studio compiles slowly, low CPU usage
Date: Mon, 1 Sep 2003 21:20:35 +0200
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <eB*************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp,microsoft .public.dotnet.vjsharp
NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.vjsharp:4386 microsoft.public.dotnet.languages.csharp:181364
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution
(more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the office
(P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of the
compilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during that
time (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in our
office. And the behavior is not due to the corporate antivirus because we
turned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that we
are on a corporate LAN and that .NET needs to run more expensive security
checks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.

Anybody experienced something like this? Any clues on what could cause this?

Bruno.

Nov 15 '05 #19

P: n/a
Hi Scot,

Yes, we are running under a domain at work, and not at home. I looked at the
link but I don't think it explains our problem:

* The problem is not with the .NET apps that we create but with Visual
Studio .NET itself.

* Visual Studio starts normally (so the problem is not at load time). The
problem shows up at the end of compilation: CPU usage is very low (2% or
less) and stays like this for more than 1 minute before completing and
moving to the next project of our solution.

* We are running Studio 2003, so the underlying framework is 1.1 rather than
1.0.

One note: our solution mixes J# and C# projects. The first project that
takes the longuest to compile is a J# project which is referenced by all our
other projects. Depending on what we are building, we have between 5 and 46
projects in the solution but the problem does not seem to be related to the
number of projects in the solution.

Also, recently we have rewritten our resource handling to use the .NET
mechanisms (resx files) rather than our old Java scheme, and it seems that
the slow compile pb has worsened at about the same time. So, it may be
related to the build of satellite assemblies.

What I can't understand is why the compiler sits almost idle for long
seconds before completing compilation. It really looks like it's waiting for
some kind of network response (from the domain controller???).

Bruno.
"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le message de
news:Sv**************@cpmsftngxa06.phx.gbl...
Hi Bruno, Are you on a Domain at work? If so see

318738 FIX: .NET Programs Are Slow to Load When Running Under a Domain
http://support.microsoft.com/?id=318738

This is 'supposed' to be fixed, but might be worth a look. You may need to to have an ASPNet account set up according to the article..
Want to know more? Check out the MSDN Library at http://msdn.microsoft.com or the Microsoft Knowledge Base at http://support.microsoft.com
Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided "AS IS", with no warranties, and confers no rights.

--------------------
From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
Subject: Visual Studio compiles slowly, low CPU usage
Date: Mon, 1 Sep 2003 21:20:35 +0200
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <eB*************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp,microsoft .public.dotnet.vjsharpNNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.vjsharp:4386 microsoft.public.dotnet.languages.csharp:181364X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

I'm currently experiencing a strange phenomenon:

At my Office, Visual Studio takes a very long time to compile our solution(more than 1 minute for the first project).
At home, Visual Studio compiles the same solution much faster (about 10
seconds for the first project).

My home computer is only marginally faster than the one I have at the office(P4 2.53 vs. P4 2.4, same amount of RAM).
On the slow machine, the CPU usage is very low, especially at the end of thecompilation phase (once the progress bar is at the end, waiting for the
"build complete" message). This low CPU phase seems to account for the
difference in overall time. There is no other process taking CPU during thattime (the "overall" CPU usage is 0 or very close to 0).

Also, we observe the same slowness on all the machines that we have in ouroffice. And the behavior is not due to the corporate antivirus because we
turned it off.

I'm puzzled (and a bit frustrated). Could this be due to the fact that we
are on a corporate LAN and that .NET needs to run more expensive security
checks that block on network requests. This my only hypothesis so far
because I saw small bursts of activity in lsass.exe during the low CPU
phase.

Anybody experienced something like this? Any clues on what could cause this?
Bruno.


Nov 15 '05 #20

P: n/a
Yes, BUT the .Net environment somehow has to see the ASP net User (Acording to that article) thats why I brought it up. Make sure that account exists and has proper
permissions...

Want to know more? Check out the MSDN Library at http://msdn.microsoft.com or the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.


--------------------
From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
References: <eB*************@TK2MSFTNGP10.phx.gbl> <Sv**************@cpmsftngxa06.phx.gbl>
Subject: Re: Visual Studio compiles slowly, low CPU usage
Date: Fri, 5 Sep 2003 22:36:14 +0200
Lines: 116
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <ub**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:182726
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi Scot,

Yes, we are running under a domain at work, and not at home. I looked at the
link but I don't think it explains our problem:

* The problem is not with the .NET apps that we create but with Visual
Studio .NET itself.

* Visual Studio starts normally (so the problem is not at load time). The
problem shows up at the end of compilation: CPU usage is very low (2% or
less) and stays like this for more than 1 minute before completing and
moving to the next project of our solution.

* We are running Studio 2003, so the underlying framework is 1.1 rather than
1.0.

One note: our solution mixes J# and C# projects. The first project that
takes the longuest to compile is a J# project which is referenced by all our
other projects. Depending on what we are building, we have between 5 and 46
projects in the solution but the problem does not seem to be related to the
number of projects in the solution.

Also, recently we have rewritten our resource handling to use the .NET
mechanisms (resx files) rather than our old Java scheme, and it seems that
the slow compile pb has worsened at about the same time. So, it may be
related to the build of satellite assemblies.

What I can't understand is why the compiler sits almost idle for long
seconds before completing compilation. It really looks like it's waiting for
some kind of network response (from the domain controller???).

Bruno.
"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le message de
news:Sv**************@cpmsftngxa06.phx.gbl...
Hi Bruno, Are you on a Domain at work? If so see

318738 FIX: .NET Programs Are Slow to Load When Running Under a Domain
http://support.microsoft.com/?id=318738

This is 'supposed' to be fixed, but might be worth a look. You may need to

to have an ASPNet account set up according to the article..

Want to know more? Check out the MSDN Library at http://msdn.microsoft.com

or the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided "AS IS", with no warranties, and confers no

rights.


--------------------
>From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>Subject: Visual Studio compiles slowly, low CPU usage
>Date: Mon, 1 Sep 2003 21:20:35 +0200
>Lines: 30
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <eB*************@TK2MSFTNGP10.phx.gbl>
>Newsgroups:microsoft.public.dotnet.languages.csharp,microsof t.public.dotnet.vjsharp >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.vjsharp:4386microsoft.public.dotnet.languages.csharp:181364 >X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>
>I'm currently experiencing a strange phenomenon:
>
>At my Office, Visual Studio takes a very long time to compile oursolution >(more than 1 minute for the first project).
>At home, Visual Studio compiles the same solution much faster (about 10
>seconds for the first project).
>
>My home computer is only marginally faster than the one I have at theoffice >(P4 2.53 vs. P4 2.4, same amount of RAM).
>On the slow machine, the CPU usage is very low, especially at the end ofthe >compilation phase (once the progress bar is at the end, waiting for the
>"build complete" message). This low CPU phase seems to account for the
>difference in overall time. There is no other process taking CPU duringthat >time (the "overall" CPU usage is 0 or very close to 0).
>
>Also, we observe the same slowness on all the machines that we have inour >office. And the behavior is not due to the corporate antivirus because we
>turned it off.
>
>I'm puzzled (and a bit frustrated). Could this be due to the fact that we
>are on a corporate LAN and that .NET needs to run more expensive security
>checks that block on network requests. This my only hypothesis so far
>because I saw small bursts of activity in lsass.exe during the low CPU
>phase.
>
>Anybody experienced something like this? Any clues on what could causethis? >
>Bruno.
>
>
>



Nov 15 '05 #21

P: n/a
Hi Scot,

The ASPNET user exists (we really need it because we are developing a web
app). So the problem must be somewhere else.

Thanks anyway for the info.

Bruno.
"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le message de
news:6D**************@cpmsftngxa06.phx.gbl...
Yes, BUT the .Net environment somehow has to see the ASP net User (Acording to that article) thats why I brought it up. Make sure that account
exists and has proper permissions...

Want to know more? Check out the MSDN Library at http://msdn.microsoft.com or the Microsoft Knowledge Base at http://support.microsoft.com
Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided "AS IS", with no warranties, and confers no rights.

--------------------
From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
References: <eB*************@TK2MSFTNGP10.phx.gbl> <Sv**************@cpmsftngxa06.phx.gbl>Subject: Re: Visual Studio compiles slowly, low CPU usage
Date: Fri, 5 Sep 2003 22:36:14 +0200
Lines: 116
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <ub**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:182726X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi Scot,

Yes, we are running under a domain at work, and not at home. I looked at thelink but I don't think it explains our problem:

* The problem is not with the .NET apps that we create but with Visual
Studio .NET itself.

* Visual Studio starts normally (so the problem is not at load time). The
problem shows up at the end of compilation: CPU usage is very low (2% or
less) and stays like this for more than 1 minute before completing and
moving to the next project of our solution.

* We are running Studio 2003, so the underlying framework is 1.1 rather than1.0.

One note: our solution mixes J# and C# projects. The first project that
takes the longuest to compile is a J# project which is referenced by all ourother projects. Depending on what we are building, we have between 5 and 46projects in the solution but the problem does not seem to be related to thenumber of projects in the solution.

Also, recently we have rewritten our resource handling to use the .NET
mechanisms (resx files) rather than our old Java scheme, and it seems thatthe slow compile pb has worsened at about the same time. So, it may be
related to the build of satellite assemblies.

What I can't understand is why the compiler sits almost idle for long
seconds before completing compilation. It really looks like it's waiting forsome kind of network response (from the domain controller???).

Bruno.
"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le message denews:Sv**************@cpmsftngxa06.phx.gbl...
Hi Bruno, Are you on a Domain at work? If so see

318738 FIX: .NET Programs Are Slow to Load When Running Under a Domain
http://support.microsoft.com/?id=318738

This is 'supposed' to be fixed, but might be worth a look. You may need to
to have an ASPNet account set up according to the article..

Want to know more? Check out the MSDN Library at
http://msdn.microsoft.comor the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided "AS IS", with no warranties, and confers no

rights.


--------------------
>From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>Subject: Visual Studio compiles slowly, low CPU usage
>Date: Mon, 1 Sep 2003 21:20:35 +0200
>Lines: 30
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <eB*************@TK2MSFTNGP10.phx.gbl>
>Newsgroups:

microsoft.public.dotnet.languages.csharp,microsof t.public.dotnet.vjsharp
>NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.vjsharp:4386

microsoft.public.dotnet.languages.csharp:181364
>X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>
>I'm currently experiencing a strange phenomenon:
>
>At my Office, Visual Studio takes a very long time to compile our

solution
>(more than 1 minute for the first project).
>At home, Visual Studio compiles the same solution much faster (about
10 >seconds for the first project).
>
>My home computer is only marginally faster than the one I have at the

office
>(P4 2.53 vs. P4 2.4, same amount of RAM).
>On the slow machine, the CPU usage is very low, especially at the end ofthe
>compilation phase (once the progress bar is at the end, waiting for
the >"build complete" message). This low CPU phase seems to account for the
>difference in overall time. There is no other process taking CPU duringthat
>time (the "overall" CPU usage is 0 or very close to 0).
>
>Also, we observe the same slowness on all the machines that we have in

our
>office. And the behavior is not due to the corporate antivirus because

we >turned it off.
>
>I'm puzzled (and a bit frustrated). Could this be due to the fact that we >are on a corporate LAN and that .NET needs to run more expensive security >checks that block on network requests. This my only hypothesis so far
>because I saw small bursts of activity in lsass.exe during the low CPU
>phase.
>
>Anybody experienced something like this? Any clues on what could cause

this?
>
>Bruno.
>
>
>



Nov 15 '05 #22

P: n/a
Could Name resolution possibley be the issue? Perhaps you could put an entry for the machine where the files are located in the HOSTS file and see if that resolves the problem.
Its a long shot but it could be that simple...

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.


--------------------
From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
References: <eB*************@TK2MSFTNGP10.phx.gbl> <Sv**************@cpmsftngxa06.phx.gbl> <ub**************@TK2MSFTNGP10.phx.gbl> <6D**************@cpmsftngxa06.phx.gbl>Subject: Re: Visual Studio compiles slowly, low CPU usage
Date: Tue, 9 Sep 2003 08:44:24 +0200
Lines: 185
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <eJ**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: f14m-9-109.d1.club-internet.fr 212.195.96.109
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:183360
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi Scot,

The ASPNET user exists (we really need it because we are developing a web
app). So the problem must be somewhere else.

Thanks anyway for the info.

Bruno.
"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le message de
news:6D**************@cpmsftngxa06.phx.gbl...
Yes, BUT the .Net environment somehow has to see the ASP net User

(Acording to that article) thats why I brought it up. Make sure that account
exists and has proper
permissions...

Want to know more? Check out the MSDN Library at http://msdn.microsoft.com

or the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided "AS IS", with no warranties, and confers no

rights.


--------------------
>From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>References: <eB*************@TK2MSFTNGP10.phx.gbl><Sv**************@cpmsftngxa06.phx.gbl> >Subject: Re: Visual Studio compiles slowly, low CPU usage
>Date: Fri, 5 Sep 2003 22:36:14 +0200
>Lines: 116
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <ub**************@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.csharp
>NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gblmicrosoft.public.dotnet.languages.csharp:182726 >X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>
>Hi Scot,
>
>Yes, we are running under a domain at work, and not at home. I looked atthe >link but I don't think it explains our problem:
>
>* The problem is not with the .NET apps that we create but with Visual
>Studio .NET itself.
>
>* Visual Studio starts normally (so the problem is not at load time). The
>problem shows up at the end of compilation: CPU usage is very low (2% or
>less) and stays like this for more than 1 minute before completing and
>moving to the next project of our solution.
>
>* We are running Studio 2003, so the underlying framework is 1.1 ratherthan >1.0.
>
>One note: our solution mixes J# and C# projects. The first project that
>takes the longuest to compile is a J# project which is referenced by allour >other projects. Depending on what we are building, we have between 5 and46 >projects in the solution but the problem does not seem to be related tothe >number of projects in the solution.
>
>Also, recently we have rewritten our resource handling to use the .NET
>mechanisms (resx files) rather than our old Java scheme, and it seemsthat >the slow compile pb has worsened at about the same time. So, it may be
>related to the build of satellite assemblies.
>
>What I can't understand is why the compiler sits almost idle for long
>seconds before completing compilation. It really looks like it's waitingfor >some kind of network response (from the domain controller???).
>
>Bruno.
>
>
>"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le messagede >news:Sv**************@cpmsftngxa06.phx.gbl...
>> Hi Bruno, Are you on a Domain at work? If so see
>>
>> 318738 FIX: .NET Programs Are Slow to Load When Running Under a Domain
>> http://support.microsoft.com/?id=318738
>>
>> This is 'supposed' to be fixed, but might be worth a look. You may needto >to have an ASPNet account set up according to the article..
>>
>> Want to know more? Check out the MSDN Library athttp://msdn.microsoft.com >or the Microsoft Knowledge Base at http://support.microsoft.com
>>
>> Scot Rose, MCSD
>> Microsoft Visual Basic Developer Support
>> Email : sc***@online.microsoft.com <Remove word online. from address>
>>
>> This posting is provided "AS IS", with no warranties, and confers no
>rights.
>>
>>
>>
>>
>> --------------------
>> >From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>> >Subject: Visual Studio compiles slowly, low CPU usage
>> >Date: Mon, 1 Sep 2003 21:20:35 +0200
>> >Lines: 30
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <eB*************@TK2MSFTNGP10.phx.gbl>
>> >Newsgroups:
>microsoft.public.dotnet.languages.csharp,microsof t.public.dotnet.vjsharp
>> >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
>> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>> >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.vjsharp:4386
>microsoft.public.dotnet.languages.csharp:181364
>> >X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>> >
>> >I'm currently experiencing a strange phenomenon:
>> >
>> >At my Office, Visual Studio takes a very long time to compile our
>solution
>> >(more than 1 minute for the first project).
>> >At home, Visual Studio compiles the same solution much faster (about10 >> >seconds for the first project).
>> >
>> >My home computer is only marginally faster than the one I have at the
>office
>> >(P4 2.53 vs. P4 2.4, same amount of RAM).
>> >On the slow machine, the CPU usage is very low, especially at the endof >the
>> >compilation phase (once the progress bar is at the end, waiting forthe >> >"build complete" message). This low CPU phase seems to account for the
>> >difference in overall time. There is no other process taking CPUduring >that
>> >time (the "overall" CPU usage is 0 or very close to 0).
>> >
>> >Also, we observe the same slowness on all the machines that we have in
>our
>> >office. And the behavior is not due to the corporate antivirus becausewe >> >turned it off.
>> >
>> >I'm puzzled (and a bit frustrated). Could this be due to the fact thatwe >> >are on a corporate LAN and that .NET needs to run more expensivesecurity >> >checks that block on network requests. This my only hypothesis so far
>> >because I saw small bursts of activity in lsass.exe during the low CPU
>> >phase.
>> >
>> >Anybody experienced something like this? Any clues on what could cause
>this?
>> >
>> >Bruno.
>> >
>> >
>> >
>>
>>
>
>
>



Nov 15 '05 #23

P: n/a
Hi Scot,

The files (Studio and source) are on the local disk.

Actually, I crossposted on microsoft.public.dotnet.vjsharp and Michael Green
(MS) suggested that I unplug the network cable.
I tried it and it fixed the problem. The results are the following:

With network cable:
First project: 110 s
Whole solution: 240 s

Without network cable:
First project: 20s
Whole solution 150 s

So, the compiler wastes 1 min 30 s if the network cable is connected. And
only the first project of the solution is affected. Strange!

This shows 2 things:

* Everything is installed locally, because I can build with the network
cable unplugged.
* VStudio is doing something strange over the network at the end of the
first project build.

Michael suggests that I run netmon to investigate what is going on through
the wire but I don't have time to investigate this right now.
I just turned my machine around so that I can easily unplug the net cable
before compiling. Problem is that the fan is a bit noisy!

Bruno.

"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le message de
news:Ek**************@cpmsftngxa06.phx.gbl...
Could Name resolution possibley be the issue? Perhaps you could put an entry for the machine where the files are located in the HOSTS file and see
if that resolves the problem. Its a long shot but it could be that simple...

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided "AS IS", with no warranties, and confers no rights.

--------------------
From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
References: <eB*************@TK2MSFTNGP10.phx.gbl> <Sv**************@cpmsftngxa06.phx.gbl>
<ub**************@TK2MSFTNGP10.phx.gbl>
<6D**************@cpmsftngxa06.phx.gbl>
Subject: Re: Visual Studio compiles slowly, low CPU usage
Date: Tue, 9 Sep 2003 08:44:24 +0200
Lines: 185
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <eJ**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: f14m-9-109.d1.club-internet.fr 212.195.96.109
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:183360X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi Scot,

The ASPNET user exists (we really need it because we are developing a web
app). So the problem must be somewhere else.

Thanks anyway for the info.

Bruno.
"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le message denews:6D**************@cpmsftngxa06.phx.gbl...
Yes, BUT the .Net environment somehow has to see the ASP net User

(Acording to that article) thats why I brought it up. Make sure that accountexists and has proper
permissions...

Want to know more? Check out the MSDN Library at http://msdn.microsoft.com
or the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided "AS IS", with no warranties, and confers no

rights.


--------------------
>From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>References: <eB*************@TK2MSFTNGP10.phx.gbl>

<Sv**************@cpmsftngxa06.phx.gbl>
>Subject: Re: Visual Studio compiles slowly, low CPU usage
>Date: Fri, 5 Sep 2003 22:36:14 +0200
>Lines: 116
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <ub**************@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.csharp
>NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.languages.csharp:182726
>X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>
>Hi Scot,
>
>Yes, we are running under a domain at work, and not at home. I looked
atthe
>link but I don't think it explains our problem:
>
>* The problem is not with the .NET apps that we create but with Visual
>Studio .NET itself.
>
>* Visual Studio starts normally (so the problem is not at load time).
The >problem shows up at the end of compilation: CPU usage is very low (2% or >less) and stays like this for more than 1 minute before completing and
>moving to the next project of our solution.
>
>* We are running Studio 2003, so the underlying framework is 1.1 ratherthan
>1.0.
>
>One note: our solution mixes J# and C# projects. The first project
that >takes the longuest to compile is a J# project which is referenced by allour
>other projects. Depending on what we are building, we have between 5
and46
>projects in the solution but the problem does not seem to be related
tothe
>number of projects in the solution.
>
>Also, recently we have rewritten our resource handling to use the .NET
>mechanisms (resx files) rather than our old Java scheme, and it seems

that
>the slow compile pb has worsened at about the same time. So, it may be
>related to the build of satellite assemblies.
>
>What I can't understand is why the compiler sits almost idle for long
>seconds before completing compilation. It really looks like it's
waitingfor
>some kind of network response (from the domain controller???).
>
>Bruno.
>
>
>"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le
messagede
>news:Sv**************@cpmsftngxa06.phx.gbl...
>> Hi Bruno, Are you on a Domain at work? If so see
>>
>> 318738 FIX: .NET Programs Are Slow to Load When Running Under a
Domain >> http://support.microsoft.com/?id=318738
>>
>> This is 'supposed' to be fixed, but might be worth a look. You may needto
>to have an ASPNet account set up according to the article..
>>
>> Want to know more? Check out the MSDN Library at

http://msdn.microsoft.com
>or the Microsoft Knowledge Base at http://support.microsoft.com
>>
>> Scot Rose, MCSD
>> Microsoft Visual Basic Developer Support
>> Email : sc***@online.microsoft.com <Remove word online. from
address> >>
>> This posting is provided "AS IS", with no warranties, and confers no
>rights.
>>
>>
>>
>>
>> --------------------
>> >From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>> >Subject: Visual Studio compiles slowly, low CPU usage
>> >Date: Mon, 1 Sep 2003 21:20:35 +0200
>> >Lines: 30
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <eB*************@TK2MSFTNGP10.phx.gbl>
>> >Newsgroups:

microsoft.public.dotnet.languages.csharp,microsof t.public.dotnet.vjsharp >> >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
>> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl >> >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.vjsharp:4386
>microsoft.public.dotnet.languages.csharp:181364
>> >X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>> >
>> >I'm currently experiencing a strange phenomenon:
>> >
>> >At my Office, Visual Studio takes a very long time to compile our
>solution
>> >(more than 1 minute for the first project).
>> >At home, Visual Studio compiles the same solution much faster (about10
>> >seconds for the first project).
>> >
>> >My home computer is only marginally faster than the one I have at
the >office
>> >(P4 2.53 vs. P4 2.4, same amount of RAM).
>> >On the slow machine, the CPU usage is very low, especially at the endof
>the
>> >compilation phase (once the progress bar is at the end, waiting for

the
>> >"build complete" message). This low CPU phase seems to account for
the >> >difference in overall time. There is no other process taking CPU

during
>that
>> >time (the "overall" CPU usage is 0 or very close to 0).
>> >
>> >Also, we observe the same slowness on all the machines that we have in >our
>> >office. And the behavior is not due to the corporate antivirus becausewe
>> >turned it off.
>> >
>> >I'm puzzled (and a bit frustrated). Could this be due to the fact
thatwe
>> >are on a corporate LAN and that .NET needs to run more expensive

security
>> >checks that block on network requests. This my only hypothesis so

far >> >because I saw small bursts of activity in lsass.exe during the low CPU >> >phase.
>> >
>> >Anybody experienced something like this? Any clues on what could cause >this?
>> >
>> >Bruno.
>> >
>> >
>> >
>>
>>
>
>
>



Nov 15 '05 #24

P: n/a
Problem could be name resolution as I mentined before... Put the IP Address of teh Web Server in the Hosts file and see what happens... Checking a Netmon trace is probably
definately the way to go to resolve this in the future.
Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.

Get Secure!
http://www.microsoft.com/security
http://www.microsoft.com/protect
--------------------
From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
References: <eB*************@TK2MSFTNGP10.phx.gbl> <Sv**************@cpmsftngxa06.phx.gbl> <ub**************@TK2MSFTNGP10.phx.gbl> <6D**************@cpmsftngxa06.phx.gbl> <eJ**************@TK2MSFTNGP11.phx.gbl> <Ek**************@cpmsftngxa06.phx.gbl>Subject: Re: Visual Studio compiles slowly, low CPU usage
Date: Thu, 11 Sep 2003 19:57:47 +0200
Lines: 289
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <em**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: f15v-1-14.d1.club-internet.fr 212.195.192.14
Path: cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.ph x.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:184163
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi Scot,

The files (Studio and source) are on the local disk.

Actually, I crossposted on microsoft.public.dotnet.vjsharp and Michael Green
(MS) suggested that I unplug the network cable.
I tried it and it fixed the problem. The results are the following:

With network cable:
First project: 110 s
Whole solution: 240 s

Without network cable:
First project: 20s
Whole solution 150 s

So, the compiler wastes 1 min 30 s if the network cable is connected. And
only the first project of the solution is affected. Strange!

This shows 2 things:

* Everything is installed locally, because I can build with the network
cable unplugged.
* VStudio is doing something strange over the network at the end of the
first project build.

Michael suggests that I run netmon to investigate what is going on through
the wire but I don't have time to investigate this right now.
I just turned my machine around so that I can easily unplug the net cable
before compiling. Problem is that the fan is a bit noisy!

Bruno.

"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le message de
news:Ek**************@cpmsftngxa06.phx.gbl...
Could Name resolution possibley be the issue? Perhaps you could put an

entry for the machine where the files are located in the HOSTS file and see
if that resolves the problem.
Its a long shot but it could be that simple...

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided "AS IS", with no warranties, and confers no

rights.


--------------------
>From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>References: <eB*************@TK2MSFTNGP10.phx.gbl><Sv**************@cpmsftngxa06.phx.gbl>
<ub**************@TK2MSFTNGP10.phx.gbl>
<6D**************@cpmsftngxa06.phx.gbl>
>Subject: Re: Visual Studio compiles slowly, low CPU usage
>Date: Tue, 9 Sep 2003 08:44:24 +0200
>Lines: 185
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <eJ**************@TK2MSFTNGP11.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.csharp
>NNTP-Posting-Host: f14m-9-109.d1.club-internet.fr 212.195.96.109
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
>Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.languages.csharp:183360 >X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>
>Hi Scot,
>
>The ASPNET user exists (we really need it because we are developing a web
>app). So the problem must be somewhere else.
>
>Thanks anyway for the info.
>
>Bruno.
>"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le messagede >news:6D**************@cpmsftngxa06.phx.gbl...
>> Yes, BUT the .Net environment somehow has to see the ASP net User
>(Acording to that article) thats why I brought it up. Make sure thataccount >exists and has proper
>> permissions...
>>
>> Want to know more? Check out the MSDN Library athttp://msdn.microsoft.com >or the Microsoft Knowledge Base at http://support.microsoft.com
>>
>> Scot Rose, MCSD
>> Microsoft Visual Basic Developer Support
>> Email : sc***@online.microsoft.com <Remove word online. from address>
>>
>> This posting is provided "AS IS", with no warranties, and confers no
>rights.
>>
>>
>>
>>
>> --------------------
>> >From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>> >References: <eB*************@TK2MSFTNGP10.phx.gbl>
><Sv**************@cpmsftngxa06.phx.gbl>
>> >Subject: Re: Visual Studio compiles slowly, low CPU usage
>> >Date: Fri, 5 Sep 2003 22:36:14 +0200
>> >Lines: 116
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <ub**************@TK2MSFTNGP10.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.languages.csharp
>> >NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
>> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>> >Xref: cpmsftngxa06.phx.gbl
>microsoft.public.dotnet.languages.csharp:182726
>> >X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>> >
>> >Hi Scot,
>> >
>> >Yes, we are running under a domain at work, and not at home. I lookedat >the
>> >link but I don't think it explains our problem:
>> >
>> >* The problem is not with the .NET apps that we create but with Visual
>> >Studio .NET itself.
>> >
>> >* Visual Studio starts normally (so the problem is not at load time).The >> >problem shows up at the end of compilation: CPU usage is very low (2%or >> >less) and stays like this for more than 1 minute before completing and
>> >moving to the next project of our solution.
>> >
>> >* We are running Studio 2003, so the underlying framework is 1.1rather >than
>> >1.0.
>> >
>> >One note: our solution mixes J# and C# projects. The first projectthat >> >takes the longuest to compile is a J# project which is referenced byall >our
>> >other projects. Depending on what we are building, we have between 5and >46
>> >projects in the solution but the problem does not seem to be relatedto >the
>> >number of projects in the solution.
>> >
>> >Also, recently we have rewritten our resource handling to use the .NET
>> >mechanisms (resx files) rather than our old Java scheme, and it seems
>that
>> >the slow compile pb has worsened at about the same time. So, it may be
>> >related to the build of satellite assemblies.
>> >
>> >What I can't understand is why the compiler sits almost idle for long
>> >seconds before completing compilation. It really looks like it'swaiting >for
>> >some kind of network response (from the domain controller???).
>> >
>> >Bruno.
>> >
>> >
>> >"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans lemessage >de
>> >news:Sv**************@cpmsftngxa06.phx.gbl...
>> >> Hi Bruno, Are you on a Domain at work? If so see
>> >>
>> >> 318738 FIX: .NET Programs Are Slow to Load When Running Under aDomain >> >> http://support.microsoft.com/?id=318738
>> >>
>> >> This is 'supposed' to be fixed, but might be worth a look. You mayneed >to
>> >to have an ASPNet account set up according to the article..
>> >>
>> >> Want to know more? Check out the MSDN Library at
>http://msdn.microsoft.com
>> >or the Microsoft Knowledge Base at http://support.microsoft.com
>> >>
>> >> Scot Rose, MCSD
>> >> Microsoft Visual Basic Developer Support
>> >> Email : sc***@online.microsoft.com <Remove word online. fromaddress> >> >>
>> >> This posting is provided "AS IS", with no warranties, and confers no
>> >rights.
>> >>
>> >>
>> >>
>> >>
>> >> --------------------
>> >> >From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>> >> >Subject: Visual Studio compiles slowly, low CPU usage
>> >> >Date: Mon, 1 Sep 2003 21:20:35 +0200
>> >> >Lines: 30
>> >> >X-Priority: 3
>> >> >X-MSMail-Priority: Normal
>> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >Message-ID: <eB*************@TK2MSFTNGP10.phx.gbl>
>> >> >Newsgroups:
>>

microsoft.public.dotnet.languages.csharp,microso ft.public.dotnet.vjsharp
>> >> >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
>> >> >Path:cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl >> >> >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.vjsharp:4386
>> >microsoft.public.dotnet.languages.csharp:181364
>> >> >X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>> >> >
>> >> >I'm currently experiencing a strange phenomenon:
>> >> >
>> >> >At my Office, Visual Studio takes a very long time to compile our
>> >solution
>> >> >(more than 1 minute for the first project).
>> >> >At home, Visual Studio compiles the same solution much faster(about >10
>> >> >seconds for the first project).
>> >> >
>> >> >My home computer is only marginally faster than the one I have atthe >> >office
>> >> >(P4 2.53 vs. P4 2.4, same amount of RAM).
>> >> >On the slow machine, the CPU usage is very low, especially at theend >of
>> >the
>> >> >compilation phase (once the progress bar is at the end, waiting for
>the
>> >> >"build complete" message). This low CPU phase seems to account forthe >> >> >difference in overall time. There is no other process taking CPU
>during
>> >that
>> >> >time (the "overall" CPU usage is 0 or very close to 0).
>> >> >
>> >> >Also, we observe the same slowness on all the machines that we havein >> >our
>> >> >office. And the behavior is not due to the corporate antivirusbecause >we
>> >> >turned it off.
>> >> >
>> >> >I'm puzzled (and a bit frustrated). Could this be due to the factthat >we
>> >> >are on a corporate LAN and that .NET needs to run more expensive
>security
>> >> >checks that block on network requests. This my only hypothesis sofar >> >> >because I saw small bursts of activity in lsass.exe during the lowCPU >> >> >phase.
>> >> >
>> >> >Anybody experienced something like this? Any clues on what couldcause >> >this?
>> >> >
>> >> >Bruno.
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>> >
>>
>>
>
>
>



Nov 15 '05 #25

P: n/a
Hi Scott,

I don't understand which Web Server you are talking about. Everything's
local: source code, dev tools but also testing/debugging environment. We
test on localhost (so each of us can test on his own machine).

The only thing that's remote is our CVS source control but we got rid of the
IDE integration and we run WinCvs on the side (and we access it by IP, not
by name).

So, do you mean that I should put "localhost" in my Hosts file? I'm a bit
lost.

Bruno.

"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le message de
news:qI**************@cpmsftngxa06.phx.gbl...
Problem could be name resolution as I mentined before... Put the IP Address of teh Web Server in the Hosts file and see what happens... Checking
a Netmon trace is probably definately the way to go to resolve this in the future.
Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided "AS IS", with no warranties, and confers no rights.
Get Secure!
http://www.microsoft.com/security
http://www.microsoft.com/protect
--------------------
From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
References: <eB*************@TK2MSFTNGP10.phx.gbl> <Sv**************@cpmsftngxa06.phx.gbl>
<ub**************@TK2MSFTNGP10.phx.gbl>
<6D**************@cpmsftngxa06.phx.gbl>

<eJ**************@TK2MSFTNGP11.phx.gbl>
<Ek**************@cpmsftngxa06.phx.gbl>Subject: Re: Visual Studio compiles slowly, low CPU usage
Date: Thu, 11 Sep 2003 19:57:47 +0200
Lines: 289
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <em**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: f15v-1-14.d1.club-internet.fr 212.195.192.14
Path: cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
..phx.gbl!TK2MSFTNGP10.phx.gblXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:184163X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi Scot,

The files (Studio and source) are on the local disk.

Actually, I crossposted on microsoft.public.dotnet.vjsharp and Michael Green(MS) suggested that I unplug the network cable.
I tried it and it fixed the problem. The results are the following:

With network cable:
First project: 110 s
Whole solution: 240 s

Without network cable:
First project: 20s
Whole solution 150 s

So, the compiler wastes 1 min 30 s if the network cable is connected. And
only the first project of the solution is affected. Strange!

This shows 2 things:

* Everything is installed locally, because I can build with the network
cable unplugged.
* VStudio is doing something strange over the network at the end of the
first project build.

Michael suggests that I run netmon to investigate what is going on throughthe wire but I don't have time to investigate this right now.
I just turned my machine around so that I can easily unplug the net cable
before compiling. Problem is that the fan is a bit noisy!

Bruno.

"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le message denews:Ek**************@cpmsftngxa06.phx.gbl...
Could Name resolution possibley be the issue? Perhaps you could put an

entry for the machine where the files are located in the HOSTS file and seeif that resolves the problem.
Its a long shot but it could be that simple...

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : sc***@online.microsoft.com <Remove word online. from address>

This posting is provided "AS IS", with no warranties, and confers no

rights.


--------------------
>From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>References: <eB*************@TK2MSFTNGP10.phx.gbl>

<Sv**************@cpmsftngxa06.phx.gbl>
<ub**************@TK2MSFTNGP10.phx.gbl>
<6D**************@cpmsftngxa06.phx.gbl>
>Subject: Re: Visual Studio compiles slowly, low CPU usage
>Date: Tue, 9 Sep 2003 08:44:24 +0200
>Lines: 185
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <eJ**************@TK2MSFTNGP11.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.csharp
>NNTP-Posting-Host: f14m-9-109.d1.club-internet.fr 212.195.96.109
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
>Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.languages.csharp:183360
>X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>
>Hi Scot,
>
>The ASPNET user exists (we really need it because we are developing a web >app). So the problem must be somewhere else.
>
>Thanks anyway for the info.
>
>Bruno.
>"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le message
de
>news:6D**************@cpmsftngxa06.phx.gbl...
>> Yes, BUT the .Net environment somehow has to see the ASP net User
>(Acording to that article) thats why I brought it up. Make sure that

account
>exists and has proper
>> permissions...
>>
>> Want to know more? Check out the MSDN Library at

http://msdn.microsoft.com
>or the Microsoft Knowledge Base at http://support.microsoft.com
>>
>> Scot Rose, MCSD
>> Microsoft Visual Basic Developer Support
>> Email : sc***@online.microsoft.com <Remove word online. from
address> >>
>> This posting is provided "AS IS", with no warranties, and confers no
>rights.
>>
>>
>>
>>
>> --------------------
>> >From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>> >References: <eB*************@TK2MSFTNGP10.phx.gbl>
><Sv**************@cpmsftngxa06.phx.gbl>
>> >Subject: Re: Visual Studio compiles slowly, low CPU usage
>> >Date: Fri, 5 Sep 2003 22:36:14 +0200
>> >Lines: 116
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <ub**************@TK2MSFTNGP10.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.languages.csharp
>> >NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
>> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl >> >Xref: cpmsftngxa06.phx.gbl
>microsoft.public.dotnet.languages.csharp:182726
>> >X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>> >
>> >Hi Scot,
>> >
>> >Yes, we are running under a domain at work, and not at home. I lookedat
>the
>> >link but I don't think it explains our problem:
>> >
>> >* The problem is not with the .NET apps that we create but with
Visual >> >Studio .NET itself.
>> >
>> >* Visual Studio starts normally (so the problem is not at load time).The
>> >problem shows up at the end of compilation: CPU usage is very low
(2%or
>> >less) and stays like this for more than 1 minute before completing
and >> >moving to the next project of our solution.
>> >
>> >* We are running Studio 2003, so the underlying framework is 1.1

rather
>than
>> >1.0.
>> >
>> >One note: our solution mixes J# and C# projects. The first project

that
>> >takes the longuest to compile is a J# project which is referenced byall
>our
>> >other projects. Depending on what we are building, we have between
5and
>46
>> >projects in the solution but the problem does not seem to be
relatedto
>the
>> >number of projects in the solution.
>> >
>> >Also, recently we have rewritten our resource handling to use the
..NET >> >mechanisms (resx files) rather than our old Java scheme, and it seems >that
>> >the slow compile pb has worsened at about the same time. So, it may be >> >related to the build of satellite assemblies.
>> >
>> >What I can't understand is why the compiler sits almost idle for long >> >seconds before completing compilation. It really looks like it's

waiting
>for
>> >some kind of network response (from the domain controller???).
>> >
>> >Bruno.
>> >
>> >
>> >"Scot Rose [MSFT]" <sc***@online.microsoft.com> a écrit dans le

message
>de
>> >news:Sv**************@cpmsftngxa06.phx.gbl...
>> >> Hi Bruno, Are you on a Domain at work? If so see
>> >>
>> >> 318738 FIX: .NET Programs Are Slow to Load When Running Under a

Domain
>> >> http://support.microsoft.com/?id=318738
>> >>
>> >> This is 'supposed' to be fixed, but might be worth a look. You mayneed
>to
>> >to have an ASPNet account set up according to the article..
>> >>
>> >> Want to know more? Check out the MSDN Library at
>http://msdn.microsoft.com
>> >or the Microsoft Knowledge Base at http://support.microsoft.com
>> >>
>> >> Scot Rose, MCSD
>> >> Microsoft Visual Basic Developer Support
>> >> Email : sc***@online.microsoft.com <Remove word online. from

address>
>> >>
>> >> This posting is provided "AS IS", with no warranties, and confers
no >> >rights.
>> >>
>> >>
>> >>
>> >>
>> >> --------------------
>> >> >From: "Bruno Jouhier [MVP]" <bj******@club-internet.fr>
>> >> >Subject: Visual Studio compiles slowly, low CPU usage
>> >> >Date: Mon, 1 Sep 2003 21:20:35 +0200
>> >> >Lines: 30
>> >> >X-Priority: 3
>> >> >X-MSMail-Priority: Normal
>> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >Message-ID: <eB*************@TK2MSFTNGP10.phx.gbl>
>> >> >Newsgroups:
>>
microsoft.public.dotnet.languages.csharp,microso ft.public.dotnet.vjsharp
>> >> >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232 >> >> >Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
>> >> >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.vjsharp:4386
>> >microsoft.public.dotnet.languages.csharp:181364
>> >> >X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>> >> >
>> >> >I'm currently experiencing a strange phenomenon:
>> >> >
>> >> >At my Office, Visual Studio takes a very long time to compile our >> >solution
>> >> >(more than 1 minute for the first project).
>> >> >At home, Visual Studio compiles the same solution much faster

(about
>10
>> >> >seconds for the first project).
>> >> >
>> >> >My home computer is only marginally faster than the one I have atthe
>> >office
>> >> >(P4 2.53 vs. P4 2.4, same amount of RAM).
>> >> >On the slow machine, the CPU usage is very low, especially at
theend
>of
>> >the
>> >> >compilation phase (once the progress bar is at the end, waiting
for >the
>> >> >"build complete" message). This low CPU phase seems to account

forthe
>> >> >difference in overall time. There is no other process taking CPU
>during
>> >that
>> >> >time (the "overall" CPU usage is 0 or very close to 0).
>> >> >
>> >> >Also, we observe the same slowness on all the machines that we
havein
>> >our
>> >> >office. And the behavior is not due to the corporate antivirus

because
>we
>> >> >turned it off.
>> >> >
>> >> >I'm puzzled (and a bit frustrated). Could this be due to the
factthat
>we
>> >> >are on a corporate LAN and that .NET needs to run more expensive
>security
>> >> >checks that block on network requests. This my only hypothesis
sofar
>> >> >because I saw small bursts of activity in lsass.exe during the
lowCPU
>> >> >phase.
>> >> >
>> >> >Anybody experienced something like this? Any clues on what could

cause
>> >this?
>> >> >
>> >> >Bruno.
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>> >
>>
>>
>
>
>



Nov 15 '05 #26

P: n/a
> Everything's
local: source code, dev tools but also testing/debugging environment. We
test on localhost (so each of us can test on his own machine).


Who knows what evil lurks in the heart of the windows kernel, or deep in the
bowels of the framework? Could be any name.

Chris
Nov 15 '05 #27

This discussion thread is closed

Replies have been disabled for this discussion.