Context-Window Memory Sprawl
context-window-memory-sprawl
it just streams the entire thing into a byte array — If that string starts with jrt: you're in trouble. Tension: there's no way to avoid this. | java.lang.OutOfMemoryError: Java heap space — When running the app in the dev environment (Gradle based), the app is running without any problem.
If I build a jlink image of this app. Tension: I know about "Xmx" option, but this is not the solution. Outcome: the same line will throw. | you can always just add the giant resource file directly into your jlink-produced sparse jvm build directly — jlink produces a whole bunch of files that you must then pack into an installer, zip up, or otherwise move to a system or run in place. Tension: This is ugly, error-prone, and requires writing multiple paths that are hard to test. Outcome: Your code can then just.. load the resource file straight from disk.