[英]Resizing Direct Buffer Memory
I have an application running on Websphere 8.5, I know that the Heap Memory Size of this particular JVM was increased in the past. 我有一个在Websphere 8.5上运行的应用程序,我知道该特定JVM的堆内存大小在过去有所增加。 The committed memory now is 5.6GB but we are having memory issues related to Direct Buffer Memory and now we need to resize it as well.
现在,已提交的内存为5.6GB,但是我们遇到了与直接缓冲内存有关的内存问题,现在还需要调整其大小。 I can see this problem happening through a monitoring toll, so I can't see the size of the direct memory.
我可以通过监控收费看到此问题的发生,因此我看不到直接内存的大小。
My questions are: Is there a correct sizing for the direct memory according to the Java Heap Memory size? 我的问题是:根据Java堆内存大小,直接内存的大小是否正确? Lets say, at least X MB for each X GB.
假设每个X GB至少X MB。
What is the default value of the XX:MaxDirectMemorySize option? XX:MaxDirectMemorySize选项的默认值是什么?
What else should I consider before changing this option? 更改此选项之前,我还要考虑什么?
The doc (for IBM Java 7) says it's unbounded by default: https://www.ibm.com/support/knowledgecenter/SSYKE2_7.0.0/com.ibm.java.win.70.doc/diag/appendixes/cmdline/xxmaxdirectmemorysize.html 该文档(适用于IBM Java 7)表示默认情况下不受限制: https : //www.ibm.com/support/knowledgecenter/SSYKE2_7.0.0/com.ibm.java.win.70.doc/diag/appendixes/cmdline/ xxmaxdirectmemorysize.html
I think you should consider whether you are willing to let the application that is using the direct memory fail, while allowing other work to continue in the server. 我认为您应该考虑是否愿意让使用直接内存的应用程序失败,同时允许服务器中的其他工作继续进行。 Setting the direct memory size will only cause the application to fail faster, since the default is unbounded.
设置直接内存大小只会导致应用程序更快地失败,因为默认值是无限制的。
According to the Oracle documentation 根据Oracle文档
http://docs.oracle.com/cd/E15289_01/doc.40/e15062/optionxx.htm#BABGCFFB http://docs.oracle.com/cd/E15289_01/doc.40/e15062/optionxx.htm#BABGCFFB
by default there is no limit 默认情况下没有限制
According to the IBM documentation 根据IBM文档
https://www.ibm.com/support/knowledgecenter/SSYKE2_7.0.0/com.ibm.java.win.70.doc/diag/appendixes/cmdline/xxmaxdirectmemorysize.html https://www.ibm.com/support/knowledgecenter/SSYKE2_7.0.0/com.ibm.java.win.70.doc/diag/appendixes/cmdline/xxmaxdirectmemorysize.html
it starts small and slowly grows. 它开始很小,然后慢慢增长。
It is more likely you have a memory leak that should be investigated. 您很可能应该检查内存泄漏。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.