Visual Studio编译速度慢,CPU使用率低 [英] Visual Studio compiles slowly, low CPU usage

查看:409
本文介绍了Visual Studio编译速度慢,CPU使用率低的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在经历一个奇怪的现象:


在我的办公室,Visual Studio需要很长时间来编译我们的解决方案

(更多第一个项目超过1分钟。

在家中,Visual Studio可以更快地编译相同的解决方案(第一个项目大约10

秒)。


我的家用电脑只比我在办公室的电脑快一点

(P4 2.53对P4 2.4,相同的RAM)。

在慢速机器上,CPU使用率非常低,特别是在

编译阶段结束时(一旦进度条结束,等待

构建完成消息)。这个低CPU阶段似乎占了整个时间内的差额b / b
。在

时间内没有其他进程占用CPU(整体CPU使用率为0或非常接近0)。


此外,我们在我们的

办公室的所有机器上观察同样的缓慢。而且这种行为不是由于公司的防病毒软件,因为我们将它们关闭了。


我很困惑(而且有点沮丧)。这可能是因为我们

是在公司局域网上,并且.NET需要运行更昂贵的安全性

检查阻止网络请求。这是我迄今为止唯一的假设

,因为我在低CPU期间看到lsass.exe中的小爆发活动

阶段。


有人经历过这样的事吗?关于什么可能导致这种情况的任何线索?


布鲁诺。

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.

推荐答案

2003年9月1日星期一21 :20:35 +0200,Bruno Jouhier [MVP]"

< bj ****** @ club-internet.fr>写道:
On Mon, 1 Sep 2003 21:20:35 +0200, "Bruno Jouhier [MVP]"
<bj******@club-internet.fr> wrote:
我目前正在经历一个奇怪的现象:

在我的办公室,Visual Studio需要很长时间才能编译我们的解决方案(第一个项目超过1分钟)。
在家中,Visual Studio可以更快地编译相同的解决方案(第一个项目大约10
秒)。

我的家用电脑只比我在办公室的电脑略快(P4 2.53与P4 2.4相同,RAM相同)。
在慢速机器上,CPU使用率非常低,特别是在
编译阶段的结束(一旦进度条结束,等待
构建完成消息)。这个低CPU阶段似乎解释了总体时间的差异。在那段时间内没有其他进程占用CPU(整体CPU使用率为0或非常接近0)。

此外,我们在所有机器上观察到同样的缓慢我们在办公室里有。而且这种行为不是由于公司的防病毒软件,因为我们将其关闭了。

我很困惑(而且有点沮丧)。这可能是因为我们
在企业局域网上并且.NET需要运行更昂贵的安全性检查来阻止网络请求。这是我迄今为止唯一的假设因为我在低CPU阶段看到lsass.exe中的小爆发活动。
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.




可能是。 ..我知道可以在服务器上为一组

开发人员运行VS.net ...最有可能在你的工作场所,VS.net

将从服务器运行(因此''整体CPU使用''因此如此低价b)b)因此需要与你的同事共享......


欺负他们,直到你需要时他们放弃使用它;)


你是如何安装VS.net的?它是否安装了

localy(如果是这样,我的回答不在此考虑)?


-

NULL



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


当源文件存储在网络驱动器上时,我遇到了这个问题。在我的情况下,它结果是一个缓慢的

路由器,并通过集线器更改它解决了问题。您从服务器获得的传输速率是多少?

最好的解决方案可能是使用sourcesafe,这样所有文件都在本地计算机上并且网络速度不高

重要。


-

Michael Culley
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


Visual Studio在本地安装并且源文件也是本地的(我们

使用CVS作为源代码控制)。

因此解释在其他地方。


非常感谢您的快速回复。


Bruno


" NULL" <钍*********** @ hotmail.com> écritdansle message de

news:rp ******************************** @ 4ax.com ...
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...
2003年9月1日星期一21:20:35 +0200,Bruno Jouhier [MVP]"
< bj ****** @ club-internet.fr>写道:
On Mon, 1 Sep 2003 21:20:35 +0200, "Bruno Jouhier [MVP]"
<bj******@club-internet.fr> wrote:
我正在经历一个奇怪的现象:

在我的办公室,Visual Studio需要很长时间才能编译我们的
解决方案(第一个项目超过1分钟)。
在家中,Visual Studio可以更快地编译相同的解决方案(第一个项目大约10
秒)。

我的家用电脑只比我在
办公室稍微快一点(P4 2.53对P4 2.4,相同数量的RAM)。
在慢速机器上,CPU使用率非常低,特别是在
结束编译阶段(一旦进度条结束,等待
构建完成消息)。这个低CPU阶段似乎解释了总体时间的差异。在
那个时间内没有其他进程占用CPU(整体CPU使用率为0或非常接近0)。

此外,我们在所有机器上都观察到同样的缓慢我们有
ouroffice。而且这种行为不是由于公司的防病毒软件,因为我们将其关闭了。

我很困惑(而且有点沮丧)。这可能是因为我们
在企业局域网上并且.NET需要运行更昂贵的安全性检查来阻止网络请求。这是我迄今为止唯一的假设因为我在低CPU阶段看到了lsass.exe中的小爆发活动。
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.



可能......我知道可以在服务器上为一组开发人员运行VS.net ...最有可能在你的工作场所,VS.net
将从服务器运行(因此''整体CPU因此需要与你的同事分享......

欺负他们,直到你需要时他们放弃使用它;)

你是如何安装VS.net的?是不是安装了
localy(如果是的话,我的答案在这里不予考虑)?

-
NULL



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



这篇关于Visual Studio编译速度慢,CPU使用率低的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆