meldestelle/docs/99_Journal/2026-03-28_Session_Log_Metaspace_Fix.md
Stefan Mogeritsch c806660685 chore: remove deprecated horses, clubs, officials, and persons services
- Deleted obsolete modules related to horses, clubs, officials, and persons services, including their configurations, build files, and database provisioning scripts.
- Cleaned up associated references in the project structure (e.g., `settings.gradle.kts`).
- Removed unused database tables and Spring beans related to these domains.

Signed-off-by: Stefan Mogeritsch <stefan.mo.co@gmail.com>
2026-03-28 16:51:08 +01:00

1.6 KiB

type status owner last_update
Journal COMPLETED DevOps Engineer 2026-03-28

Session Log: Metaspace-Optimierung & Build-Fix

🐧 [DevOps Engineer] | 28. März 2026

Kontext

Der Build schlug in mehreren Modulen mit java.lang.OutOfMemoryError: Metaspace fehl. Betroffen waren insbesondere die Kotlin/JS und WASM Kompilationen:

  • :contracts:ping-api:compileKotlinWasmJs
  • :core:core-domain:compileTestKotlinJs
  • :core:core-utils:compileKotlinJs

Die bisherigen Limits (1GB Metaspace) reichten für die komplexe Multiplatform-Struktur nicht mehr aus.

Erledigte Aufgaben

1. Metaspace & Heap Erhöhung

  • Metaspace-Limit für den Kotlin Daemon und den Gradle Daemon von 1GB auf 2GB erhöht.
  • Heap-Speicher für den Kotlin Daemon von 4GB auf 6GB erhöht.
  • Redundante/widersprüchliche JVM-Argumente in gradle.properties harmonisiert.

2. Build-Verifizierung

  • Lokaler Build der betroffenen Tasks erfolgreich durchgeführt: ./gradlew :contracts:ping-api:compileKotlinWasmJs :core:core-domain:compileTestKotlinJs :core:core-utils:compileKotlinJs --no-daemon
  • Status: GRÜN

Technische Änderungen

gradle.properties

  • kotlin.daemon.jvmargs: -Xmx6g -XX:MaxMetaspaceSize=2g
  • org.gradle.jvmargs: -Xmx6g -Dkotlin.daemon.jvm.options="-Xmx4g" -XX:MaxMetaspaceSize=2g

Nächste Schritte

  • Überwachung der CI/CD Pipeline auf ähnliche Ressourcen-Engpässe.
  • Bei weiteren Problemen: Prüfung, ob --parallel in Kombination mit vielen JS-Targets zu hohen Lastspitzen führt.

Referenzen

  • gradle.properties
  • MASTER_ROADMAP.md (Phase 4: MVP-Implementierung)