简体   繁体   English

我应该使用 60GB 堆大小吗?

[英]Shoud I use 60GB heap size?

I am wondering setting heap size to more than 32GB will increase performance or not?我想知道将堆大小设置为 32GB 以上会不会提高性能? I have a server with 128GB memory.我有一台 128GB memory 的服务器。

As I read, if I increase it to 48GB, the performance will decrease, but what about setting it to 60GB?在我阅读时,如果将其增加到 48GB,性能会下降,但是将其设置为 60GB 怎么样?

No, you shouldn't, increasing your heap size for values higher than 30GB won't increase performance, it will probably make things worse.不,你不应该,为高于 30GB 的值增加堆大小不会提高性能,它可能会使事情变得更糟。

Elastic recommends to use a maximum value between 26 GB and 30 GB, depending on your system. Elastic 建议使用 26 GB 到 30 GB 之间的最大值,具体取决于您的系统。

If you are having performance issues you first have to identify if those issues are related to your heap size or not, it could be a disk i/o issue.如果您遇到性能问题,您首先必须确定这些问题是否与您的堆大小有关,这可能是磁盘 i/o 问题。

You could also spin up another instance on the same machine to increase your cluster.您还可以在同一台机器上启动另一个实例来增加您的集群。

Basically heap memory depends on your application.基本上堆 memory 取决于您的应用程序。 What kind of process doing in the application.For the normal applications we starts allocating memory from the 30 % of the total memory.if we have exceptions like Out of Heap Memory then increase it according to requirement.Maximum Heap size we can allocate to application only to 60% of the total memory.This is the best practice that normally followed. What kind of process doing in the application.For the normal applications we starts allocating memory from the 30 % of the total memory.if we have exceptions like Out of Heap Memory then increase it according to requirement.Maximum Heap size we can allocate to application仅占总 memory 的 60%。这是通常遵循的最佳实践。

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

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