52ky 发表于 2022-9-28 15:42:49

JVM 内存详解

Java堆(每个Java目标在其中分配)是您在编写Java使用程序时使用最频频的内存区域。JVM设计关于将我们与主机的特性阻隔,所以将内存当作堆来思考再正常不过了。您必定遇到过Java堆OutOfMemoryError,它可能是因为目标泄露形成的,也可能是因为堆的大小不足以存储一切数据,您也可能理解这些场景的一些调试技巧。可是随着您的Java使用程序管理不断增加的数据和不断增加的并发负载,您可能就会遇到无法使用常规技巧进行修复的OutOfMemoryError。在一些场景中,即便java堆未满,也会抛出错误。当这类场景发作时,您需求理解Java运行时环境(JavaRuntimeEnvironment,JRE)内部到底发作了啥。
JVM内存详解.pdf

(The Java heap (where each Java object is allocated) is the area of ??memory that you use most frequently when writing Java applications. The JVM is designed to isolate us from the features of the host, so it's only natural to think of memory as a heap. You must have encountered a Java heap OutOfMemoryError, it may be caused by a target leak, or it may be because the heap is not large enough to store all data, and you may also understand some debugging techniques for these scenarios. But as your Java application manages ever-increasing data and ever-increasing concurrent loads, you may encounter OutOfMemoryErrors that cannot be fixed using conventional techniques. In some scenarios, an error will be thrown even if the java heap is not full. When such a scenario occurs, you need to understand what's going on inside the Java Runtime Environment (JRE).
JVM Memory Details.pdf)




页: [1]
查看完整版本: JVM 内存详解