# JVM结构剖析

每个Java开发人员都知道字节码经由JRE（Java运行时环境）执行。但他们或许不知道JRE其实是由Java虚拟机（JVM）实现，JVM分析字节码，解释并执行它。

JVM中文逻辑结构图如下：

![](/files/-Ltdv9mMKFHuCHOn6hIh)

JVM官网结构图：

![](/files/-Ltdv9mOGvKXHn30j-HK)

## JVM是如何工作的？

如上面架构图所示，JVM分为三个主要子系统：

1. 类加载器子系统（Class Loader Subsystem）
2. 运行时数据区（Runtime Data Area）
3. 执行引擎（Execution Engine）


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tuonioooo-notebook.gitbook.io/performance-optimization/jvmyou-hua-pian/213.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
