Visual Studio compiles slowly, low CPU usage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bruno Jouhier [MVP]

    #16
    Re: Visual Studio compiles slowly, low CPU usage

    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" <reply@to.group > a écrit dans le message de
    news:OO3fPVScDH A.1808@TK2MSFTN GP11.phx.gbl...[color=blue]
    > 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]" <bjouhier@clu b-internet.fr> wrote in message
    > news:eBR9f4LcDH A.748@TK2MSFTNG P10.phx.gbl...[color=green]
    > > I'm currently experiencing a strange phenomenon:
    > >
    > > At my Office, Visual Studio takes a very long time to compile our[/color][/color]
    solution[color=blue][color=green]
    > > (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[/color]
    > office[color=green]
    > > (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[/color]
    > the[color=green]
    > > 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[/color]
    > that[color=green]
    > > 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[/color][/color]
    our[color=blue][color=green]
    > > office. And the behavior is not due to the corporate antivirus because[/color][/color]
    we[color=blue][color=green]
    > > turned it off.
    > >
    > > I'm puzzled (and a bit frustrated). Could this be due to the fact that[/color][/color]
    we[color=blue][color=green]
    > > are on a corporate LAN and that .NET needs to run more expensive[/color][/color]
    security[color=blue][color=green]
    > > 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[/color]
    > this?[color=green]
    > >
    > > Bruno.
    > >
    > >[/color]
    >
    >[/color]


    Comment

    • Bruno Jouhier [MVP]

      #17
      Re: Visual Studio compiles slowly, low CPU usage

      > 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).
      [color=blue]
      > 2) What other processes are running in the background?[/color]
      SQL server is running (but idle).
      [color=blue]
      > 3) Have you run Performance Monitor to check CPU / Disk / LSASS.EXE
      > etc.[/color]
      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.



      Comment

      • Bruno Jouhier [MVP]

        #18
        Re: Visual Studio compiles slowly, low CPU usage

        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" <nospam@hyperco n.net> a écrit dans le message de
        news:ubGrPDWcDH A.1656@TK2MSFTN GP10.phx.gbl...[color=blue]
        > Could you possibly have the BLASTER visus worm ?
        >
        >
        > "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr> wrote in message
        > news:eBR9f4LcDH A.748@TK2MSFTNG P10.phx.gbl...[color=green]
        > > I'm currently experiencing a strange phenomenon:
        > >
        > > At my Office, Visual Studio takes a very long time to compile our[/color][/color]
        solution[color=blue][color=green]
        > > (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[/color]
        > office[color=green]
        > > (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[/color]
        > the[color=green]
        > > 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[/color]
        > that[color=green]
        > > 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[/color][/color]
        our[color=blue][color=green]
        > > office. And the behavior is not due to the corporate antivirus because[/color][/color]
        we[color=blue][color=green]
        > > turned it off.
        > >
        > > I'm puzzled (and a bit frustrated). Could this be due to the fact that[/color][/color]
        we[color=blue][color=green]
        > > are on a corporate LAN and that .NET needs to run more expensive[/color][/color]
        security[color=blue][color=green]
        > > 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[/color]
        > this?[color=green]
        > >
        > > Bruno.
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Scot Rose [MSFT]

          #19
          RE: Visual Studio compiles slowly, low CPU usage

          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
          Microsoft Support is here to help you with Microsoft products. Find how-to articles, videos, and training for Microsoft Copilot, Microsoft 365, Windows, Surface, and more.


          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 : scotr@online.mi crosoft.com <Remove word online. from address>

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




          --------------------[color=blue]
          >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-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: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>
          >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp,micr osoft.public.do tnet.vjsharp
          >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
          >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
          >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.vjshar p:4386 microsoft.publi c.dotnet.langua ges.csharp:1813 64
          >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.
          >
          >
          >[/color]


          Comment

          • Bruno Jouhier [MVP]

            #20
            Re: Visual Studio compiles slowly, low CPU usage

            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]" <scotr@online.m icrosoft.com> a écrit dans le message de
            news:SvHT8n6cDH A.2108@cpmsftng xa06.phx.gbl...[color=blue]
            > 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[/color]
            to have an ASPNet account set up according to the article..[color=blue]
            >
            > Want to know more? Check out the MSDN Library at http://msdn.microsoft.com[/color]
            or the Microsoft Knowledge Base at http://support.microsoft.com[color=blue]
            >
            > Scot Rose, MCSD
            > Microsoft Visual Basic Developer Support
            > Email : scotr@online.mi crosoft.com <Remove word online. from address>
            >
            > This posting is provided "AS IS", with no warranties, and confers no[/color]
            rights.[color=blue]
            >
            >
            >
            >
            > --------------------[color=green]
            > >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-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: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>
            > >Newsgroups:[/color][/color]
            microsoft.publi c.dotnet.langua ges.csharp,micr osoft.public.do tnet.vjsharp[color=blue][color=green]
            > >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
            > >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
            > >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.vjshar p:4386[/color][/color]
            microsoft.publi c.dotnet.langua ges.csharp:1813 64[color=blue][color=green]
            > >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
            > >
            > >I'm currently experiencing a strange phenomenon:
            > >
            > >At my Office, Visual Studio takes a very long time to compile our[/color][/color]
            solution[color=blue][color=green]
            > >(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[/color][/color]
            office[color=blue][color=green]
            > >(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[/color][/color]
            the[color=blue][color=green]
            > >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[/color][/color]
            that[color=blue][color=green]
            > >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[/color][/color]
            our[color=blue][color=green]
            > >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[/color][/color]
            this?[color=blue][color=green]
            > >
            > >Bruno.
            > >
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Scot Rose [MSFT]

              #21
              Re: Visual Studio compiles slowly, low CPU usage

              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 : scotr@online.mi crosoft.com <Remove word online. from address>

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




              --------------------[color=blue]
              >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
              >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl> <SvHT8n6cDHA.21 08@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: <ubSSc1#cDHA.24 16@TK2MSFTNGP10 .phx.gbl>
              >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
              >NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
              >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
              >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1827 26
              >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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]" <scotr@online.m icrosoft.com> a écrit dans le message de
              >news:SvHT8n6cD HA.2108@cpmsftn gxa06.phx.gbl.. .[color=green]
              >> 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[/color]
              >to have an ASPNet account set up according to the article..[color=green]
              >>
              >> Want to know more? Check out the MSDN Library at http://msdn.microsoft.com[/color]
              >or the Microsoft Knowledge Base at http://support.microsoft.com[color=green]
              >>
              >> Scot Rose, MCSD
              >> Microsoft Visual Basic Developer Support
              >> Email : scotr@online.mi crosoft.com <Remove word online. from address>
              >>
              >> This posting is provided "AS IS", with no warranties, and confers no[/color]
              >rights.[color=green]
              >>
              >>
              >>
              >>
              >> --------------------[color=darkred]
              >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-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: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>
              >> >Newsgroups:[/color][/color]
              >microsoft.publ ic.dotnet.langu ages.csharp,mic rosoft.public.d otnet.vjsharp[color=green][color=darkred]
              >> >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
              >> >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
              >> >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.vjshar p:4386[/color][/color]
              >microsoft.publ ic.dotnet.langu ages.csharp:181 364[color=green][color=darkred]
              >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
              >> >
              >> >I'm currently experiencing a strange phenomenon:
              >> >
              >> >At my Office, Visual Studio takes a very long time to compile our[/color][/color]
              >solution[color=green][color=darkred]
              >> >(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[/color][/color]
              >office[color=green][color=darkred]
              >> >(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[/color][/color]
              >the[color=green][color=darkred]
              >> >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[/color][/color]
              >that[color=green][color=darkred]
              >> >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[/color][/color]
              >our[color=green][color=darkred]
              >> >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[/color][/color]
              >this?[color=green][color=darkred]
              >> >
              >> >Bruno.
              >> >
              >> >
              >> >[/color]
              >>
              >>[/color]
              >
              >
              >[/color]


              Comment

              • Bruno Jouhier [MVP]

                #22
                Re: Visual Studio compiles slowly, low CPU usage

                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]" <scotr@online.m icrosoft.com> a écrit dans le message de
                news:6DwY50hdDH A.2116@cpmsftng xa06.phx.gbl...[color=blue]
                > Yes, BUT the .Net environment somehow has to see the ASP net User[/color]
                (Acording to that article) thats why I brought it up. Make sure that account
                exists and has proper[color=blue]
                > permissions...
                >
                > Want to know more? Check out the MSDN Library at http://msdn.microsoft.com[/color]
                or the Microsoft Knowledge Base at http://support.microsoft.com[color=blue]
                >
                > Scot Rose, MCSD
                > Microsoft Visual Basic Developer Support
                > Email : scotr@online.mi crosoft.com <Remove word online. from address>
                >
                > This posting is provided "AS IS", with no warranties, and confers no[/color]
                rights.[color=blue]
                >
                >
                >
                >
                > --------------------[color=green]
                > >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
                > >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>[/color][/color]
                <SvHT8n6cDHA.21 08@cpmsftngxa06 .phx.gbl>[color=blue][color=green]
                > >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: <ubSSc1#cDHA.24 16@TK2MSFTNGP10 .phx.gbl>
                > >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                > >NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
                > >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
                > >Xref: cpmsftngxa06.ph x.gbl[/color][/color]
                microsoft.publi c.dotnet.langua ges.csharp:1827 26[color=blue][color=green]
                > >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                > >
                > >Hi Scot,
                > >
                > >Yes, we are running under a domain at work, and not at home. I looked at[/color][/color]
                the[color=blue][color=green]
                > >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[/color][/color]
                than[color=blue][color=green]
                > >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[/color][/color]
                our[color=blue][color=green]
                > >other projects. Depending on what we are building, we have between 5 and[/color][/color]
                46[color=blue][color=green]
                > >projects in the solution but the problem does not seem to be related to[/color][/color]
                the[color=blue][color=green]
                > >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[/color][/color]
                that[color=blue][color=green]
                > >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[/color][/color]
                for[color=blue][color=green]
                > >some kind of network response (from the domain controller???).
                > >
                > >Bruno.
                > >
                > >
                > >"Scot Rose [MSFT]" <scotr@online.m icrosoft.com> a écrit dans le message[/color][/color]
                de[color=blue][color=green]
                > >news:SvHT8n6cD HA.2108@cpmsftn gxa06.phx.gbl.. .[color=darkred]
                > >> 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[/color][/color][/color]
                to[color=blue][color=green]
                > >to have an ASPNet account set up according to the article..[color=darkred]
                > >>
                > >> Want to know more? Check out the MSDN Library at[/color][/color][/color]
                http://msdn.microsoft.com[color=blue][color=green]
                > >or the Microsoft Knowledge Base at http://support.microsoft.com[color=darkred]
                > >>
                > >> Scot Rose, MCSD
                > >> Microsoft Visual Basic Developer Support
                > >> Email : scotr@online.mi crosoft.com <Remove word online. from address>
                > >>
                > >> This posting is provided "AS IS", with no warranties, and confers no[/color]
                > >rights.[color=darkred]
                > >>
                > >>
                > >>
                > >>
                > >> --------------------
                > >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-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: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>
                > >> >Newsgroups:[/color]
                > >microsoft.publ ic.dotnet.langu ages.csharp,mic rosoft.public.d otnet.vjsharp[color=darkred]
                > >> >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
                > >> >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
                > >> >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.vjshar p:4386[/color]
                > >microsoft.publ ic.dotnet.langu ages.csharp:181 364[color=darkred]
                > >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                > >> >
                > >> >I'm currently experiencing a strange phenomenon:
                > >> >
                > >> >At my Office, Visual Studio takes a very long time to compile our[/color]
                > >solution[color=darkred]
                > >> >(more than 1 minute for the first project).
                > >> >At home, Visual Studio compiles the same solution much faster (about[/color][/color][/color]
                10[color=blue][color=green][color=darkred]
                > >> >seconds for the first project).
                > >> >
                > >> >My home computer is only marginally faster than the one I have at the[/color]
                > >office[color=darkred]
                > >> >(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[/color][/color][/color]
                of[color=blue][color=green]
                > >the[color=darkred]
                > >> >compilation phase (once the progress bar is at the end, waiting for[/color][/color][/color]
                the[color=blue][color=green][color=darkred]
                > >> >"build complete" message). This low CPU phase seems to account for the
                > >> >difference in overall time. There is no other process taking CPU[/color][/color][/color]
                during[color=blue][color=green]
                > >that[color=darkred]
                > >> >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[/color]
                > >our[color=darkred]
                > >> >office. And the behavior is not due to the corporate antivirus because[/color][/color][/color]
                we[color=blue][color=green][color=darkred]
                > >> >turned it off.
                > >> >
                > >> >I'm puzzled (and a bit frustrated). Could this be due to the fact that[/color][/color][/color]
                we[color=blue][color=green][color=darkred]
                > >> >are on a corporate LAN and that .NET needs to run more expensive[/color][/color][/color]
                security[color=blue][color=green][color=darkred]
                > >> >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[/color]
                > >this?[color=darkred]
                > >> >
                > >> >Bruno.
                > >> >
                > >> >
                > >> >
                > >>
                > >>[/color]
                > >
                > >
                > >[/color]
                >
                >[/color]


                Comment

                • Scot Rose [MSFT]

                  #23
                  Re: Visual Studio compiles slowly, low CPU usage

                  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 : scotr@online.mi crosoft.com <Remove word online. from address>

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




                  --------------------[color=blue]
                  >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
                  >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl> <SvHT8n6cDHA.21 08@cpmsftngxa06 .phx.gbl> <ubSSc1#cDHA.24 16@TK2MSFTNGP10 .phx.gbl>[/color]
                  <6DwY50hdDHA.21 16@cpmsftngxa06 .phx.gbl>[color=blue]
                  >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: <eJzbQ3pdDHA.23 32@TK2MSFTNGP11 .phx.gbl>
                  >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                  >NNTP-Posting-Host: f14m-9-109.d1.club-internet.fr 212.195.96.109
                  >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
                  >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1833 60
                  >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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]" <scotr@online.m icrosoft.com> a écrit dans le message de
                  >news:6DwY50hdD HA.2116@cpmsftn gxa06.phx.gbl.. .[color=green]
                  >> Yes, BUT the .Net environment somehow has to see the ASP net User[/color]
                  >(Acording to that article) thats why I brought it up. Make sure that account
                  >exists and has proper[color=green]
                  >> permissions...
                  >>
                  >> Want to know more? Check out the MSDN Library at http://msdn.microsoft.com[/color]
                  >or the Microsoft Knowledge Base at http://support.microsoft.com[color=green]
                  >>
                  >> Scot Rose, MCSD
                  >> Microsoft Visual Basic Developer Support
                  >> Email : scotr@online.mi crosoft.com <Remove word online. from address>
                  >>
                  >> This posting is provided "AS IS", with no warranties, and confers no[/color]
                  >rights.[color=green]
                  >>
                  >>
                  >>
                  >>
                  >> --------------------[color=darkred]
                  >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
                  >> >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>[/color][/color]
                  ><SvHT8n6cDHA.2 108@cpmsftngxa0 6.phx.gbl>[color=green][color=darkred]
                  >> >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: <ubSSc1#cDHA.24 16@TK2MSFTNGP10 .phx.gbl>
                  >> >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                  >> >NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
                  >> >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
                  >> >Xref: cpmsftngxa06.ph x.gbl[/color][/color]
                  >microsoft.publ ic.dotnet.langu ages.csharp:182 726[color=green][color=darkred]
                  >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                  >> >
                  >> >Hi Scot,
                  >> >
                  >> >Yes, we are running under a domain at work, and not at home. I looked at[/color][/color]
                  >the[color=green][color=darkred]
                  >> >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[/color][/color]
                  >than[color=green][color=darkred]
                  >> >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[/color][/color]
                  >our[color=green][color=darkred]
                  >> >other projects. Depending on what we are building, we have between 5 and[/color][/color]
                  >46[color=green][color=darkred]
                  >> >projects in the solution but the problem does not seem to be related to[/color][/color]
                  >the[color=green][color=darkred]
                  >> >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[/color][/color]
                  >that[color=green][color=darkred]
                  >> >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[/color][/color]
                  >for[color=green][color=darkred]
                  >> >some kind of network response (from the domain controller???).
                  >> >
                  >> >Bruno.
                  >> >
                  >> >
                  >> >"Scot Rose [MSFT]" <scotr@online.m icrosoft.com> a écrit dans le message[/color][/color]
                  >de[color=green][color=darkred]
                  >> >news:SvHT8n6cD HA.2108@cpmsftn gxa06.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[/color][/color]
                  >to[color=green][color=darkred]
                  >> >to have an ASPNet account set up according to the article..
                  >> >>
                  >> >> Want to know more? Check out the MSDN Library at[/color][/color]
                  >http://msdn.microsoft.com[color=green][color=darkred]
                  >> >or the Microsoft Knowledge Base at http://support.microsoft.com
                  >> >>
                  >> >> Scot Rose, MCSD
                  >> >> Microsoft Visual Basic Developer Support
                  >> >> Email : scotr@online.mi crosoft.com <Remove word online. from address>
                  >> >>
                  >> >> This posting is provided "AS IS", with no warranties, and confers no
                  >> >rights.
                  >> >>
                  >> >>
                  >> >>
                  >> >>
                  >> >> --------------------
                  >> >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-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: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>
                  >> >> >Newsgroups:
                  >> >microsoft.publ ic.dotnet.langu ages.csharp,mic rosoft.public.d otnet.vjsharp
                  >> >> >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
                  >> >> >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
                  >> >> >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.vjshar p:4386
                  >> >microsoft.publ ic.dotnet.langu ages.csharp:181 364
                  >> >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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[/color][/color]
                  >10[color=green][color=darkred]
                  >> >> >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[/color][/color]
                  >of[color=green][color=darkred]
                  >> >the
                  >> >> >compilation phase (once the progress bar is at the end, waiting for[/color][/color]
                  >the[color=green][color=darkred]
                  >> >> >"build complete" message). This low CPU phase seems to account for the
                  >> >> >difference in overall time. There is no other process taking CPU[/color][/color]
                  >during[color=green][color=darkred]
                  >> >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[/color][/color]
                  >we[color=green][color=darkred]
                  >> >> >turned it off.
                  >> >> >
                  >> >> >I'm puzzled (and a bit frustrated). Could this be due to the fact that[/color][/color]
                  >we[color=green][color=darkred]
                  >> >> >are on a corporate LAN and that .NET needs to run more expensive[/color][/color]
                  >security[color=green][color=darkred]
                  >> >> >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.
                  >> >> >
                  >> >> >
                  >> >> >
                  >> >>
                  >> >>
                  >> >
                  >> >
                  >> >[/color]
                  >>
                  >>[/color]
                  >
                  >
                  >[/color]


                  Comment

                  • Bruno Jouhier [MVP]

                    #24
                    Re: Visual Studio compiles slowly, low CPU usage

                    Hi Scot,

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

                    Actually, I crossposted on microsoft.publi c.dotnet.vjshar p 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]" <scotr@online.m icrosoft.com> a écrit dans le message de
                    news:EkwQRhGeDH A.2420@cpmsftng xa06.phx.gbl...[color=blue]
                    > Could Name resolution possibley be the issue? Perhaps you could put an[/color]
                    entry for the machine where the files are located in the HOSTS file and see
                    if that resolves the problem.[color=blue]
                    > Its a long shot but it could be that simple...
                    >
                    > Scot Rose, MCSD
                    > Microsoft Visual Basic Developer Support
                    > Email : scotr@online.mi crosoft.com <Remove word online. from address>
                    >
                    > This posting is provided "AS IS", with no warranties, and confers no[/color]
                    rights.[color=blue]
                    >
                    >
                    >
                    >
                    > --------------------[color=green]
                    > >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
                    > >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>[/color][/color]
                    <SvHT8n6cDHA.21 08@cpmsftngxa06 .phx.gbl>
                    <ubSSc1#cDHA.24 16@TK2MSFTNGP10 .phx.gbl>[color=blue]
                    > <6DwY50hdDHA.21 16@cpmsftngxa06 .phx.gbl>[color=green]
                    > >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: <eJzbQ3pdDHA.23 32@TK2MSFTNGP11 .phx.gbl>
                    > >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                    > >NNTP-Posting-Host: f14m-9-109.d1.club-internet.fr 212.195.96.109
                    > >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
                    > >Xref: cpmsftngxa06.ph x.gbl[/color][/color]
                    microsoft.publi c.dotnet.langua ges.csharp:1833 60[color=blue][color=green]
                    > >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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]" <scotr@online.m icrosoft.com> a écrit dans le message[/color][/color]
                    de[color=blue][color=green]
                    > >news:6DwY50hdD HA.2116@cpmsftn gxa06.phx.gbl.. .[color=darkred]
                    > >> Yes, BUT the .Net environment somehow has to see the ASP net User[/color]
                    > >(Acording to that article) thats why I brought it up. Make sure that[/color][/color]
                    account[color=blue][color=green]
                    > >exists and has proper[color=darkred]
                    > >> permissions...
                    > >>
                    > >> Want to know more? Check out the MSDN Library at[/color][/color][/color]
                    http://msdn.microsoft.com[color=blue][color=green]
                    > >or the Microsoft Knowledge Base at http://support.microsoft.com[color=darkred]
                    > >>
                    > >> Scot Rose, MCSD
                    > >> Microsoft Visual Basic Developer Support
                    > >> Email : scotr@online.mi crosoft.com <Remove word online. from address>
                    > >>
                    > >> This posting is provided "AS IS", with no warranties, and confers no[/color]
                    > >rights.[color=darkred]
                    > >>
                    > >>
                    > >>
                    > >>
                    > >> --------------------
                    > >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
                    > >> >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>[/color]
                    > ><SvHT8n6cDHA.2 108@cpmsftngxa0 6.phx.gbl>[color=darkred]
                    > >> >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: <ubSSc1#cDHA.24 16@TK2MSFTNGP10 .phx.gbl>
                    > >> >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                    > >> >NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
                    > >> >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
                    > >> >Xref: cpmsftngxa06.ph x.gbl[/color]
                    > >microsoft.publ ic.dotnet.langu ages.csharp:182 726[color=darkred]
                    > >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                    > >> >
                    > >> >Hi Scot,
                    > >> >
                    > >> >Yes, we are running under a domain at work, and not at home. I looked[/color][/color][/color]
                    at[color=blue][color=green]
                    > >the[color=darkred]
                    > >> >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).[/color][/color][/color]
                    The[color=blue][color=green][color=darkred]
                    > >> >problem shows up at the end of compilation: CPU usage is very low (2%[/color][/color][/color]
                    or[color=blue][color=green][color=darkred]
                    > >> >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[/color][/color][/color]
                    rather[color=blue][color=green]
                    > >than[color=darkred]
                    > >> >1.0.
                    > >> >
                    > >> >One note: our solution mixes J# and C# projects. The first project[/color][/color][/color]
                    that[color=blue][color=green][color=darkred]
                    > >> >takes the longuest to compile is a J# project which is referenced by[/color][/color][/color]
                    all[color=blue][color=green]
                    > >our[color=darkred]
                    > >> >other projects. Depending on what we are building, we have between 5[/color][/color][/color]
                    and[color=blue][color=green]
                    > >46[color=darkred]
                    > >> >projects in the solution but the problem does not seem to be related[/color][/color][/color]
                    to[color=blue][color=green]
                    > >the[color=darkred]
                    > >> >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[/color]
                    > >that[color=darkred]
                    > >> >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[/color][/color][/color]
                    waiting[color=blue][color=green]
                    > >for[color=darkred]
                    > >> >some kind of network response (from the domain controller???).
                    > >> >
                    > >> >Bruno.
                    > >> >
                    > >> >
                    > >> >"Scot Rose [MSFT]" <scotr@online.m icrosoft.com> a écrit dans le[/color][/color][/color]
                    message[color=blue][color=green]
                    > >de[color=darkred]
                    > >> >news:SvHT8n6cD HA.2108@cpmsftn gxa06.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[/color][/color][/color]
                    Domain[color=blue][color=green][color=darkred]
                    > >> >> http://support.microsoft.com/?id=318738
                    > >> >>
                    > >> >> This is 'supposed' to be fixed, but might be worth a look. You may[/color][/color][/color]
                    need[color=blue][color=green]
                    > >to[color=darkred]
                    > >> >to have an ASPNet account set up according to the article..
                    > >> >>
                    > >> >> Want to know more? Check out the MSDN Library at[/color]
                    > >http://msdn.microsoft.com[color=darkred]
                    > >> >or the Microsoft Knowledge Base at http://support.microsoft.com
                    > >> >>
                    > >> >> Scot Rose, MCSD
                    > >> >> Microsoft Visual Basic Developer Support
                    > >> >> Email : scotr@online.mi crosoft.com <Remove word online. from[/color][/color][/color]
                    address>[color=blue][color=green][color=darkred]
                    > >> >>
                    > >> >> This posting is provided "AS IS", with no warranties, and confers no
                    > >> >rights.
                    > >> >>
                    > >> >>
                    > >> >>
                    > >> >>
                    > >> >> --------------------
                    > >> >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-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: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>
                    > >> >> >Newsgroups:
                    > >>[/color][/color]
                    >microsoft.publ ic.dotnet.langu ages.csharp,mic rosoft.public.d otnet.vjsharp[color=green][color=darkred]
                    > >> >> >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
                    > >> >> >Path:[/color][/color][/color]
                    cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl[color=blue][color=green][color=darkred]
                    > >> >> >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.vjshar p:4386
                    > >> >microsoft.publ ic.dotnet.langu ages.csharp:181 364
                    > >> >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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[/color][/color][/color]
                    (about[color=blue][color=green]
                    > >10[color=darkred]
                    > >> >> >seconds for the first project).
                    > >> >> >
                    > >> >> >My home computer is only marginally faster than the one I have at[/color][/color][/color]
                    the[color=blue][color=green][color=darkred]
                    > >> >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[/color][/color][/color]
                    end[color=blue][color=green]
                    > >of[color=darkred]
                    > >> >the
                    > >> >> >compilation phase (once the progress bar is at the end, waiting for[/color]
                    > >the[color=darkred]
                    > >> >> >"build complete" message). This low CPU phase seems to account for[/color][/color][/color]
                    the[color=blue][color=green][color=darkred]
                    > >> >> >difference in overall time. There is no other process taking CPU[/color]
                    > >during[color=darkred]
                    > >> >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[/color][/color][/color]
                    in[color=blue][color=green][color=darkred]
                    > >> >our
                    > >> >> >office. And the behavior is not due to the corporate antivirus[/color][/color][/color]
                    because[color=blue][color=green]
                    > >we[color=darkred]
                    > >> >> >turned it off.
                    > >> >> >
                    > >> >> >I'm puzzled (and a bit frustrated). Could this be due to the fact[/color][/color][/color]
                    that[color=blue][color=green]
                    > >we[color=darkred]
                    > >> >> >are on a corporate LAN and that .NET needs to run more expensive[/color]
                    > >security[color=darkred]
                    > >> >> >checks that block on network requests. This my only hypothesis so[/color][/color][/color]
                    far[color=blue][color=green][color=darkred]
                    > >> >> >because I saw small bursts of activity in lsass.exe during the low[/color][/color][/color]
                    CPU[color=blue][color=green][color=darkred]
                    > >> >> >phase.
                    > >> >> >
                    > >> >> >Anybody experienced something like this? Any clues on what could[/color][/color][/color]
                    cause[color=blue][color=green][color=darkred]
                    > >> >this?
                    > >> >> >
                    > >> >> >Bruno.
                    > >> >> >
                    > >> >> >
                    > >> >> >
                    > >> >>
                    > >> >>
                    > >> >
                    > >> >
                    > >> >
                    > >>
                    > >>[/color]
                    > >
                    > >
                    > >[/color]
                    >
                    >[/color]


                    Comment

                    • Scot Rose [MSFT]

                      #25
                      Re: Visual Studio compiles slowly, low CPU usage

                      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 : scotr@online.mi crosoft.com <Remove word online. from address>

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

                      Get Secure!
                      Defend your data from cyberattacks using innovative cloud security solutions. Safeguard your infrastructure, apps, and data with Microsoft cybersecurity solutions.

                      Explore Microsoft Defender, powerful cybersecurity software and solutions for individuals and businesses, backed by advanced Microsoft threat protection.



                      --------------------[color=blue]
                      >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
                      >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl> <SvHT8n6cDHA.21 08@cpmsftngxa06 .phx.gbl> <ubSSc1#cDHA.24 16@TK2MSFTNGP10 .phx.gbl>[/color]
                      <6DwY50hdDHA.21 16@cpmsftngxa06 .phx.gbl> <eJzbQ3pdDHA.23 32@TK2MSFTNGP11 .phx.gbl> <EkwQRhGeDHA.24 20@cpmsftngxa06 .phx.gbl>[color=blue]
                      >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: <emEt34IeDHA.18 24@TK2MSFTNGP10 .phx.gbl>
                      >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                      >NNTP-Posting-Host: f15v-1-14.d1.club-internet.fr 212.195.192.14
                      >Path: cpmsftngxa06.ph x.gbl!cpmsftngx a10.phx.gbl!TK2 MSFTNGXA05.phx. gbl!TK2MSFTNGP0 8.phx.gbl!TK2MS FTNGP10.phx.gbl
                      >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1841 63
                      >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                      >
                      >Hi Scot,
                      >
                      >The files (Studio and source) are on the local disk.
                      >
                      >Actually, I crossposted on microsoft.publi c.dotnet.vjshar p 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]" <scotr@online.m icrosoft.com> a écrit dans le message de
                      >news:EkwQRhGeD HA.2420@cpmsftn gxa06.phx.gbl.. .[color=green]
                      >> Could Name resolution possibley be the issue? Perhaps you could put an[/color]
                      >entry for the machine where the files are located in the HOSTS file and see
                      >if that resolves the problem.[color=green]
                      >> Its a long shot but it could be that simple...
                      >>
                      >> Scot Rose, MCSD
                      >> Microsoft Visual Basic Developer Support
                      >> Email : scotr@online.mi crosoft.com <Remove word online. from address>
                      >>
                      >> This posting is provided "AS IS", with no warranties, and confers no[/color]
                      >rights.[color=green]
                      >>
                      >>
                      >>
                      >>
                      >> --------------------[color=darkred]
                      >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
                      >> >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>[/color][/color]
                      ><SvHT8n6cDHA.2 108@cpmsftngxa0 6.phx.gbl>
                      ><ubSSc1#cDHA.2 416@TK2MSFTNGP1 0.phx.gbl>[color=green]
                      >> <6DwY50hdDHA.21 16@cpmsftngxa06 .phx.gbl>[color=darkred]
                      >> >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: <eJzbQ3pdDHA.23 32@TK2MSFTNGP11 .phx.gbl>
                      >> >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                      >> >NNTP-Posting-Host: f14m-9-109.d1.club-internet.fr 212.195.96.109
                      >> >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
                      >> >Xref: cpmsftngxa06.ph x.gbl[/color][/color]
                      >microsoft.publ ic.dotnet.langu ages.csharp:183 360[color=green][color=darkred]
                      >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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]" <scotr@online.m icrosoft.com> a écrit dans le message[/color][/color]
                      >de[color=green][color=darkred]
                      >> >news:6DwY50hdD HA.2116@cpmsftn gxa06.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[/color][/color]
                      >account[color=green][color=darkred]
                      >> >exists and has proper
                      >> >> permissions...
                      >> >>
                      >> >> Want to know more? Check out the MSDN Library at[/color][/color]
                      >http://msdn.microsoft.com[color=green][color=darkred]
                      >> >or the Microsoft Knowledge Base at http://support.microsoft.com
                      >> >>
                      >> >> Scot Rose, MCSD
                      >> >> Microsoft Visual Basic Developer Support
                      >> >> Email : scotr@online.mi crosoft.com <Remove word online. from address>
                      >> >>
                      >> >> This posting is provided "AS IS", with no warranties, and confers no
                      >> >rights.
                      >> >>
                      >> >>
                      >> >>
                      >> >>
                      >> >> --------------------
                      >> >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
                      >> >> >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>
                      >> ><SvHT8n6cDHA.2 108@cpmsftngxa0 6.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: <ubSSc1#cDHA.24 16@TK2MSFTNGP10 .phx.gbl>
                      >> >> >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                      >> >> >NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
                      >> >> >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
                      >> >> >Xref: cpmsftngxa06.ph x.gbl
                      >> >microsoft.publ ic.dotnet.langu ages.csharp:182 726
                      >> >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                      >> >> >
                      >> >> >Hi Scot,
                      >> >> >
                      >> >> >Yes, we are running under a domain at work, and not at home. I looked[/color][/color]
                      >at[color=green][color=darkred]
                      >> >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).[/color][/color]
                      >The[color=green][color=darkred]
                      >> >> >problem shows up at the end of compilation: CPU usage is very low (2%[/color][/color]
                      >or[color=green][color=darkred]
                      >> >> >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[/color][/color]
                      >rather[color=green][color=darkred]
                      >> >than
                      >> >> >1.0.
                      >> >> >
                      >> >> >One note: our solution mixes J# and C# projects. The first project[/color][/color]
                      >that[color=green][color=darkred]
                      >> >> >takes the longuest to compile is a J# project which is referenced by[/color][/color]
                      >all[color=green][color=darkred]
                      >> >our
                      >> >> >other projects. Depending on what we are building, we have between 5[/color][/color]
                      >and[color=green][color=darkred]
                      >> >46
                      >> >> >projects in the solution but the problem does not seem to be related[/color][/color]
                      >to[color=green][color=darkred]
                      >> >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[/color][/color]
                      >waiting[color=green][color=darkred]
                      >> >for
                      >> >> >some kind of network response (from the domain controller???).
                      >> >> >
                      >> >> >Bruno.
                      >> >> >
                      >> >> >
                      >> >> >"Scot Rose [MSFT]" <scotr@online.m icrosoft.com> a écrit dans le[/color][/color]
                      >message[color=green][color=darkred]
                      >> >de
                      >> >> >news:SvHT8n6cD HA.2108@cpmsftn gxa06.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[/color][/color]
                      >Domain[color=green][color=darkred]
                      >> >> >> http://support.microsoft.com/?id=318738
                      >> >> >>
                      >> >> >> This is 'supposed' to be fixed, but might be worth a look. You may[/color][/color]
                      >need[color=green][color=darkred]
                      >> >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 : scotr@online.mi crosoft.com <Remove word online. from[/color][/color]
                      >address>[color=green][color=darkred]
                      >> >> >>
                      >> >> >> This posting is provided "AS IS", with no warranties, and confers no
                      >> >> >rights.
                      >> >> >>
                      >> >> >>
                      >> >> >>
                      >> >> >>
                      >> >> >> --------------------
                      >> >> >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-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: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>
                      >> >> >> >Newsgroups:
                      >> >>[/color]
                      >>microsoft.pub lic.dotnet.lang uages.csharp,mi crosoft.public. dotnet.vjsharp[color=darkred]
                      >> >> >> >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr 212.194.131.232
                      >> >> >> >Path:[/color][/color]
                      >cpmsftngxa06.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl[color=green][color=darkred]
                      >> >> >> >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.vjshar p:4386
                      >> >> >microsoft.publ ic.dotnet.langu ages.csharp:181 364
                      >> >> >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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[/color][/color]
                      >(about[color=green][color=darkred]
                      >> >10
                      >> >> >> >seconds for the first project).
                      >> >> >> >
                      >> >> >> >My home computer is only marginally faster than the one I have at[/color][/color]
                      >the[color=green][color=darkred]
                      >> >> >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[/color][/color]
                      >end[color=green][color=darkred]
                      >> >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[/color][/color]
                      >the[color=green][color=darkred]
                      >> >> >> >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[/color][/color]
                      >in[color=green][color=darkred]
                      >> >> >our
                      >> >> >> >office. And the behavior is not due to the corporate antivirus[/color][/color]
                      >because[color=green][color=darkred]
                      >> >we
                      >> >> >> >turned it off.
                      >> >> >> >
                      >> >> >> >I'm puzzled (and a bit frustrated). Could this be due to the fact[/color][/color]
                      >that[color=green][color=darkred]
                      >> >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[/color][/color]
                      >far[color=green][color=darkred]
                      >> >> >> >because I saw small bursts of activity in lsass.exe during the low[/color][/color]
                      >CPU[color=green][color=darkred]
                      >> >> >> >phase.
                      >> >> >> >
                      >> >> >> >Anybody experienced something like this? Any clues on what could[/color][/color]
                      >cause[color=green][color=darkred]
                      >> >> >this?
                      >> >> >> >
                      >> >> >> >Bruno.
                      >> >> >> >
                      >> >> >> >
                      >> >> >> >
                      >> >> >>
                      >> >> >>
                      >> >> >
                      >> >> >
                      >> >> >
                      >> >>
                      >> >>
                      >> >
                      >> >
                      >> >[/color]
                      >>
                      >>[/color]
                      >
                      >
                      >[/color]


                      Comment

                      • Bruno Jouhier [MVP]

                        #26
                        Re: Visual Studio compiles slowly, low CPU usage

                        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]" <scotr@online.m icrosoft.com> a écrit dans le message de
                        news:qItWHdVeDH A.2192@cpmsftng xa06.phx.gbl...[color=blue]
                        > Problem could be name resolution as I mentined before... Put the IP[/color]
                        Address of teh Web Server in the Hosts file and see what happens... Checking
                        a Netmon trace is probably[color=blue]
                        > definately the way to go to resolve this in the future.
                        >
                        >
                        > Scot Rose, MCSD
                        > Microsoft Visual Basic Developer Support
                        > Email : scotr@online.mi crosoft.com <Remove word online. from address>
                        >
                        > This posting is provided "AS IS", with no warranties, and confers no[/color]
                        rights.[color=blue]
                        >
                        > Get Secure!
                        > http://www.microsoft.com/security
                        > http://www.microsoft.com/protect
                        >
                        >
                        > --------------------[color=green]
                        > >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
                        > >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>[/color][/color]
                        <SvHT8n6cDHA.21 08@cpmsftngxa06 .phx.gbl>
                        <ubSSc1#cDHA.24 16@TK2MSFTNGP10 .phx.gbl>[color=blue]
                        > <6DwY50hdDHA.21 16@cpmsftngxa06 .phx.gbl>[/color]
                        <eJzbQ3pdDHA.23 32@TK2MSFTNGP11 .phx.gbl>
                        <EkwQRhGeDHA.24 20@cpmsftngxa06 .phx.gbl>[color=blue][color=green]
                        > >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: <emEt34IeDHA.18 24@TK2MSFTNGP10 .phx.gbl>
                        > >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                        > >NNTP-Posting-Host: f15v-1-14.d1.club-internet.fr 212.195.192.14
                        > >Path:[/color][/color]
                        cpmsftngxa06.ph x.gbl!cpmsftngx a10.phx.gbl!TK2 MSFTNGXA05.phx. gbl!TK2MSFTNGP0 8
                        ..phx.gbl!TK2MS FTNGP10.phx.gbl[color=blue][color=green]
                        > >Xref: cpmsftngxa06.ph x.gbl[/color][/color]
                        microsoft.publi c.dotnet.langua ges.csharp:1841 63[color=blue][color=green]
                        > >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                        > >
                        > >Hi Scot,
                        > >
                        > >The files (Studio and source) are on the local disk.
                        > >
                        > >Actually, I crossposted on microsoft.publi c.dotnet.vjshar p and Michael[/color][/color]
                        Green[color=blue][color=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[/color][/color]
                        through[color=blue][color=green]
                        > >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]" <scotr@online.m icrosoft.com> a écrit dans le message[/color][/color]
                        de[color=blue][color=green]
                        > >news:EkwQRhGeD HA.2420@cpmsftn gxa06.phx.gbl.. .[color=darkred]
                        > >> Could Name resolution possibley be the issue? Perhaps you could put an[/color]
                        > >entry for the machine where the files are located in the HOSTS file and[/color][/color]
                        see[color=blue][color=green]
                        > >if that resolves the problem.[color=darkred]
                        > >> Its a long shot but it could be that simple...
                        > >>
                        > >> Scot Rose, MCSD
                        > >> Microsoft Visual Basic Developer Support
                        > >> Email : scotr@online.mi crosoft.com <Remove word online. from address>
                        > >>
                        > >> This posting is provided "AS IS", with no warranties, and confers no[/color]
                        > >rights.[color=darkred]
                        > >>
                        > >>
                        > >>
                        > >>
                        > >> --------------------
                        > >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
                        > >> >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>[/color]
                        > ><SvHT8n6cDHA.2 108@cpmsftngxa0 6.phx.gbl>
                        > ><ubSSc1#cDHA.2 416@TK2MSFTNGP1 0.phx.gbl>[color=darkred]
                        > >> <6DwY50hdDHA.21 16@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: <eJzbQ3pdDHA.23 32@TK2MSFTNGP11 .phx.gbl>
                        > >> >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                        > >> >NNTP-Posting-Host: f14m-9-109.d1.club-internet.fr 212.195.96.109
                        > >> >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
                        > >> >Xref: cpmsftngxa06.ph x.gbl[/color]
                        > >microsoft.publ ic.dotnet.langu ages.csharp:183 360[color=darkred]
                        > >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                        > >> >
                        > >> >Hi Scot,
                        > >> >
                        > >> >The ASPNET user exists (we really need it because we are developing a[/color][/color][/color]
                        web[color=blue][color=green][color=darkred]
                        > >> >app). So the problem must be somewhere else.
                        > >> >
                        > >> >Thanks anyway for the info.
                        > >> >
                        > >> >Bruno.
                        > >> >"Scot Rose [MSFT]" <scotr@online.m icrosoft.com> a écrit dans le[/color][/color][/color]
                        message[color=blue][color=green]
                        > >de[color=darkred]
                        > >> >news:6DwY50hdD HA.2116@cpmsftn gxa06.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[/color]
                        > >account[color=darkred]
                        > >> >exists and has proper
                        > >> >> permissions...
                        > >> >>
                        > >> >> Want to know more? Check out the MSDN Library at[/color]
                        > >http://msdn.microsoft.com[color=darkred]
                        > >> >or the Microsoft Knowledge Base at http://support.microsoft.com
                        > >> >>
                        > >> >> Scot Rose, MCSD
                        > >> >> Microsoft Visual Basic Developer Support
                        > >> >> Email : scotr@online.mi crosoft.com <Remove word online. from[/color][/color][/color]
                        address>[color=blue][color=green][color=darkred]
                        > >> >>
                        > >> >> This posting is provided "AS IS", with no warranties, and confers no
                        > >> >rights.
                        > >> >>
                        > >> >>
                        > >> >>
                        > >> >>
                        > >> >> --------------------
                        > >> >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-internet.fr>
                        > >> >> >References: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>
                        > >> ><SvHT8n6cDHA.2 108@cpmsftngxa0 6.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: <ubSSc1#cDHA.24 16@TK2MSFTNGP10 .phx.gbl>
                        > >> >> >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                        > >> >> >NNTP-Posting-Host: f13v-10-213.d1.club-internet.fr 212.195.181.213
                        > >> >> >Path:[/color][/color][/color]
                        cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl[color=blue][color=green][color=darkred]
                        > >> >> >Xref: cpmsftngxa06.ph x.gbl
                        > >> >microsoft.publ ic.dotnet.langu ages.csharp:182 726
                        > >> >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                        > >> >> >
                        > >> >> >Hi Scot,
                        > >> >> >
                        > >> >> >Yes, we are running under a domain at work, and not at home. I[/color][/color][/color]
                        looked[color=blue][color=green]
                        > >at[color=darkred]
                        > >> >the
                        > >> >> >link but I don't think it explains our problem:
                        > >> >> >
                        > >> >> >* The problem is not with the .NET apps that we create but with[/color][/color][/color]
                        Visual[color=blue][color=green][color=darkred]
                        > >> >> >Studio .NET itself.
                        > >> >> >
                        > >> >> >* Visual Studio starts normally (so the problem is not at load[/color][/color][/color]
                        time).[color=blue][color=green]
                        > >The[color=darkred]
                        > >> >> >problem shows up at the end of compilation: CPU usage is very low[/color][/color][/color]
                        (2%[color=blue][color=green]
                        > >or[color=darkred]
                        > >> >> >less) and stays like this for more than 1 minute before completing[/color][/color][/color]
                        and[color=blue][color=green][color=darkred]
                        > >> >> >moving to the next project of our solution.
                        > >> >> >
                        > >> >> >* We are running Studio 2003, so the underlying framework is 1.1[/color]
                        > >rather[color=darkred]
                        > >> >than
                        > >> >> >1.0.
                        > >> >> >
                        > >> >> >One note: our solution mixes J# and C# projects. The first project[/color]
                        > >that[color=darkred]
                        > >> >> >takes the longuest to compile is a J# project which is referenced[/color][/color][/color]
                        by[color=blue][color=green]
                        > >all[color=darkred]
                        > >> >our
                        > >> >> >other projects. Depending on what we are building, we have between[/color][/color][/color]
                        5[color=blue][color=green]
                        > >and[color=darkred]
                        > >> >46
                        > >> >> >projects in the solution but the problem does not seem to be[/color][/color][/color]
                        related[color=blue][color=green]
                        > >to[color=darkred]
                        > >> >the
                        > >> >> >number of projects in the solution.
                        > >> >> >
                        > >> >> >Also, recently we have rewritten our resource handling to use the[/color][/color][/color]
                        ..NET[color=blue][color=green][color=darkred]
                        > >> >> >mechanisms (resx files) rather than our old Java scheme, and it[/color][/color][/color]
                        seems[color=blue][color=green][color=darkred]
                        > >> >that
                        > >> >> >the slow compile pb has worsened at about the same time. So, it may[/color][/color][/color]
                        be[color=blue][color=green][color=darkred]
                        > >> >> >related to the build of satellite assemblies.
                        > >> >> >
                        > >> >> >What I can't understand is why the compiler sits almost idle for[/color][/color][/color]
                        long[color=blue][color=green][color=darkred]
                        > >> >> >seconds before completing compilation. It really looks like it's[/color]
                        > >waiting[color=darkred]
                        > >> >for
                        > >> >> >some kind of network response (from the domain controller???).
                        > >> >> >
                        > >> >> >Bruno.
                        > >> >> >
                        > >> >> >
                        > >> >> >"Scot Rose [MSFT]" <scotr@online.m icrosoft.com> a écrit dans le[/color]
                        > >message[color=darkred]
                        > >> >de
                        > >> >> >news:SvHT8n6cD HA.2108@cpmsftn gxa06.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[/color]
                        > >Domain[color=darkred]
                        > >> >> >> http://support.microsoft.com/?id=318738
                        > >> >> >>
                        > >> >> >> This is 'supposed' to be fixed, but might be worth a look. You[/color][/color][/color]
                        may[color=blue][color=green]
                        > >need[color=darkred]
                        > >> >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 : scotr@online.mi crosoft.com <Remove word online. from[/color]
                        > >address>[color=darkred]
                        > >> >> >>
                        > >> >> >> This posting is provided "AS IS", with no warranties, and confers[/color][/color][/color]
                        no[color=blue][color=green][color=darkred]
                        > >> >> >rights.
                        > >> >> >>
                        > >> >> >>
                        > >> >> >>
                        > >> >> >>
                        > >> >> >> --------------------
                        > >> >> >> >From: "Bruno Jouhier [MVP]" <bjouhier@clu b-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: <eBR9f4LcDHA.74 8@TK2MSFTNGP10. phx.gbl>
                        > >> >> >> >Newsgroups:
                        > >> >>
                        > >>microsoft.pub lic.dotnet.lang uages.csharp,mi crosoft.public. dotnet.vjsharp
                        > >> >> >> >NNTP-Posting-Host: f06a-12-232.d1.club-internet.fr[/color][/color][/color]
                        212.194.131.232[color=blue][color=green][color=darkred]
                        > >> >> >> >Path:[/color]
                        > >cpmsftngxa06.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl[color=darkred]
                        > >> >> >> >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.vjshar p:4386
                        > >> >> >microsoft.publ ic.dotnet.langu ages.csharp:181 364
                        > >> >> >> >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                        > >> >> >> >
                        > >> >> >> >I'm currently experiencing a strange phenomenon:
                        > >> >> >> >
                        > >> >> >> >At my Office, Visual Studio takes a very long time to compile[/color][/color][/color]
                        our[color=blue][color=green][color=darkred]
                        > >> >> >solution
                        > >> >> >> >(more than 1 minute for the first project).
                        > >> >> >> >At home, Visual Studio compiles the same solution much faster[/color]
                        > >(about[color=darkred]
                        > >> >10
                        > >> >> >> >seconds for the first project).
                        > >> >> >> >
                        > >> >> >> >My home computer is only marginally faster than the one I have[/color][/color][/color]
                        at[color=blue][color=green]
                        > >the[color=darkred]
                        > >> >> >office
                        > >> >> >> >(P4 2.53 vs. P4 2.4, same amount of RAM).
                        > >> >> >> >On the slow machine, the CPU usage is very low, especially at[/color][/color][/color]
                        the[color=blue][color=green]
                        > >end[color=darkred]
                        > >> >of
                        > >> >> >the
                        > >> >> >> >compilation phase (once the progress bar is at the end, waiting[/color][/color][/color]
                        for[color=blue][color=green][color=darkred]
                        > >> >the
                        > >> >> >> >"build complete" message). This low CPU phase seems to account[/color][/color][/color]
                        for[color=blue][color=green]
                        > >the[color=darkred]
                        > >> >> >> >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[/color][/color][/color]
                        have[color=blue][color=green]
                        > >in[color=darkred]
                        > >> >> >our
                        > >> >> >> >office. And the behavior is not due to the corporate antivirus[/color]
                        > >because[color=darkred]
                        > >> >we
                        > >> >> >> >turned it off.
                        > >> >> >> >
                        > >> >> >> >I'm puzzled (and a bit frustrated). Could this be due to the[/color][/color][/color]
                        fact[color=blue][color=green]
                        > >that[color=darkred]
                        > >> >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[/color][/color][/color]
                        so[color=blue][color=green]
                        > >far[color=darkred]
                        > >> >> >> >because I saw small bursts of activity in lsass.exe during the[/color][/color][/color]
                        low[color=blue][color=green]
                        > >CPU[color=darkred]
                        > >> >> >> >phase.
                        > >> >> >> >
                        > >> >> >> >Anybody experienced something like this? Any clues on what could[/color]
                        > >cause[color=darkred]
                        > >> >> >this?
                        > >> >> >> >
                        > >> >> >> >Bruno.
                        > >> >> >> >
                        > >> >> >> >
                        > >> >> >> >
                        > >> >> >>
                        > >> >> >>
                        > >> >> >
                        > >> >> >
                        > >> >> >
                        > >> >>
                        > >> >>
                        > >> >
                        > >> >
                        > >> >
                        > >>
                        > >>[/color]
                        > >
                        > >
                        > >[/color]
                        >
                        >[/color]


                        Comment

                        • Chris Capel

                          #27
                          Re: Visual Studio compiles slowly, low CPU usage

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

                          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


                          Comment

                          Working...