Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道您可以在启动时使用 -Xmx 设置最大堆大小,但是否可以在运行时动态更改它?
是否有任何工具或(未记录的)api 可以让我这样做?
不,这是不可能的。
内存结构一旦确定就无法更改