#4235·flyway

OutOfMemoryError: Java heap space in method "public List<Results> execute(SqlScript sqlScript, Configuration config)"

Author: maroonyCreated Apr 30, 2026Updated Jul 21, 2026
Labelss: needs investigation

This error is in Flyway 12.5.0 with larger SQL-Files (~ 100 mb). Flyway 10 was working fine because the method in DefaultSqlScriptExecutor.java

public List<Results> execute(SqlScript sqlScript, Configuration config)

does not collect a list of results:

public void execute(SqlScript sqlScript, Configuration config) {

Maybe it would be good to have an option/parameter to disable the result collecting?