Skip to content

Conversation

@sdedic
Copy link
Member

@sdedic sdedic commented Aug 4, 2025

A followup to #8703 that I couldn't deliver on time before it was merged. The culprit for the OOM was that the introspection included static properties of the dumped objects. These values are not (still) needed and should they be provided, some tweaks should be implemented to somehow handle class-based enums like JvmVendorSpec.

The OOM happened since from a reference to JvmVendorSpec.ADOPTIUM, all its static fields were dumped, so ADOPTOPENJDK. From ADOPTOPENJDK, ADOPTIUM was avoided, but all others were dumped (except ADOPTIUM and ADOPTOPENJDK). And so on. When it went back to root JvmVendorSpec.ADOPTIUM, and to the next sibling AMAZON, all statics except these two were dumped. The same for each of the fields as a root. If I count well, it is 13! * 13 items in total, which seems sufficient for OOM.

This PR reverts @mbien exclusion of vendor (not needed any more) and avoids static field dumps, which will cover mor cases.

@sdedic sdedic added this to the NB27 milestone Aug 4, 2025
@sdedic sdedic self-assigned this Aug 4, 2025
@sdedic sdedic added Gradle [ci] enable "build tools" tests VSCode Extension labels Aug 4, 2025
Copy link
Contributor

@lkishalmi lkishalmi left a comment

Choose a reason for hiding this comment

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

Looks sane.

Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

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

i don't really have much experience with this, but if nothing relies on static elements this should be fine of course. (not tested)

@sdedic sdedic marked this pull request as draft August 5, 2025 13:16
@sdedic sdedic marked this pull request as ready for review August 6, 2025 13:34
@sdedic sdedic requested a review from mbien August 6, 2025 13:34
@mbien
Copy link
Member

mbien commented Aug 6, 2025

the toolchainDownloadUrls exclusion seems to fix a performance issue during new project creation. It would sometimes lock up ~30s with no CPU load which were probably requests to the disco service.

@sdedic sdedic merged commit 8fd0563 into apache:delivery Aug 7, 2025
67 of 68 checks passed
@sdedic
Copy link
Member Author

sdedic commented Aug 7, 2025

Eh; sorry, accidentaly hit merge :-/ on this to delivery :-/

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

Labels

Gradle [ci] enable "build tools" tests VSCode Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants