如果代码检测没有快速找到泄露,则您可能需要执行一些应用程序转储并分析它们以找到引用增加了的对象。
If code inspection does not quickly find the leak, you will probably need to take some application dumps and analyze them to find the objects whose references are growing in size.
在这种情况下,应用程序错误日志、或应用程序转储中的堆栈跟踪,通常很难为找出产生问题的确切代码行提供实际的帮助。
In such cases, error logs from the application, or stack traces from the application dumps, often provide little or no help in pinpointing the exact line of code where the problem originates.
程序在运行中时会生成后续转储。
当您检查help是否为程序的恰当命令行选项(这是vmap . count (“ help ”)所做的工作)时,options对象将被转储到cout。
When you check whether help is the relevant command option for the program (this is what vmap.count (" help ") does), the options object is dumped to cout.
配合dump的程序是restore,它用于从转储映像还原文件。
The companion program to dump is restore, which is used to restore files from a dump image.
以前,应用程序只有到执行时才会检测到此错误,并产生错误消息和一个存储转储。
Previously, the application would not have detected this error until execution, producing error messages and a storage dump.
比较两个堆转储中应用程序对象的数目。
Compare the number of application objects in each heap dump.
这些转储文件包含了运行中应用程序的完整内存镜像—所有信息和数据都采用hprof格式表示,包括所有原生内存和线程信息。
These dumps contain the entire memory image of the running application - all the information and data in the HPROF format, as well as all of the native-memory and thread information.
一种报告在转储中查找到的信息的分析程序;例如,找到的地址空间数量、所有找到线程的堆栈信息,等等。
An analyzer that simply reports information it finds in the dump; for example, the number of address Spaces found, the stack information for all threads found, and so on.
RAD的配置和日志透视包含一些视图,用来分析你的应用程序的内存使用,和通过比较两个堆转储的高级算法来检测这些泄漏。
RAD's profiling and logging perspective includes views for analyzing your application's memory usage and detecting these leaks through advanced algorithms that compare two heap dumps.
这个在应用程序生命周期的早期获取的堆转储称为基准堆转储,可在执行比较分析时使用。
This heap dump taken early in the life of the application is called the baseline heap dump and you use it when performing a comparative analysis.
这个组织结构图应用程序访问了一个员工信息的XML转储。
The org chart app accesses an XML dump of employee information.
为此,您需要了解为其生成堆转储的应用程序的结构或实现。
To do this, you need to know the implementation or structure of the application for which the heap dump was generated.
尽管JVM在崩溃时生成堆转储,但您可以将其与在应用程序启动后获取的堆转储相比较,进一步了解内存是如何使用的。
Even though the JVM generates a heap dump when it crashes, you can learn much more about how memory is being used by comparing it to a heap dump taken just after your application has started.
很多XML应用程序都是在转储自数据库或遗留应用程序的原始xml基础上构建的。
Many XML applications build on raw XML dumps from databases and legacy applications.
在那种情况下,即使您在一个自动测试系统中运行您的净化程序,当一个错误发生时,它将额外的消息转储到Purify日志中,那将帮助您鉴定这个问题。
In that case, even if you run your purified program through an automated test suite; when an error occurs, it will dump extra messages into the Purify log that will help you identify the problem.
gdb显示哪行代码导致程序发生核心转储。
The gdb shows what line of code caused the program to core dump.
设置 override_signal_handling 可以确保该程序终止并进行核心转储,即使应用程序已经对这些信号进行了处理。
Setting override_signal_handling ensures that the program terminates and core, even if these signals have been handled by the application.
在gd b外运行示例程序eg1将会导致核心信息转储。
Running our example program eg1 outside of GDB will result in a core dump.
jstack是一个可以返回在应用程序上运行的各种各样线程的一个完整转储的实用程序,您可以使用它查明问题。
Jstack is a utility that returns a complete dump of the various threads running in an app, which you can then use to pinpoint the problem.
DumpNameSpace工具提供JNDI名称树内容的一个简单转储,该转储对于某个特定服务器上的应用程序是可见的。
The DumpNameSpace tool provides a simple dump of the contents of the JNDI name tree visible to applications at a particular server.
将下面的命令行选项添加到应用程序上会在Example. trigger方法被调用时产生一个系统转储文件。
Adding the following command-line option to the application produces a system dump when the Example.trigger method is called.
这将产生如清单3所示的输出,其中显示DWReport分析程序判断出转储是由Windowsxp生成的。
This gives you the output in Listing 3, which shows that the DWReport analyzer has determined that the dump was created on Windows XP.
override_signal_handling当MALLOCDEBUG检测到内存错误,它会强迫该程序使用SIGSEGV或SIGABRT进行核心转储。
Override_signal_handling When MALLOCDEBUG detects memory errors, it forces the program to core using SIGSEGV or SIGABRT.
一种示例策略通过取得多个堆转储(使用工作负载管理来维护应用程序的性能)以进行分析,从而对内存泄漏通知做出反应。
On example policy would react to a memory leak notification by taking multiple heap dumps (using workload management to maintain the performance of the application) for analysis.
一种策略通过取得多个堆转储(使用工作负载管理来维护应用程序的性能)以进行分析,从而对内存泄漏通知做出反应。
One policy might react to a memory leak notification by taking multiple heap dumps (using workload management to maintain the performance of the application) for analysis.
此工具能够分析从遇到Out Of MemoryError问题的生产环境应用程序服务器中获得的非常大的内存转储(将需要2GB或更多的RAM)。
The tool is capable of analyzing very large sized memory dumps (will require 2 GB or more RAM) obtained from production environment application servers encountering OutOfMemoryError issues.
转储文件包含您的程序在某个时间点(通常在崩溃之后)的状态的快照。
Dump files contain a snapshot of your program's state at some point in time, usually after a crash.
调试转储文件时,您进行调试的计算机必须能够访问该程序的PD b符号文件和二进制文件。
When you debug a dump file, the computer on which you debug must have access to the PDB symbol files and the binaries for the program.
如何:生成64位应用程序的转储文件。
应用推荐