Set the contents of this file to the JVM maximum heap size required in bytes.
将此文件的内容设置为所需的最大 JVM堆大小(以字节为单位)。
A heap dump is typically a very large file that contains a list of all the objects currently on the JVM heap.
通常,堆转储通常是一个很大的文件,它包含当前jvm堆中所有对象的一个列表。
Running this command tells the JVM to take a "heap dump snapshot" and save it to a file for processing, usually using the jhat utility (which I introduced in a previous article).
运行该命令通知JVM拍摄一个“堆转储快照”,并将其保存在一个文件中以便处理,通常使用jhat实用工具(我在上一篇文章中介绍过)。
Once you've dumped the heap into a binary file, you can use jhat to analyze the binary heap dump file.
将堆转储至一个二进制文件后,您就可以使用jhat分析二进制堆转储文件。
When the cache gets too large to fit into the JVM heap, dynacache disk offload writes the contents of the cache out to a file on disk.
当缓存大于jvm堆时,dynacache磁盘卸载会将缓存内容写到一个磁盘文件中。
Because a heap dump is such a large file, it is not practical to attempt to examine it by hand.
由于堆存储是一个很大的文件,手动检查是不切实际的。
Using the operating system: Use the nondestructive gcore command or the destructive kill -6 or kill -11 commands to produce a core file. Then, extract a heap dump from the core file using jmap
使用操作系统:使用“无害”的gcore命令或破坏性的kill -6 或 kill -11命令来生成一个内核文件。
If you're allocating native resources (memory on the native heap, file descriptors, or whatever), it can be significantly more difficult to arrange timely collection of these resources.
如果你分配了native资源,及时回收这些资源是很困难的。
The metadata portion of the file contains a series of table and heap data structures.
文件的元数据部分包含一系列的表和堆数据结构。
You can then pass source file and line number arguments through to the underlying heap allocation routines, and you will immediately be able to see where a bad allocation originated.
然后,可以将源文件和行号参数传递给基础堆分配例程,并能立即看到错误分配的出处。
You can then pass source file and line number arguments through to the underlying heap allocation routines, and you will immediately be able to see where a bad allocation originated.
然后,可以将源文件和行号参数传递给基础堆分配例程,并能立即看到错误分配的出处。
应用推荐