I am trying to migrate the database of our teamcity 3.1.1 installation (enterprise license) from hsqldb to mysql. The problem is that whenever I run the migrate.sh script it throws an error: java.lang.OutOfMemoryError: Java heap space.
I have tried increasing -Xmx512m to -Xmx1300m for example, or even more and variations thereof. This is a 64 bit debian stable server with about 16 GB of memory, of which at least 9GB is readily available. I have a java_pidXXX.hprof file using -XX:+HeapDumpOnOutOfMemoryError which I tried to upload to ftp://ftp.intellij.net/.uploads/java_pid8803.hprof. It is rather large, so I aborted it, since I am unsure if anyone actually needs it.