Best practices to optimize memory usage in ASP.NET projects

We're using R# 2.5.1 on 1GB machines, mainly ASP.NET 2.0 projects. VS2005 SP1 is installed. We noticed that memory usage of VS 2005 goes up since R# was installed, it easily reaches 500 MB. At that point VS becomes very slow and unresponsive.

I think the memory "leak" has mainly to do when I edit a lot of ASPX pages, it doesn't seem to occur when editing C# files.

When looking at other threads, it seems that we kind of have to live with this fact, it doesn't seem to go away soon - or am I wrong here?

I want to ask for "best practices" to minimize the impact of this memory leak. What do other users do (preferably which also work with ASP projects) to keep them working (other than restarting VS every 2 hours). Are there any proven concepts to reduce or eliminate the memory leak? Just closing the ASPX page in the editor doesn't seem to help much.

Thanks for any help
Urs

2 comments
Comment actions Permalink

Urs,

have you tried the lastest nighlties for 2.5? Memory usage for ASP have been
improved there.

The link is http://www.jetbrains.net/confluence/display/ReSharper/ReSharper2.5Nightly+Builds

Hope this helps,
Friendly,
Dmitry

We're using R# 2.5.1 on 1GB machines, mainly ASP.NET 2.0 projects.
VS2005 SP1 is installed. We noticed that memory usage of VS 2005 goes
up since R# was installed, it easily reaches 500 MB. At that point VS
becomes very slow and unresponsive.

I think the memory "leak" has mainly to do when I edit a lot of ASPX
pages, it doesn't seem to occur when editing C# files.

When looking at other threads, it seems that we kind of have to live
with this fact, it doesn't seem to go away soon - or am I wrong here?

I want to ask for "best practices" to minimize the impact of this
memory leak. What do other users do (preferably which also work with
ASP projects) to keep them working (other than restarting VS every 2
hours). Are there any proven concepts to reduce or eliminate the
memory leak? Just closing the ASPX page in the editor doesn't seem to
help much.

Thanks for any help
Urs

--
Dmitry Lomov
Technical Lead/Software Architect
JetBrains, Inc.
"Develop With Pleasure!"


0
Comment actions Permalink

Dmitry, I tried the build marked "2.5.2 RC" and it indeed seems to make some differences. But I still feel that the memory usage is very high and increasing over time (and not decreasing significantly when closing all windows). So I guess there are still more memory leaks out there to find on our part :)

Apart from installing the 2.5.2 RC release, here a short list of things I did to increase VS responsiveness and speed (not all of them are related to memory usage and R#, but they all help make VS more responsive):

- switch off navigation bar for C# and ASP pages and instead using the excellent R# "File Structure" Window
(Tools -> Options -> Text Editor -> C# | HTML -> Navigation Bar

- switch off HTML Validation
(Tools -> Options -> Text Editor -> HTML -> Validation -> Show Errors

- close ASPX page as soon as editing is done

- temporarely turn off Resharper Code Analysis if heavy ASPX editing has to be done
(Resharper -> Options -> Highlighting -> Highlight Errors and Warnings

still looking for more tips to improve speed and optimize memory usage...

0

Please sign in to leave a comment.