[MRRESOURCES-106] ProcessRemoteResourcesMojo#getProjects() can end up consuming a lot of memory for big projects
I maintainer di solito rispondono entro 1 giorno
@hboutemy ci sta già lavorando.
Dal 19/6/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Thomas Mortagne opened MRRESOURCES-106 and commented
At XWiki we are using the remote resource plugin to generate a NOTICE files we put in the META-INF of all jars. The file can be found on https://github.com/xwiki/xwiki-commons/blob/master/xwiki-commons-tools/xwiki-commons-tool-license-resources/src/main/resources/META-INF/NOTICE.vm.
We have a lot of memory issues and we kept increasing the max memory but it was starting to be a bit insane (we now get a OOM with -Xmx2500m) so I finally took a profiler to try to figure out where all this memory goes.
We did noticed for a while that remote resource plugin is taking longer and longer to execute during the build so I had my doubts already.
What Yourkit is telling me is that almost half of the memory (400MB here because I reduced the max memory for it to fail earlier) is retained by an ArrayList of MavenProject instances located in ProcessRemoteResourcesMojo#getProjects().
It can be reproduced by building https://github.com/xwiki/xwiki-platform (you will need to add some repositories in your settings.xml, you can find them on http://dev.xwiki.org/xwiki/bin/view/Community/Building/#HInstallingMaven).
Also I can probably put the memory dump I have somewhere if someone wants to download it.
Affects: 1.5
Issue Links:
- MRRESOURCES-94 Performance issue in ProcessRemoteResourcesMojo.configureVelocityContext(...)
- Lingua principale
- Java
- Stelle
- 17
- Fork
- 20
- Merge medio
- 12h 3m
- PR unite (30g)
- 22
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/maven-remote-resources-plugin
-
SCM URL normalization mishandles query strings, fragments and scp-like URLsForse già presa @efegokdemir l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/maven-remote-resources-plugin#335 ·
I maintainer di solito rispondono entro 1 giorno
-
Jars from supplementalModelArtifacts stay open after processForse già presa @efegokdemir l’ha presa 1 giorno fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
apache/maven-remote-resources-plugin#341 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
apache/maven-remote-resources-plugin#324 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
apache/maven-remote-resources-plugin#322 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
apache/maven-remote-resources-plugin#270 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/maven-remote-resources-plugin
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 2 giorni
-
code-health feature/sync OS/Android QA/Test-Plan-Specified QA/Yes
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
brave/brave-browser#60327 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aws/context-ontology-accelerator#325 ·
I maintainer di solito rispondono entro 1 giorno
-
The README tells to run `mvn jeo:disassemble`, which fails with `No plugin found for prefix 'jeo'`Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
objectionary/jeo-maven-plugin#1938 ·
I maintainer di solito rispondono entro 2 giorni
-
effort/l priority/p2 risk/high triage/deferred
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
iflytek/skillhub#1039 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno