简体   繁体   English

Weblogic服务器中多个域的JVM分配

[英]JVM allocation for multiple domain in Weblogic server

If I create 3 domains for a Weblogic server and configure each setDomainEnv to use min Heap Size of 4096m(Xms) and max of 8192m(Xmx) then will that throw an error for the 64 bit JVM. 如果我为Weblogic服务器创建3个域并将每个setDomainEnv配置为使用最小堆大小为4096m(Xms),最大堆大小为8192m(Xmx),则将为64位JVM引发错误。 I have a machine with 8GB RAM. 我有一台具有8GB RAM的机器。

I get the error as : Could not Create the Java Virtual Machine. 我收到以下错误消息:无法创建Java虚拟机。 Minimum heap size invalid. 最小堆大小无效。

your machine has 8GB RAM in the sense system will use 7.X GB of RAM. 您的计算机具有8GB的RAM,因此系统将使用7.X GB的RAM。 So try to reduce the MAX heap size to available RAM so that issue will be resolved 因此,请尝试将MAX堆的大小减小到可用的RAM,以便解决该问题

If you have a machine with 8GB you should think that the sum of memory used by the 3 domains cannot be more then 8GB. 如果您有一台具有8GB的计算机,则应认为这3个域使用的内存总和不能超过8GB。

Total memory = OS memory + domain 1 memory + domain 2 memory + domain 3 memory 总内存= OS内存+域1内存+域2内存+域3内存

You should not forget that in order to run those JVM's the operationg system needs memory as well. 您不应忘记,为了运行那些JVM,操作系统还需要内存。

I would recommend to start all those 3 domain with the same min and max memory 2GB 我建议以相同的最小和最大内存2GB启动所有这3个域

https://docs.oracle.com/cd/E13222_01/wls/docs81/perform/JVMTuning.html https://docs.oracle.com/cd/E13222_01/wls/docs81/perform/JVMTuning.html

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

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