473,837 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual Studio compiles slowly, low CPU usage

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
26 10898
On Mon, 1 Sep 2003 21:20:35 +0200, "Bruno Jouhier [MVP]"
<bj******@clu b-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
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
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.c om...
On Mon, 1 Sep 2003 21:20:35 +0200, "Bruno Jouhier [MVP]"
<bj******@clu b-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
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*****@NOSPAM optushome.com.a u> a écrit dans le message de
news:ud******** ******@TK2MSFTN GP11.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
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*****@Coving tonInnovations. com> a écrit dans le
message de news:e7******** ******@tk2msftn gp13.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
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*****@NOSPAM optushome.com.a u> a écrit dans le message de
news:ud******** ******@TK2MSFTN GP11.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
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*****@Coving tonInnovations. com> a écrit dans le
message de news:e7******** ******@tk2msftn gp13.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
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******@clu b-internet.fr> wrote in message
news:eB******** *****@TK2MSFTNG P10.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
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******@clu b-internet.fr> wrote in message
news:eB******** *****@TK2MSFTNG P10.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

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

Similar topics

2
4488
by: Ed From NY | last post by:
I have a combobox that is loaded with last name from a table. I want to click on the persons last name, and have all the ADO.NET bound textboxes on a form load with the clicked persons data. I can do this rather easily in Access. How can i do this in VB.NET/ADO.NET, I have manually bound the textboxes on the form, the form uses a dataAdapter and dataset. I am stuck trying to get this to work. The underlying table has no ID's, it's...
0
1332
by: Bruno Jouhier [MVP] | last post by:
Last september, I posted a message about abnormal compilation times in Visual Studio .NET. I got some help from a nice guy from Sweden, who had the same problem and saw my post on the newsgroup. With his help, I ended up opening a support incident to MS and we got our issue resolved. So, I'm posting the workaround that MS gave us because it might interest people who have a setup like ours and who may be experiencing the same kind of...
2
1106
by: bholland | last post by:
I have an ASP.NET 2.0 project that has known bad code: public page_load(object sender, EventArgs e) { foorbar(); } There is no reference to foobar() ANYWHERE. I do a build in Visual Studio and it compiles.
7
4954
by: yonatnl | last post by:
why In every time I pressing Ctrl + Shift + B, Visual Studio Compiles The solution? I Did not changed a thing in the Code. It was Ok 2 days a Go... and After getting Latest Version from the source safe The .. it compile everything each Time I press Ctrl Shift B
0
9695
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10902
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10583
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7824
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7013
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5680
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4481
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3128
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.