Skip to content

Add JFR SystemGC event #21882

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

Merged
merged 1 commit into from
May 21, 2025
Merged

Add JFR SystemGC event #21882

merged 1 commit into from
May 21, 2025

Conversation

thallium
Copy link
Contributor

Closes #21859

@thallium thallium force-pushed the jfr-gc-event branch 3 times, most recently from 9f28d17 to c25dd5a Compare May 14, 2025 19:32
@thallium
Copy link
Contributor Author

@tajila can you please review?

@tajila
Copy link
Contributor

tajila commented May 15, 2025

Please also add a test case.

@thallium thallium force-pushed the jfr-gc-event branch 2 times, most recently from 3e597b3 to ba218a0 Compare May 16, 2025 15:17
@thallium
Copy link
Contributor Author

Added a test

@tajila
Copy link
Contributor

tajila commented May 20, 2025

jenkins test sanity.functional xlinux jdk17

@@ -104,4 +104,11 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-ex
<output type="required" caseSensitive="yes" regex="no">topAddress</output>
<output type="failure" caseSensitive="yes" regex="no">jfr print: could not read recording</output>
</test>
<test id="test jfr SystemGC - approx 30 seconds" platforms="linux.*">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isnt specific to linux so it doesnt need platforms="linux.*"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also probably need to trigger a System.gc() in WorkLoad.java, maybe after a thread completes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, I tried a sample application and didnt see the system GC event

Copy link
Contributor Author

@thallium thallium May 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test should work now.

also, I tried a sample application and didnt see the system GC event

Did you call the System.gc() and can you share your application? It seems working for me.

@tajila
Copy link
Contributor

tajila commented May 21, 2025

jenkins test sanity.functional xlinux jdk17

@tajila tajila merged commit f438da4 into eclipse-openj9:master May 21, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JFR: System GC event
2 participants