由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Java GC question
相关主题
来几个C++测试题Node vs Java
后端为什么不用Java请教个JAVA的小问题
OutofMemoryError: Java Heap Spacegoodbug基本不会编程,就会吹牛逼
[合集] Hadoop居然是用Java写的,不理解a simple question about constructor
java大概还有多久才能和C++一样快呢?讨论个idea题
java heap space out 问题 (转载)请教C++
求教有没有好的查Java memory leak的工具? (转载)各位对编程预制板快,即插即用有何高见?有什么参考网站
这二个在C++中有区别不?delete this problem
相关话题的讨论汇总
话题: gc话题: java话题: 128g话题: heap话题: question
进入Programming版参与讨论
1 (共1页)
o*****l
发帖数: 539
1
If I set heap size for a java app to 128G, will it have some side effect for
GC?
thanks!
g*****g
发帖数: 34805
2
128G is a lot of memory. It may cause the stop-the-world GC to be longer. It
may or may not be a problem depending on your application.

for

【在 o*****l 的大作中提到】
: If I set heap size for a java app to 128G, will it have some side effect for
: GC?
: thanks!

z*******3
发帖数: 13709
3
很明显太大了,这样gc停顿会很长
我一般一个node设置为10g
h**********c
发帖数: 4120
4
可以用多线程gc,gc的问题不是gc的问题是modeling的问题
好的32g设计可以半年维持low profile
不好的model,没有model,1G也要lagxi
w**z
发帖数: 8232
5
way too big. full GC will take a couple of minutes to complete, the node
essentially is unresponsive at that time. I wouldn't go over 8g for the heap
. if you need more than that, you need to think about how to make your
application horizontal scalable.

for

【在 o*****l 的大作中提到】
: If I set heap size for a java app to 128G, will it have some side effect for
: GC?
: thanks!

g*****g
发帖数: 34805
6
8G is a bit extreme, there's still difference between different generations.
There are GC algorithms and options that can be tuned to fit the app
profile. Generally I wouldn't go beyond 64G though.

heap

【在 w**z 的大作中提到】
: way too big. full GC will take a couple of minutes to complete, the node
: essentially is unresponsive at that time. I wouldn't go over 8g for the heap
: . if you need more than that, you need to think about how to make your
: application horizontal scalable.
:
: for

g*********e
发帖数: 14401
7
one gc will take forever

for

【在 o*****l 的大作中提到】
: If I set heap size for a java app to 128G, will it have some side effect for
: GC?
: thanks!

g*********e
发帖数: 14401
8
even cms has some stopthe world period

【在 h**********c 的大作中提到】
: 可以用多线程gc,gc的问题不是gc的问题是modeling的问题
: 好的32g设计可以半年维持low profile
: 不好的model,没有model,1G也要lagxi

1 (共1页)
进入Programming版参与讨论
相关主题
delete this problemjava大概还有多久才能和C++一样快呢?
问个算法的问题java heap space out 问题 (转载)
问个面试题目求教有没有好的查Java memory leak的工具? (转载)
[合集] 这个问题怎么做好?(word sqaure)这二个在C++中有区别不?
来几个C++测试题Node vs Java
后端为什么不用Java请教个JAVA的小问题
OutofMemoryError: Java Heap Spacegoodbug基本不会编程,就会吹牛逼
[合集] Hadoop居然是用Java写的,不理解a simple question about constructor
相关话题的讨论汇总
话题: gc话题: java话题: 128g话题: heap话题: question