1

Topic: Search memory leaks on

All greetings! Colleagues, and impart experience as it is possible to search effectively for memori-faces on fighting  to system?. Singularities such: - at leak on the server already the storage expenditure under a knot, and starts  type.net memory profiler, ANTS memory profiler not a variant,  storages of free are not present, the system hardly  to launch , but long long chews (minutes 30) and at attempt  to process (even minutes on  fades) and as a result falls, and sometimes and worker process brings down. - here the good technics (through  and windbg), but it as I see for kresh-dampov.  to remove mini-damp process (in processexplorer there is such feature), but in it  is not present  about storage. At attempt to remove full  - again worker process was killed. Can any there is no that method of removal  I use (again  a process-explorer feature)?... - it is interesting somehow  to process and to understand what real deal on.Net to objects. .  variants possible over-dohrena and a method "thought added dens, updated system, we wait for results" it is possible to spend week, not a variant.  both situations rare and time from time can be different. The technics is interesting that on working system to remove  and to analyze. Somebody such can? Or by means of something?...

2

Re: Search memory leaks on

MH> - here the good technics (through  and windbg), but it as I see for kresh-dampov.  to remove mini-damp process (in processexplorer there is such feature), but in it  is not present  about storage. At attempt to remove full  - again worker process was killed. Can any there is no that method of removal  I use (again  a process-explorer feature)?... Process-explorer probably removes  which does not approach you. It is necessary so:  to process WinDBG necessary to you , you type.dump-ma <\.dmp> then you can beat further or it will be disconnected. And  already to analyze at itself it is local on a computer.

3

Re: Search memory leaks on

Hello, MadHuman, you wrote: MH> All greetings! MH> colleagues, and impart experience as it is possible to search effectively for memori-faces on fighting  to system?. MH> singularities such: MH> - at leak on the server already the storage expenditure under a knot, and starts  type.net memory profiler, ANTS memory profiler not a variant,  storages of free are not present, the system hardly  to launch , but long long chews (minutes 30) and at attempt  to process (even minutes on  fades) and as a result falls, and sometimes and worker process brings down. MH> - here the good technics (through  and windbg), but it as I see for kresh-dampov.  to remove mini-damp process (in processexplorer there is such feature), but in it  is not present  about storage. At attempt to remove full  - again worker process was killed. Can any there is no that method of removal  I use (again  a process-explorer feature)?. . MH> - it is interesting somehow  to process and to understand what real deal on.Net to objects...  variants possible over-dohrena and a method "thought added dens, updated system, we wait for results" it is possible to spend week, not a variant.  both situations rare and time from time can be different. The technics is interesting that on working system to remove  and to analyze. MH> somebody such can? Or by means of something?... So in what a problem in memory leak or why that guzzles a lot of storage? On me the code attentively  is better.

4

Re: Search memory leaks on

WinDbg too hangs? He, if that, is able  to remove operating process (somehow so). Still there is a sense to look at performance counters from.NET CLR Memory (especially Large Object Heap Size, Bytes in all Heaps, Allocated bytes/sec) Happens that on them already it becomes clear where approximately to dig.

5

Re: Search memory leaks on

Hello, Qulac, you wrote: Q> So in what a problem in memory leak or why that guzzles a lot of storage? Guzzles a lot of storage, it is probable owing to leak Q> On me better the code attentively . This by itself) but in kach-ve the additional weapon, would be desirable to seize working technics  that "if that" to meet a problem in readiness.

6

Re: Search memory leaks on

Hello, RushDevion, you wrote: RD> WinDbg too hangs? RD> it if that, is able  to remove operating process (somehow so)? WinDbg not , did not find while  for it. Is as a part of studio, but to put all studio on the working server somehow , also the link on  in article not so working. Do not know a case it is possible where to take only itself WinDbg (without dop th all unnecessary)?. Yes, and whether precisely it differs from process-eksplorernogo full-dampa?... (Did not understand as a screen to interpose into the message? Wanted to show as in process-explorer becomes ful-damp). RD> Still there is a sense to look at performance counters from.NET CLR Memory (especially Large Object Heap Size, Bytes in all Heaps, Allocated bytes/sec) RD> Happens that on them already it becomes clear where approximately to dig. Happens, but unfortunately not in our case. It would be desirable to learn all the same the full deal to receive, time is possibility... It most objectively will be. . And a problem is easier also will faster localize.

7

Re: Search memory leaks on

MH> do not know a case it is possible where to take only itself WinDbg (without dop th all unnecessary)?. I precisely know that it can be downloaded separately, but the specific link I will not give. Try  "WinDbg standalone download". Here, for example, the link on SO (itself did not try)

8

Re: Search memory leaks on

Hello, Temnikov, you wrote: T> Process-explorer probably removes  which does not approach you. T> it is necessary so:  to process WinDBG necessary to you , you type T>.dump-ma <\.dmp> T> then you can beat further or it will be disconnected. And  already to analyze at itself it is local on a computer. Process-explorer removes both mini-damp and ful-damp. But at attempt to remove ful-damp - process filled up and as a result the problem state has been lost. ful-damp process of an explorer it too as ful-damp WinDbg? WinDbg not , did not find while  for it, did not get . Is as a part of studio, but to put all studio on the working server somehow . Not  a case it is possible where to take only itself WinDbg (without dop th all unnecessary)?.

9

Re: Search memory leaks on

Hello, RushDevion, you wrote: MH>> do not know a case it is possible where to take only itself WinDbg (without dop th all unnecessary)?. RD> I precisely know that it can be downloaded separately, but the specific link I will not give. RD> try  "WinDbg standalone download". RD> Here, for example, the link on SO (itself did not try) , thanks, I will look. I will find  in a root topic, for descendants) the link on SO conducts on the same  page as the link in article earlier) while to me came across only such)

10

Re: Search memory leaks on

Hello, MadHuman, you wrote: MH> - at leak on the server already the storage expenditure under a knot, and starts  type.net memory profiler, ANTS memory profiler not a variant,  storages of free are not present, system hardly , And what if to restrict to process volume of accessible storage and  leaks? Thus remaining processes on the server will not test a lack of storage and probably to turn out to remove an allocation damp/card. For restriction it is possible to take that that like Process Governor - https://github.com/lowleveldesign/process-governor With the - maxmem switch Process Governor allows you to set a limit on a memory committed by a process. On Windows committed memory is actually all private memory that the process uses. This way you may use Process Governor to test your.NET applications (including web applications) for memory leaks. If the process is leaking memory you faster get the OutOfMemoryException.

11

Re: Search memory leaks on

Hello, sergeya, you wrote: S> And what if to restrict to process volume of accessible storage and  leaks? S> thus remaining processes on the server will not test a lack of storage and probably to turn out to remove an allocation damp/card. S> for restriction it is possible to take that that like Process Governor - https://github.com/lowleveldesign/process-governor S> S> With the - maxmem switch Process Governor allows you to set a limit on a memory committed by a process. On Windows committed memory is actually all private memory that the process uses. This way you may use Process Governor to test your.NET applications (including web applications) for memory leaks. If the process is leaking memory you faster get the OutOfMemoryException. Thanks. Similar it is the most real variant. To add storages costs money, but losses because of inconveniences and time for analysis of problems are more expensive. Similar as windbg at a lack of resources falls (and brings down process), besides for the period of removal  it  process for notable enough time that causes the full brakes of service and increase of level of anger of clients.

12

Re: Search memory leaks on

Hello, MadHuman, you wrote: MH> - at leak on the server already the storage expenditure under a knot, and starts  type.net memory profiler, ANTS memory profiler not a variant,  storages of free are not present And for what to wait  for storage??  and so consumption growth, and your task shows - to learn, who eats. Though it is all the same silly  when the code should prompt, where at you heavy expenses, queues, etc.

13

Re: Search memory leaks on

Hello, Kolesiki, you wrote: K> And for what to wait  for storage?? That for a specific situation to receive details (how many what objects are created also their data). K> Though it is all the same silly  when the code should prompt, where at you heavy expenses, queues, etc. yes, are 2 methods - to analyze the code and all  variants, and the second knowing what exactly is anomalous to search to it for the reason. 2nd essentially is more productive, especially if  rare/different/is weak repeated.

14

Re: Search memory leaks on

Hello, MadHuman, you wrote: procdump-r-ma <PID>

15

Re: Search memory leaks on

And why on ? I.e. I first of all would try to tear locally similar system and to look, where storage leaks, while it not all flowed away. If leaks are, normally it can be simulated easily, it is not necessary to wait with  three months. And when it on the server already ate all - that you understand from huge  even if it remove? Easier on birdies

16

Re: Search memory leaks on

Hello, notacat, you wrote: N> and why on ? I.e. I first of all would try to tear locally similar system and to look, where storage leaks, while it not all flowed away. If leaks are, normally it can be simulated easily, it is not necessary to wait with  three months. There is nothing because to model, as though all is good also problems should not be, but they are N> And when it on the server already all ate - that you understand from huge  even if it remove? And here it just not a problem when  will be - we understand, here as.  actually very abrupt piece. Already repeatedly helped to untangle difficult problems/kreshi. Without a real state at falling, it is very difficult to understand the reason and to repeat.

17

Re: Search memory leaks on

Hello, zou, you wrote: zou> Hello, MadHuman, you wrote: zou> procdump-r-ma <PID> the Friend, !!!

18

Re: Search memory leaks on

Hello, MadHuman, you wrote: MH> All greetings! MH> colleagues, and impart experience as it is possible to search effectively for memori-faces on fighting  to system?. MH> singularities such: MH> - at leak on the server already the storage expenditure under a knot, and starts  type.net memory profiler, ANTS memory profiler not a variant,  storages of free are not present, the system hardly  to launch , but long long chews (minutes 30) and at attempt  to process (even minutes on  fades) and as a result falls, and sometimes and worker process brings down. MH> - here the good technics (through  and windbg), but it as I see for kresh-dampov.  to remove mini-damp process (in processexplorer there is such feature), but in it  is not present  about storage. At attempt to remove full  - again worker process was killed. Can any there is no that method of removal  I use (again  a process-explorer feature)?. . MH> - it is interesting somehow  to process and to understand what real deal on.Net to objects...  variants possible over-dohrena and a method "thought added dens, updated system, we wait for results" it is possible to spend week, not a variant.  both situations rare and time from time can be different. The technics is interesting that on working system to remove  and to analyze. MH> somebody such can? Or by means of something?... It is possible to use still.NET Memory Profiler or dotMemory and to launch from command line.

19

Re: Search memory leaks on

MH> WinDbg not , did not find while  for it, did not get . Is as a part of studio, but to put all studio on the working server somehow . MH> not  a case it is possible where to take only itself WinDbg (without dop th all unnecessary)?. Earlier WinDbg was a part of any Windows SDK, now most likely the same. It is possible to find on a disk with WinSDK (without installing itself WinSDK) WinDbg installer, names of files (like took from Win8 SDK, precisely I do not remember): "X64 Debuggers And Tools-x64_en-us.msi" "X86 Debuggers And Tools-x86_en-us.msi" Or to launch  WinSDK, there to select from components which are put WinDbg. WinDbg in my opinion very good tool, especially if to be able to use it.