I'm using the Grails Database Migration plugin (1.4.0) in a Grails 2.4.3 (UPDATE: have upgraded to Grails 2.5.0 and face same memory issues) application with Java JDK 8 Update 45 on Windows 7 64bit. When I changed to Java 8 I know that the PermGen has been removed and replaced with the MetaSpace and the regular Heap. When running my migration (dbm-update), I'm getting an
"Error Error executing script DbmUpdate: Java heap space (Use --stacktrace to see the full trace)"
Why is the database migrations plugin using that much Heap Space? If I downgrade to Grails 2.3.x, the migrations plugin will run the migrations with a lot less memory.
--UPDATE-- Resolved at least updating the database by setting a "GRAILS_OPTS" env var with:
-Xms2G -Xms1G