Slow and High Memory Usage

Thread is closed for posting
44 posts, 0 answers
  1. Ben
    Ben avatar
    12 posts
    Member since:
    Jul 2010

    Posted 21 Mar 2011 Link to this post

    I am using the latest Q1 2011 release (2011.1.315.3) on some projects and on different computers I get higher than normal devenv.exe and JustCodeAnalysis.NET4.exe above 1GB with ~700MB just for JC.  The solution is a small xna app with 5 projects.

    When editing some code in any project the devenv cpu goes up and vs2010 is very laggy. (2 x dual core xenons 2.8GHz 16GB RAM).

    Might have to go back to coderush xpress 

    Edit: Do all Telerik dev use (or must use) JustCode?
  2. john81
    john81 avatar
    36 posts
    Member since:
    Jan 2010

    Posted 21 Mar 2011 Link to this post

    I had the same issues in Q3 2010 and they are still there in Q1 2011.  Visual Studio is using twice as much memory as it does without JustCode and is sluggish.  I frequently have multiple copies of Visual Studio open and my Core 2 Quad computer with 4 GB of RAM just slows to a crawl and becomes unusable.  I can't work when I have to wait 30 seconds for Visual Studio to respond to a mouse click.  This seems like a great product but until you guys can solve the performance it's not worth having it installed.
  3. Jaime Bula
    Jaime Bula avatar
    41 posts
    Member since:
    Apr 2009

    Posted 29 Mar 2011 Link to this post

    The product is awesome but lags visual studio heavily, my I7 crawls all the time.

    The product is also bloated, too much new feature, none of the real uses, may be some multicore processing would me nice!
  4. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 01 Apr 2011 Link to this post

    Hi all,

    Sorry to hear that you have such problems with Visual Studio UI responsiveness when JustCode is installed. We are taking your reports very seriously. It is a top priority for us that JustCode does not get in the way of working in Visual Studio.

    In order to find out what exactly causes those problems in your working environment it would be great if you could answer a few questions regarding your solution and style of work:
    • How many unit tests are in your solution?
    • How many errors or warnings does JustCode report for your solution?
    • How many files do you usually have open?
    • Do you edit large files (>5000 lines of code)?
    • Do you have any JustCode visual features enabled? Does the UI responsiveness get better if you disable them (JustCode | Options... | Visual features)?
    • Do you have any information for us that could helps us reproducing the UI responsiveness issues, i.e. is it worse if you perform particular operations?

    Here is what we have done so far since the Q1 release:
    • We fixed one issue which can cause VS responsiveness problems if there are many unit tests in the solution.
    • We fixed a memory leak related to the JC error/warning list which can cause increased VS memory footprint.
    • We fixed the issue that JustCode incorrectly analyzed content files as source code in XNA content projects.
    • We fixed high memory usage of the JustCodeAnalysis process and error checking speed slowdown if many files are open.
    • We reduced the impact JustCode makes on the Visual Studio startup time.
    • We reduced the impact JustCode makes on the Visual Studio solution loading time.
    • We identified another issue which can cause VS responsiveness problems if there are many warnings/errors in the solution. We are working on fixing that.
    • We identified multiple issues with our visual features which can cause VS responsiveness problems and will work on fixing those.

    Everything that is marked fixed in the above-mentioned list and further performance improvements will be included in the next JustCode internal build and also later in the Service Pack. The internal build is scheduled to be released early next week.


    Kind regards,
    Hans Kratz
    the Telerik team
  5. john81
    john81 avatar
    36 posts
    Member since:
    Jan 2010

    Posted 01 Apr 2011 Link to this post

    • How many unit tests are in your solution?
    none
    • How many errors or warnings does JustCode report for your solution?
    differs on solution but over 100
    • How many files do you usually have open?
    8-15
    • Do you edit large files (>5000 lines of code)?
    no
    • Do you have any JustCode visual features enabled? Does the UI responsiveness get better if you disable them (JustCode | Options... | Visual features)?
    yes, didn't try to disable visual features
    • Do you have any information for us that could helps us reproducing the UI responsiveness issues, i.e. is it worse if you perform particular operations?
    I usually have 2-3 instances of Visual Studio open to work on different solutions.  This really does not work at all with JustCode.  After opening the third instance the computer is unusable.

    I did give JustCode a week because I like the features but really it was causing too many problems for me.  Even when I limited my self to one instance of Visual Studio open I had performance issues.  It causes Visual Studio memory usage to go up to about 400MB and then JustCode is using 250MB.  The same solution without JustCode installed uses about 20Mb of memory so there is a major issue here.  The problems I experience are VS is unresponsive (while I'm working it seems to freeze for 20-30 seconds at times) and compile times increase dramatically.  I also have an issue where VS stays minimized and they only way I can bring it back is to use the Switch To button in Task Manager.  My solutions are small, do not have large files and do not have test units.  So maybe it's the amount of errors or the visual indicators.  Hope that helps.  I'll give it another shot in Q2.


  6. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 05 Apr 2011 Link to this post

    Hi John,

    we have just released a new internal build which includes some optimizations. Maybe you could give it a spin? The statistics you provided about the solutions you work with are interesting. We regularly work with solution with thousands of files and 10000 warnings and with multiple instances of Visual Studio open but we do not encounter pause times like this.

    We will be looking into optimizing memory usage but it seems more likely that the pause times are related to something else in particular since you encountered them even with only one instance of Visual Studio running. We have included some debug output for the purpose of debugging latency problems like this in the latest internal build. So it could help us if you try it and send us the log (stored in %USERPROFILE%\AppData\Local\JustCode\Logs\) from a run where you encounter such a problem.
     

    Best wishes,
    Hans Kratz
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. John
    John  avatar
    16 posts
    Member since:
    Jan 2011

    Posted 25 Apr 2011 Link to this post

    JustCode must be having issues that don't relate to the size of the solution. I also have a reasonably modest solution I'm using, and JustCode takes between 477MB and 800MB of my devenv footprint. JustCodeAnalysis.NET4.exe is currently using 652,736K and RAM usage seems to go UP when I reduce the number of errors in the source files.

    I have no unit tests (yet) in these projects.
  8. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 27 Apr 2011 Link to this post

    Hi John ,

    What kind of projects does the solution contain (e.g. Web project/-sites, C#, VB, WPF (XAML))?

    All the best,
    Hans Kratz
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Jaime Bula
    Jaime Bula avatar
    41 posts
    Member since:
    Apr 2009

    Posted 27 Apr 2011 Link to this post

    Hi,

    You didn't ask me, but I have XAML (SIlverlight, 10+ projects) and C# and a Huge Entity Framework Model.

  10. John
    John  avatar
    16 posts
    Member since:
    Jan 2011

    Posted 27 Apr 2011 Link to this post

    The solution contains 3 entity framework models, an asp.net web application, a test project (now) with a few unit tests, and 2 small class libraries
  11. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 06 Jun 2011 Link to this post

    Hi John ,

    we will continue our efforts improving memory usage of the external JustCode process and the code analysis process for the next Q.

    Best wishes,
    Hans Kratz
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Christine
    Christine avatar
    2 posts
    Member since:
    Jan 2008

    Posted 07 Jun 2011 Link to this post

    I really like several features of the JustCode product, but it really slows down Visual Studio to the point that I've had to disable it.  I am running Visual Studio 2010 Ultimate on a Windows XP Profession workstation with an Intel Core i7-860 processor.  The solution I have open in Visual Studio is small...only 2 projects (a class library and a web application).  I hope that improvements will be made soon so that I can integrate the use of JustCode into my development work.
  13. deesnider
    deesnider avatar
    14 posts
    Member since:
    Nov 2008

    Posted 07 Jun 2011 Link to this post

    Have you tried using one of the development/internal builds, if you have access to them?  As either the current 'release' build or the previous dev build caused me issues on Win XP.  Also verify that you don't have any other extensions or add-ins that may conflict with JC.  I think I had issues with that at one point, another extension such as Productivity Power Tools (dont' remember exactly) was adding in some behaviors of its own that might have conflicted with JC or they both ran RAM up.  I disabled what I didn't need from those other extensions.

    Not saying JC doesn't have the problems you note, just some of what I've done and played with and JC seems to be better now than it's ever been as far as performance, maybe it'll help.
  14. Christine
    Christine avatar
    2 posts
    Member since:
    Jan 2008

    Posted 07 Jun 2011 Link to this post

    @deesnider...thanks for the tips!  I'll give them a try. 
  15. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 07 Jun 2011 Link to this post

    I know that this doesn't really qualify as a useful comment, but I'll say it anyway. A lot of our performance issues seemed to go away when we moved from XP to Win7.

    -- 
    Stuart
  16. deesnider
    deesnider avatar
    14 posts
    Member since:
    Nov 2008

    Posted 07 Jun 2011 Link to this post

    Also true for VS 2010 alone.  Performs much better for me on Win7 and uses less memory.
  17. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 07 Jun 2011 Link to this post

    Agreed. Upgrading out dev machines to Win7/VS2010 is the best money out bean counters have spent for some time.

    -- 
    Stuart
  18. John
    John  avatar
    16 posts
    Member since:
    Jan 2011

    Posted 08 Jun 2011 Link to this post

    I'm glad you received the performance benefit of upgrading from XP to Win 7, but that absolutely has nothing to do with the slow performance of JustCode. It is significantly slows down VS on both Win 7 64-bit and Win 2008 64-bit, for sure.
  19. deesnider
    deesnider avatar
    14 posts
    Member since:
    Nov 2008

    Posted 08 Jun 2011 Link to this post

    I use Win 7 x64 at home and have 'no problems' with the performance of JC, to this level.  But just one guy's experience.  I hope they find the reasons for other people having issues.
  20. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 08 Jun 2011 Link to this post

    In fairness, I did say that it wasn't a very useful comment.

    And yes, of course it has a performance impact on VS, well, on the machine as a whole actually, but it is doing a whole bucket lead of stuff.

    You'll have doubtless seen other thread here where a number of people, me included, have been asking for the ability to use JC without the Code Analysis bits running, as it appears that this is what's causing the effects you see. Sadly, it seems, that most of the other JC functionality is only available as a side effect of the Code Analysis. However, the team at telerik towers have made a number of significant improvements in the performance and footprint of JC and I know that they are continuing to find more was to improve it further still.

    FWIW, I run JC on Win7x64 and whilst I do acknowledge it has an impact, I no longer find the impact it has prevents me from using it day-to-day even on very large solutions (10 projects with many, many files).

    -- 
    Stuart
  21. John
    John  avatar
    16 posts
    Member since:
    Jan 2011

    Posted 08 Jun 2011 Link to this post

    No offense intended by my response, either. I just wanted to make sure Telerik didn't think this was an issue that could be resolved simply by using a more current OS. There are definitely signification performance issues in JC as it stands today, and I really hope to see them addressed so it can get to the point of usability for me.

    Based on your comments, I'm guessing our solutions are a bit larger than yours. I know there are ways to restructure the solutions so we don't have so many projects loaded at once, but with the massive refactoring we're doing right now, there's really no other way that makes sense to achieve our refactoring requirements in VS.
  22. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 08 Jun 2011 Link to this post

    Given what it is that JC is doing it stands to reason that any performance impact it has is going to be exacerbated by larger solutions.

    Let's hope your refactoring exercise will result in a solution that is small enough to allow the impact JC has to be manageable.

    --
    Stuart 
  23. John
    John  avatar
    16 posts
    Member since:
    Jan 2011

    Posted 08 Jun 2011 Link to this post

    To clarify again (sorry about that!), JC's performance impact is not acceptable to me or my team on smaller projects, either. If it doesn't become significantly faster and more efficient with its memory consumption, we just won't be able to use it.

    I'd like to use it, particularly since we've paid for it, but I can't use tools that get in the way of my productivity. Tools are supposed to increase my productivity.
  24. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 08 Jun 2011 Link to this post

    On multicore (in particular quadcore) machines the analysis itself is not likely to be the cause of sluggishness or high latency in Visual Studio provided that enough memory is available. So interactivity or high latency is most likely caused by performance issues in the UI portions of JustCode.

    We have identified some of those issues:
    - If lots of errors or warnings are present, this can lead to noticable pauses in particular if the errors/warnings list is grouped or sorted.
    - Colorize identifiers can cause sluggishness.
    - If lots of files are open some sluggishness can occur.

    We are working on resolving those issues.

    In the meantime please check if having Colorize identifiers turned off, having only a few files open and not having the error/warning list sorted improves things. It would be great if you could give us feedback if doing any of this improves things for you.


    Regards,
    Hans Kratz
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  25. John
    John  avatar
    16 posts
    Member since:
    Jan 2011

    Posted 08 Jun 2011 Link to this post

    Thanks for the details. I'll try to find some time to reinstall and tests these tweaks in the near future, and let you know.
  26. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 09 Jun 2011 Link to this post

    Hi John ,

    >>> I'll try to find some time to reinstall and tests these tweaks in the near future, and let you know.

    Cool, that would be really helpful. Please try the latest internal build which already has some improvements in that area.



    All the best,

    Hans Kratz
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  27. Olivier
    Olivier avatar
    1 posts
    Member since:
    Jan 2011

    Posted 02 Aug 2011 Link to this post

    Hi,

    my Visual Studio system slows down often for several seconds.

    my system:
    Intel i7 4 cores 2.8Ghz , 8Gb internal memory, 64bit win7

    output from just code:

    INFO 2011-08-02 13:00:39.095 : High latency: Handling ErrorCheckData elapsed 124

    Memory usage:
    devenv.exe*32 -> 388284K (memory (private working set) from taskmanager)
    Justcodeanalysis.net4.exe*32 -> 268312K (memory (private working set) from taskmanager)
    *seems to increase every second

    My justcode
    settings: do not check for errors (it looks as if just code is doing it anyway, just doesn't report it)
    Version: Q2 2011 (2011.2.713.1)

    My project:
    uses Visual SVN (tortoise)
    large amount of files
    How many unit tests are in your solution -> none
    How many errors or warnings does JustCode report for your solution-> a lot (>100)
    How many files do you usually have open? -> 0-50
    Do you edit large files (>5000 lines of code)? -> yes, a lot bigger
    Do you have any JustCode visual features enabled? -> yes


    Hope it helps
    Best regards
    Olivier

  28. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 15 Aug 2011 Link to this post

    Hi Olivier,

    thanks for your detailed response.

    Your system should be powerful enough to handle all kinds of solutions and the memory usage of the analysis process if within the expected range.

    The output from JustCode means that at one time it took 124 ms to handle some data the code analysis process sent to Visual Studio causing a one-time latency of 124 ms. This does not explain multi-second pauses.

    Can you check if disable the "Color identifiers" option in the Visual aids section of the Options dialog improves performance?

     
    Best wishes,
    Hans Kratz
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  29. Jakkie Esschert van den
    Jakkie Esschert van den avatar
    61 posts
    Member since:
    Sep 2009

    Posted 16 Aug 2011 Link to this post

    I'd like to add a rough observation I made here is that JustCode seems to be slower on ASP.NET projects compared to pure C# projects. It's just a hunch but it might be that processing C# code is a lot faster then processing stuff like javascript or html.
  30. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 19 Aug 2011 Link to this post

    Hello Jakkie Esschert Van Den,

    We have some optimizations for ASP.net websites and web applications scheduled for the next Q release. So stay tuned!

    Greetings,
    Hans Kratz
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top