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.
我认为 JVM 总是占用与 -Xms 等效的连续内存块。如果配置的值不可用,则 JVM 初始化失败。
在上述观点中,如何查找 Solaris 平台上可用的连续物理内存块的数量。
JVM 不需要连续的物理内存区域。它使用的是虚拟内存。
由于在启动 JVM 时不应分散可寻址空间,因此 -Xms 选项的限制仅取决于进程可用的虚拟内存大小。最多 4 GB 减去为 32 位 JVM 分配的非堆内存(堆栈、本机等)的区域,并且仅受swap -s64 位 JVM 上系统可用虚拟内存大小 ( ) 的限制。
swap -s