简体   繁体   English

处理RAM的使用

[英]Process RAM usage

Just a question that i wasn't able to find an answer too after a lot of searching. 经过大量搜索后,我也无法找到答案。

Can a single instance of a java software use more than 10GB of ram on a server that has more than 128GB of RAM installed and still run fine without any issues? 一个Java软件实例是否可以在安装了128GB以上RAM且仍能正常运行的服务器上使用10GB以上的ram? Or are there any limits on memory usage of a single instance of process. 或单个进程实例的内存使用是否有任何限制。

The maximum heap size for the Java Virtual Machine will most likely be constrained by your OS. Java虚拟机的最大堆大小很可能会受到操作系统的限制。 Theoretically, if you have a 64-bit machine, you can allocate the JVM a heap size of 2^64. 从理论上讲,如果您拥有64位计算机,则可以为JVM分配2 ^ 64的堆大小。 Since you have 128GB of memory, this is most likely your upper limit. 由于您有128GB的内存,因此很可能是您的上限。 Although, without knowing what your OS is, other constraints may arise. 尽管在不知道您的操作系统是什么的情况下,可能还会出现其他限制。

edit: this link contains a guide to helping you setup your memory limits for your JVM on some different operating systems -> Guide 编辑:此链接包含一个指南,可帮助您在某些不同的操作系统上为JVM设置内存限制-> 指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM