How to find a SSMS instance consuming the most of memory?

  • I usually open multiple SSMS's in my PC, and at times when computer is running slowly, I check Windows Task Manager to find out who consumes the most in Processes tab. But how to relate it to my icon in TaskBar ? They all the same.

  • Wouldn't it be easier to open connections to multiple SQL instances from one single SSMS? Each SSMS will need it's own resources, so opening up only one SSMS will perform better.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • Maybe it would be easier, but I have several servers: dev, test, UAT, prod. In order not to mix, I have one SSMS per server, with color-coded status panel in the buttom.

    In this case it's easier, I think, to avoid a situation when you think you are in dev and running some delete or truncate and right after that you suddenly find that you are actually in production.

  • I see your point although you can also colorcode the query-windows in SSMS. Register the instances in registered servers and apply a different color for each instance under the "connection properties" tab. If you connect through these registrations the query-windows will have a colored status bar.

    If you want to look at resource-usage of each separate SSMS I don't think that can easily be done. Perhaps the "process explorer" from Sysinternals can give you a bit more insight.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • HanShi (2/28/2014)


    I see your point although you can also colorcode the query-windows in SSMS. Register the instances in registered servers and apply a different color for each instance under the "connection properties" tab. If you connect through these registrations the query-windows will have a colored status bar.

    If you want to look at resource-usage of each separate SSMS I don't think that can easily be done. Perhaps the "process explorer" from Sysinternals can give you a bit more insight.

    If you aren't familiar with Process Explorer, I would highly recommend it. For your specific need, they have a "Find" icon you can drag onto a specific window and it'll tell you all about it. There's a level of detail there that you won't find in many other tools.

    Also, HanShi is exactly right about the Connection Properties tab...Use custom color check box. You can specify any color you want.

  • Ed Wagner (3/3/2014)


    If you aren't familiar with Process Explorer, I would highly recommend it. For your specific need, they have a "Find" icon you can drag onto a specific window and it'll tell you all about it. There's a level of detail there that you won't find in many other tools.

    They also have the reverse. For processes with windows (like SSMS) you can right-click on the offending process's line in Process Explorer, go to the "Window>" sub-menu and select "Bring to Front" to see which SSMS instance is the one taking so much memory.

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply