Skip to content

OutOfMemoryError #1159

Closed
Closed
@chb0github

Description

@chb0github

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions