Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JFR: YoungGenerationConfiguration event #21264

Open
tajila opened this issue Mar 4, 2025 · 3 comments
Open

JFR: YoungGenerationConfiguration event #21264

tajila opened this issue Mar 4, 2025 · 3 comments

Comments

@tajila
Copy link
Contributor

tajila commented Mar 4, 2025

The YoungGenerationConfig event contains the following fields:

minSize - j9gc_get_minimum_young_generation_size()
maxSize - j9gc_get_maximum_young_generation_size()
newRatio - New ratio=N, where Young gen = (1/(1 + N)) * total Heap size

//total heap size - j9gc_get_maximum_heap_size()

The GCHeapConfig event only needs to be written in the initial chunk. In JFRChunkWriter::writeJFRChunk this event can be added along the other 1 time events if (0 == _vm->jfrState.jfrChunkCount) {.

Note, not all J9 GC policies have a nursery/tenure (AKA young/old generation), in these cases the answer for all fields is zero.

@tajila tajila changed the title JFR: GCHeapConfiguration event JFR: YoungGenerationConfiguration event Mar 4, 2025
@tajila
Copy link
Contributor Author

tajila commented Apr 3, 2025

@adpopescu Please take a look at this issue

@adpopescu
Copy link
Contributor

adpopescu commented Apr 3, 2025

@tajila I assume where it says GCHeapConfig in the description, it's meant to be YoungGenerationConfig?

@tajila
Copy link
Contributor Author

tajila commented Apr 3, 2025

@tajila I assume where it says GCHeapConfig in the description, it's meant to be YoungGenerationConfig?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants