SSMS 2017 becomes sluggish over time since installing SQL Prompt 9
DBAJohnny
Posts: 30 Bronze 2
in SQL Prompt
I have been on SSMS 2017 (build 14.0.17199.0) since before the release of SQL Prompt 9. I often work on a given script over several days, and have found that, since installing SQL Prompt 9, SSMS becomes increasingly sluggish over time.
When the response time becomes unbearable, I can close SSMS and reopen, and SSMS behaves normally again, at least for a time.
But I'm having to do this restart every three-four days. Is this a known issue?
When the response time becomes unbearable, I can close SSMS and reopen, and SSMS behaves normally again, at least for a time.
But I'm having to do this restart every three-four days. Is this a known issue?
Tagged:
Answers
I raised a ticket regarding CPU allocation which describes the same behavior. So it would be interesting to know if you can see a massive CPU allocation when this issue comes up.
Torsten
Thanks for posting.
Our development team has lined up some work to improve Prompt in term of slowness issue. It would be very helpful if you could:
1- Confirm how many tabs do you have open when the issue started
2- Confirm if disable Code Analysis function make any difference
3- Share a sample script with us in order to reproduce the issue locally here
4- Confirm the full version number of your SQL Prompt
Thanks for your assistance and sorry for the inconvenience caused.
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Tianjiao_Li: Thank you for getting back to me. Here's a first pass at answers:
Thanks for your reply.
We appreciate your concern of publishing your scripts here. We'll be in touch through email shortly.
Thanks.
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Since my last posting (Dec 22nd), I have been running with Code Analysis turned off. I have not noticed any sluggishness since then. I have been away from my desk for extended times in the interim, however, due to the holidays, so I'll post an update toward the end of the week.
Thanks again for your help,
Jonathan
I turned off code analysis for a few weeks now and did not encounter any cpu problems anymore.
Maybe it is worthwhile considering to disable code analysis by default but check the code on demand using a shortcut or context menu instead.
Torsten
I appreciate the help towards clean code that the Code Analysis feature gives, and would really like to work with it turned on, if the excessive CPU usage could be resolved. It's interesting that I could work a couple days with Code Analysis turned on before the excessive CPU issues started.
I'll turn on Code Analysis again and see if the new build makes any difference.
Thanks for your update and we've logged this issue as SP-6767 in our internal bug tracking system.
It would be very helpful if you can enable verbose logging, reproduce the sluggishness (with Code Analysis on apparently) and send in the log file.
Thanks!
Tianjiao Li | Redgate Software
Have you visited our Help Center?
How do I enable verbose logging?
Thanks for the update.
Please go to SQL Prompt- Help -Enable verbose logging.
Thanks.
Tianjiao Li | Redgate Software
Have you visited our Help Center?
However, my machine has been up with scripts open for most of a week and no noticeable sluggishness yet.
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Thanks for your patience with this issue.
Our development team has done some work relating to this issue in the latest release.
Can you please upgrade or use this installer and let us know if it helps?
Tianjiao Li | Redgate Software
Have you visited our Help Center?
My team and I upgraded to Prompt 9.1.2.4363 with SSMS 14.0.17224.0. We have been having the same issues described above. It gets to the point we are trying to add square brackets and the UI will freeze for 5-10 seconds. Have there been any efforts to resolve this issue or any other configuration settings we should consider?
Can you please try:
Tianjiao Li | Redgate Software
Have you visited our Help Center?
We will try your suggestions and get back to you. Thanks!
I seem to be experiencing similar issues to this with my SQL Prompt 9 on SSMS 17.5.
I have tried all of the above and still have issues.
The sluggish occurs when doing simple things as typing a 'REPLACE' it the Prompt tries to pickup what I am typing to provide suggestions.
I have turned code analysis off also and it still occurs, when I turn the suggestions off for SQL Prompt the issue goes away.
Not going to lie the speed at which I type queries it really slows you down when you type a word and the SQLP suggestions takes longer to 'check' each letter than the next 2 words I type.
For the time being I am going to have to turn SQLP, I only recently purchased the upgrade also, wish I hadn't of done so now.
Cheers
- The log file captioned itself "SQL Test," although I generated it from the help submenu under SQL Prompt.
- It also seems that the verbose setting got turned off at some point.
I'm not on the latest version of SQL prompt, but will be installing that shortly.Thanks for your post.
Can you try the latest version to see if the problem still exists? It is available for direct download in my link below.
ftp://support.red-gate.com/patches/SQLPrompt/28Mar2018/SQLPrompt_9.1.5.4619.exe
Do let us know how you get on with it and please send us a ticket if you are still experiencing the problem and are within a support and upgrades contract.
Kind regards
Richard Lynch.
Redgate Software
What didn't work:
- Tried suggestions above (disabling code analysis etc). Didn't help
- Reinstalled latest SSMS (17.8.1) and SQL Prompt (9.2.2). Still same "Not responding" on right-click 10-15sec delays each time.
- Uninstalled only SQL prompt. Worryingly SSMS still slow
What worked:
Tried option from another redgate thread to disable all redgate addons
After removing all the redgate extensions, SSMS snapped back to responsive and how it should be.
Reinstalled SQL Prompt. SSMS continues to work properly no delays (suggests/code analysis are enabled)
So am assuming it must be one of the other addons (SQLSearch, SQLDocs ..) causing the delays. Haven't tried putting back to see which one did it.
- Installed SQL Prompt 9.4.6.7396
- Installed SQL Source Control 7.0.4.8725
- Switched SSMS to use the (officially unsupported) dark theme..
Per Tianjiao_Li's March 2018 post (above), I've now turned off SSMS' native intellisense. I've also turned on verbose logging. If I have to crash out SSMS again, I'll upload the log file..