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

OutOfMemoryError when generatoring WorkingHoursScheme #20

Closed
tk-png opened this issue Oct 26, 2020 · 1 comment
Closed

OutOfMemoryError when generatoring WorkingHoursScheme #20

tk-png opened this issue Oct 26, 2020 · 1 comment

Comments

@tk-png
Copy link

tk-png commented Oct 26, 2020

I'm trying to generate a Java client with the Swagger spec, but there is an issue when the the code generator tries to write the WorkingHoursScheme. If the computer trying to generate isn't powerful enough, the generator will throw an exception like this:

96740 [ERROR] Java heap space -> [Help 1]
1125java.lang.OutOfMemoryError: Java heap space

I've tried with various versions of the OpenApi generator and the Swagger generator, and I will be able to generate everything only with certain versions, like OpenApi generator Maven plugin 4.2.0, but 4.3.x doesn't work. Sometimes it can help to increase memory but I think the problem should be better solved my adjusting WorkingHoursScheme.

@tlxtellef
Copy link
Member

It is a problem with swagger-codegen, I already have an open issue with them regarding this. See swagger-api/swagger-codegen#10199 . To make it work for now you either need a 64Bit OS with at least 8GB of ram OR fork swagger-codegen and disable that pesky example generator.

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