Skip to content
Advertisement

JFR: OutOfMemoryError while reading .jfr file

I’m trying to analyze a large Flight Recorder file (1.5 GB) that I created previously. When executing the jfr print command, the tool runs into an OutOfMemoryError:

JavaScript

Is there a way to increase the heap size (-Xmx) for the jfr tool itself? I haven’t found a corresponding option in the documentation. Any help is appreciated 🙂

Advertisement

Answer

As suggested by Kris, there is an environment variable that can be used: JAVA_TOOL_OPTIONS

In my case, the following did the trick:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement