Skip to content
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

MYSQL error when using high ammount of memory #207

Open
phimax opened this issue Apr 6, 2018 · 1 comment
Open

MYSQL error when using high ammount of memory #207

phimax opened this issue Apr 6, 2018 · 1 comment

Comments

@phimax
Copy link

phimax commented Apr 6, 2018

When executing one of my commands it gives me the following error:

[Symfony\Component\Debug\Exception\FlattenException]
An exception occurred while executing
'UPDATE jms_jobs SET stackTrace = ?, memoryUsage = ?, memoryUsageReal = ? WHERE id = ?'
with params ["N;", 4393229440, 4528078848, "27"]:
SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'memoryUsage' at row 1

This happens because my commands needs a lot of memory space to run.

The memoryUsage and memoryUsageReal columns are defined as INT which limits the value of this columns to 2147483647.

A quick but not permanent solution is to change that column type into BIGINT, but the doctrine mapping detect's it as the database schema is not in sync with the mapping file.

It would be great to override the Job Entity to be able to change this on my own, but I can't do it.

@phimax phimax changed the title MYSQL error when using high ammount of memoy MYSQL error when using high ammount of memory Apr 6, 2018
@mcorteel-harel
Copy link

I have the same problem. The result is a failed job, even though the job actually succeeded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants