Java GC Young/Old 100% but to/from 0%
The following is seen in a hs_err_pid####.log file.
The eden space is full as well as the old space, but the from/to space is at 0%
Heap:
PSYoungGen total 197,652K, used 190,955K [0x00000000eab00000, 0x00000000f8000000, 0x0000000100000000)
eden space 190,956K, 99% used [0x00000000eab00000,0x00000000f657fff8,0x00000000f6580000)
from space 6,646K, 0% used [0x00000000f7080000,0x00000000f7080000,0x00000000f7700000)
to space 11,364K, 0% used [0x00000000f6580000,0x00000000f6580000,0x00000000f7080000)
ParOldGen total 699,397K, used 699,341K [0x00000000c0000000, 0x00000000eab00000, 0x00000000eab00000)
object space 699,332K, 99% used [0x00000000c0000000,0x00000000eaaffff8,0x00000000eab00000)
Metaspace used 71522K, capacity 76253K, committed 129276K, reserved 1126500K
class space used 7619K, capacity 11188K, committed 52466K, reserved 1048576K
Could this occur when dealing with LARGE Arrays, HashTable or whatever?
Is it possible that when a minor GC occurs, the from/to space is too small to handle the object size and as a result it goes straight to the old space?
Has there been a common cause that people have encountered when seeing this type of behavior?
java garbage-collection
add a comment |
The following is seen in a hs_err_pid####.log file.
The eden space is full as well as the old space, but the from/to space is at 0%
Heap:
PSYoungGen total 197,652K, used 190,955K [0x00000000eab00000, 0x00000000f8000000, 0x0000000100000000)
eden space 190,956K, 99% used [0x00000000eab00000,0x00000000f657fff8,0x00000000f6580000)
from space 6,646K, 0% used [0x00000000f7080000,0x00000000f7080000,0x00000000f7700000)
to space 11,364K, 0% used [0x00000000f6580000,0x00000000f6580000,0x00000000f7080000)
ParOldGen total 699,397K, used 699,341K [0x00000000c0000000, 0x00000000eab00000, 0x00000000eab00000)
object space 699,332K, 99% used [0x00000000c0000000,0x00000000eaaffff8,0x00000000eab00000)
Metaspace used 71522K, capacity 76253K, committed 129276K, reserved 1126500K
class space used 7619K, capacity 11188K, committed 52466K, reserved 1048576K
Could this occur when dealing with LARGE Arrays, HashTable or whatever?
Is it possible that when a minor GC occurs, the from/to space is too small to handle the object size and as a result it goes straight to the old space?
Has there been a common cause that people have encountered when seeing this type of behavior?
java garbage-collection
Yep. That is definitely a possibility.
– Jason Armstrong
Nov 15 '18 at 21:34
add a comment |
The following is seen in a hs_err_pid####.log file.
The eden space is full as well as the old space, but the from/to space is at 0%
Heap:
PSYoungGen total 197,652K, used 190,955K [0x00000000eab00000, 0x00000000f8000000, 0x0000000100000000)
eden space 190,956K, 99% used [0x00000000eab00000,0x00000000f657fff8,0x00000000f6580000)
from space 6,646K, 0% used [0x00000000f7080000,0x00000000f7080000,0x00000000f7700000)
to space 11,364K, 0% used [0x00000000f6580000,0x00000000f6580000,0x00000000f7080000)
ParOldGen total 699,397K, used 699,341K [0x00000000c0000000, 0x00000000eab00000, 0x00000000eab00000)
object space 699,332K, 99% used [0x00000000c0000000,0x00000000eaaffff8,0x00000000eab00000)
Metaspace used 71522K, capacity 76253K, committed 129276K, reserved 1126500K
class space used 7619K, capacity 11188K, committed 52466K, reserved 1048576K
Could this occur when dealing with LARGE Arrays, HashTable or whatever?
Is it possible that when a minor GC occurs, the from/to space is too small to handle the object size and as a result it goes straight to the old space?
Has there been a common cause that people have encountered when seeing this type of behavior?
java garbage-collection
The following is seen in a hs_err_pid####.log file.
The eden space is full as well as the old space, but the from/to space is at 0%
Heap:
PSYoungGen total 197,652K, used 190,955K [0x00000000eab00000, 0x00000000f8000000, 0x0000000100000000)
eden space 190,956K, 99% used [0x00000000eab00000,0x00000000f657fff8,0x00000000f6580000)
from space 6,646K, 0% used [0x00000000f7080000,0x00000000f7080000,0x00000000f7700000)
to space 11,364K, 0% used [0x00000000f6580000,0x00000000f6580000,0x00000000f7080000)
ParOldGen total 699,397K, used 699,341K [0x00000000c0000000, 0x00000000eab00000, 0x00000000eab00000)
object space 699,332K, 99% used [0x00000000c0000000,0x00000000eaaffff8,0x00000000eab00000)
Metaspace used 71522K, capacity 76253K, committed 129276K, reserved 1126500K
class space used 7619K, capacity 11188K, committed 52466K, reserved 1048576K
Could this occur when dealing with LARGE Arrays, HashTable or whatever?
Is it possible that when a minor GC occurs, the from/to space is too small to handle the object size and as a result it goes straight to the old space?
Has there been a common cause that people have encountered when seeing this type of behavior?
java garbage-collection
java garbage-collection
asked Nov 15 '18 at 19:07
Unhandled ExceptionUnhandled Exception
349213
349213
Yep. That is definitely a possibility.
– Jason Armstrong
Nov 15 '18 at 21:34
add a comment |
Yep. That is definitely a possibility.
– Jason Armstrong
Nov 15 '18 at 21:34
Yep. That is definitely a possibility.
– Jason Armstrong
Nov 15 '18 at 21:34
Yep. That is definitely a possibility.
– Jason Armstrong
Nov 15 '18 at 21:34
add a comment |
1 Answer
1
active
oldest
votes
I would suggest to run a Eclipse MAT or similar tool and check which object is taking up the memory.
I had faced a similar issue in Kafka and it was due to a memory leak related to managed bean. In my case the Beans were very small in size, but a lot in number.
So your Old gen can get filled up regardless of the size of the object, as long as JVM thinks it needs to be kept alive.
Thanks, the JVM has the memory heap dump on crash flag set. Waiting for the next occurrence.
– Unhandled Exception
Nov 15 '18 at 19:42
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53326359%2fjava-gc-young-old-100-but-to-from-0%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I would suggest to run a Eclipse MAT or similar tool and check which object is taking up the memory.
I had faced a similar issue in Kafka and it was due to a memory leak related to managed bean. In my case the Beans were very small in size, but a lot in number.
So your Old gen can get filled up regardless of the size of the object, as long as JVM thinks it needs to be kept alive.
Thanks, the JVM has the memory heap dump on crash flag set. Waiting for the next occurrence.
– Unhandled Exception
Nov 15 '18 at 19:42
add a comment |
I would suggest to run a Eclipse MAT or similar tool and check which object is taking up the memory.
I had faced a similar issue in Kafka and it was due to a memory leak related to managed bean. In my case the Beans were very small in size, but a lot in number.
So your Old gen can get filled up regardless of the size of the object, as long as JVM thinks it needs to be kept alive.
Thanks, the JVM has the memory heap dump on crash flag set. Waiting for the next occurrence.
– Unhandled Exception
Nov 15 '18 at 19:42
add a comment |
I would suggest to run a Eclipse MAT or similar tool and check which object is taking up the memory.
I had faced a similar issue in Kafka and it was due to a memory leak related to managed bean. In my case the Beans were very small in size, but a lot in number.
So your Old gen can get filled up regardless of the size of the object, as long as JVM thinks it needs to be kept alive.
I would suggest to run a Eclipse MAT or similar tool and check which object is taking up the memory.
I had faced a similar issue in Kafka and it was due to a memory leak related to managed bean. In my case the Beans were very small in size, but a lot in number.
So your Old gen can get filled up regardless of the size of the object, as long as JVM thinks it needs to be kept alive.
answered Nov 15 '18 at 19:30
Bandi KishoreBandi Kishore
3,5311832
3,5311832
Thanks, the JVM has the memory heap dump on crash flag set. Waiting for the next occurrence.
– Unhandled Exception
Nov 15 '18 at 19:42
add a comment |
Thanks, the JVM has the memory heap dump on crash flag set. Waiting for the next occurrence.
– Unhandled Exception
Nov 15 '18 at 19:42
Thanks, the JVM has the memory heap dump on crash flag set. Waiting for the next occurrence.
– Unhandled Exception
Nov 15 '18 at 19:42
Thanks, the JVM has the memory heap dump on crash flag set. Waiting for the next occurrence.
– Unhandled Exception
Nov 15 '18 at 19:42
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53326359%2fjava-gc-young-old-100-but-to-from-0%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Yep. That is definitely a possibility.
– Jason Armstrong
Nov 15 '18 at 21:34