Solved

windbg taking it's time

Posted on 2016-11-04
32
90 Views
Last Modified: 2016-11-13
i have used windbg for some years - system windows 7 64 bit cpu i-7and 16 Gb ram
it works fine; however, some weeks ago, it started to be VERY slow, so as taking more than 5 minutes before ending the opening of the dmp file, sometimes more than 15 minutes
so i think there's something wrong
what can i do to get it to normal speed again? - before it opened in about 1 minute, max 2
0
Comment
Question by:nobus
  • 16
  • 14
32 Comments
 
LVL 69

Expert Comment

by:Qlemo
ID: 41873581
I know this behaviour from debugging custom code with active online Symbol Server. For some reason the search at MS last very long for "unknown" DLLs.
For test, remove the symbol server setting.
0
 
LVL 92

Author Comment

by:nobus
ID: 41873852
ok - but which server symbol path do i need then?
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41874347
Ideally one with the required PDBs ;-). If you don't set any path, no PDB/symbol info is searched if not found in the executables / default location. This is what I would do - set it to NOTHING.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 92

Author Comment

by:nobus
ID: 41874354
ok - i'll try it and report back
bad idea - it reclaims it needs a path....
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41874465
I see what you mean. Providing nothing else than a local path like C:\ should help.
0
 
LVL 92

Author Comment

by:nobus
ID: 41874523
ok the first part went fast, but it says "Kernel symbols are WRONG. Please fix symbols to do analysi"

and after giving the error code it hangs in the command line with Debuggee not connected
can that also be speeded up ?
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41874791
It hangs? I don't think so. The part while the debugger is blocked should not last longer than say one minute. Unless your dump is more than the required few MB - is it a full dump? If so, the MiniDump is enough; you will not find more info by having a bigger dump file.
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41874798
Should you need a more informative dump info, you'll run !analyze -f as suggested, but you should have a symbol server for the kernel files then (which again will introduce lags from downloading gigabytes of PDB files). The proper symbol server path looks like
    srv*c:\Windows\Symbols*http://msdl.microsoft.com/download/symbols
More recent WinDbg (like the one from Windows 10 Kit I use now) will show more info in the status bar about progress, btw.
0
 
LVL 92

Author Comment

by:nobus
ID: 41875178
sorry, i may have worded it poorly; i meant i don't see anything going on; normally after a minute or so the command line should be cleared to run commands
it's a normal minidmp file
i'll test your symbol path, i used this one, as suggested by MS :
srv*c:\symbols*https://msdl.microsoft.com/download/symbols

do you mean  !analyze -v    perhaps?
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41875193
Sorry about the analyze, of course it is -v.
The local folder you use for symbols doesn't matter as long as you keep it the same. If you change the folder between WinDbg runs symbols will get downloaded again, unless you move the existing content over into the new folder.

Does WinDbg behave the same if you open the same minidump again without quitting the debugger? It should be much faster.

Which size is the minidump exactly?
0
 
LVL 92

Author Comment

by:nobus
ID: 41875359
the size = 270 kb
i'll test if it is faster the second time
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41875378
It's a kernel or application dump? Looks like the latter, and then you should have PDB files to get more info ...
0
 
LVL 92

Author Comment

by:nobus
ID: 41875388
>>  then you should have PDB files to get more info ...  <<  i don't understand, what do you mean??
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41875412
Please anwer my question. Kernel or application minidump?
A PDB file is a symbol file containing function info including parameter names and their call address inside of DLL, SYS and EXE files. MS can only supply kernel related stuff (and some driver info), but of course nothing about custom apps.
0
 
LVL 92

Author Comment

by:nobus
ID: 41875900
well - did not even know that makes a difference, or if these existed
the dmp tells me in the start "Mini Kernel Dump File:"
does that answer your question?  if not please tell me where to find the info you want

also - it says "ERROR: Symbol file could not be found" ??? how is that possible, since it uses the MS server?
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41875947
Strange that you do not know whether it is an kernel or app dump. Is this a file you just found somewhere?
As said already, the MS server cannot host every symbol file.
0
 
LVL 92

Author Comment

by:nobus
ID: 41876081
i use it to debug dmp files from askers on EE, so i don't know where it comes from
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41876109
Then it is usually a kernel dump from a blue screen, and the unknown symbols non-MS drivers. There might be more info on the crashing system, installed together with the driver files.
0
 
LVL 92

Author Comment

by:nobus
ID: 41881690
so there's nothing to do to speed it up?
can you attract more experts to this Q?
0
 
LVL 92

Author Comment

by:nobus
ID: 41882549
i agree- but i don't know the prpoer topic names - they don't show a list anymore
0
 
LVL 92

Author Comment

by:nobus
ID: 41882573
well - correct me if i'm wrong, but i have thought a computer was created to help us find things fast, not hinder us for finding them
poor coding ...from MS, and EE
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41882583
Don't forget - your topic here is to use a computer to help others with issues with a computer, an issue they would not have without the tool :p.
0
 
LVL 92

Author Comment

by:nobus
ID: 41883386
what do you mean with "an issue they would not have without the tool :p. " ??  am i responsible for their problem??
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41883478
You are not responsible. But you complained about computers being an obstacle instead of a help. I referred to "computer" as "tool" here.

I don't agree to your statement. Of course using a tool (= computer) introduces new issues, and a complex machine has complex issues.
You are trying to perform a diagnostic something you do not know much about (because it is an unknown computer system). WinDbg tries its best to find things out. That just lasts. Why being in a hurry? Setting up the symbol server path correctly, and always using the same path, is all you can do to speed up BSOD analysis, AFAik.
0
 
LVL 92

Author Comment

by:nobus
ID: 41883699
ok, but why did it work fast till- say a month ago?
and now it takes 30 minutes or more for analysing 1 dmp file??

that question is not adressed yet, only how the settings normally are ( and they were correct)
can it be because of updates?
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41883800
Well, if I open a minidump after having set up the full smbol server path, and set up   !sym noisy , I get this:
SYMSRV:  BYINDEX: 0x18A
         c:\windows\symbols*http://msdl.microsoft.com/download/symbols
         halaacpi.dll
         4CE7C66949000
SYMSRV:  BYINDEX: 0x18A
         c:\windows\symbols*http://msdl.microsoft.com/download/symbols
         halaacpi.dll
         4CE7C66949000
SYMSRV:  c:\windows\symbols\halaacpi.dll\4CE7C66949000\halaacpi.dll - file not found
SYMSRV:  c:\windows\symbols\halaacpi.dll\4CE7C66949000\halaacpi.dll - file not found
SYMSRV:  HTTPGET: /download/symbols/index2.txt
SYMSRV:  HTTPGET: /download/symbols/index2.txt
SYMSRV:  HttpSendRequest: 12002 - ERROR_INTERNET_TIMEOUT
SYMSRV:  HttpSendRequest: 12002 - ERROR_INTERNET_TIMEOUT
SYMSRV:  HTTPGET: /download/symbols/halaacpi.dll/4CE7C66949000/halaacpi.dll
SYMSRV:  HTTPGET: /download/symbols/halaacpi.dll/4CE7C66949000/halaacpi.dll
SYMSRV:  HttpSendRequest: 12031 - ERROR_INTERNET_CONNECTION_RESET
SYMSRV:  HttpSendRequest: 12031 - ERROR_INTERNET_CONNECTION_RESET
SYMSRV:  c:\windows\symbols\halaacpi.dll\4CE7C66949000\halaacpi.dll not found
SYMSRV:  c:\windows\symbols\halaacpi.dll\4CE7C66949000\halaacpi.dll not found
SYMSRV:  http://msdl.microsoft.com/download/symbols/halaacpi.dll/4CE7C66949000/halaacpi.dll not found
SYMSRV:  http://msdl.microsoft.com/download/symbols/halaacpi.dll/4CE7C66949000/halaacpi.dll not found

Open in new window

Those lines I see visble delays are all at trying to reach the MS symbol server. But I'm far from 30 minutes, it is no more than maybe 5 here.
0
 
LVL 92

Author Comment

by:nobus
ID: 41884458
i would be happy with that result; i'll try the sym noisy command also
0
 
LVL 92

Author Comment

by:nobus
ID: 41885153
well  -it seems i have found the reason
strangely - the windbgwas slow with the latest 2 dmp files
i got other ones in the last few days, and they seem to work normal

since you're the only respondent here, how do you want me to close this Q ?
0
 
LVL 69

Accepted Solution

by:
Qlemo earned 500 total points
ID: 41885250
Well, of course the speed depends on the minidump contents. If it refers to a 3rd-party driver, most likely no debug info is available at MS, and searching might last some time. If there are only known drivers and DLLs involved, analysis is faster.
I still do not have a clue why that makes an enormous difference in time needed - that is something only you can see, as it depends on the dump you analyze and your local environment Including Internet connection. With only local symbols it is significantly faster than using a symbol server, if  I got you right, and that is what I would have expected.

I'm convinced I answered the question as good as possible without having full access.  But only you can know whether that is your perception too.
0
 
LVL 92

Author Closing Comment

by:nobus
ID: 41885309
ok you've earned it
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Removing Administrative privilege 4 95
DVD or CD-Rom Useage history in Windows event viewers 8 36
windows 10 versions 3 34
Problem to setup GUI 11 33
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question