-
Notifications
You must be signed in to change notification settings - Fork 12.9k
OutOfMemoryError #1159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You have |
Ok, thanks for the catch. I have updated the ticket to not be so precise. |
Is anyone watching? |
Hi @chb0github , You need to correct the delimiter syntax first (e.g. Then please test it with the latest snapshots. |
I am not sure why this particular repo was incorrectly referring to an old problem. Perhaps you forgot: I was the one who submitted the original PR to support multi-character delimiters. Unfortunately, github won't allow me to upload the problematic file. So, I am including the whole repo as a public zip and will update the original issue description with the link. For reference, this is the link |
Because you stated 'Version = 3.3.1' in the issue description and reverted my PR that corrected DELIMITER syntax in your example repo. :) As ScriptRunner ultimately has to call If increasing the heap size is not an option and these INSERTs are the only long lines in the script, disabling --extended-insert should resolve the problem. |
I get the exception when trying to load an 132Mb *.sql script.
I already tried many combinantions of configs... setting a bigger buffer... sending or not the whole script and other stuff. And I always get the same heap size exception. |
Hi @billbarni , This report was actually about OutOfMemoryError that occurred when using Looking at the code you posted, you should try setting |
MyBatis version
3.3.1
Database vendor and version
mysql:5.6
Test case or example project
https://drive.google.com/open?id=1xzcb58xn_YwUmrHgMokRjglRAR5thj7T
project space is too big for github
Steps to reproduce
docker run -d --rm -p 3306:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw mysql:5.6
sleep 15
migrate up
Expected result
success
Actual result
========== Applying: 00003_second_migration.sql ================================
-- MyBatis Migrations FAILURE
-- Total time: 1s
-- Finished at: Fri Dec 15 16:59:35 PST 2017
-- Final Memory: 133M/464M
ERROR: Error executing command. Cause: java.lang.OutOfMemoryError: Java heap space
Before you tell me to increase my heapsize, keep in mind that this might need to execute on a small virt and isn't really an option
Addressing issue #1158 as I suggest would allow this problem to at least be addressed by swapping out implementations. Though, the current implementation really should be fixed
The text was updated successfully, but these errors were encountered: