Skip to content

Out of Memory Error during code gen #6444

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

Open
GokhanArik opened this issue Apr 2, 2025 · 4 comments
Open

Out of Memory Error during code gen #6444

GokhanArik opened this issue Apr 2, 2025 · 4 comments

Comments

@GokhanArik
Copy link
Contributor

Version

4.1.1

Summary

Hi team,

We've been getting OOM errors after migrating to 4.1.1. The error message points to metadata file. We have 12K types. If we add opposite link to schema for optimization it might help with this, but we publish the full schema intentionally to consume in other repositories. And we don't want to keep increasing the memory.

We also noticed generateApolloIrOperations task takes long time to run from time to tim. I don't have much data on this yet, just posting here in case they might be related.

Thanks!

Steps to reproduce the behavior

No response

Logs

Execution failed for task *
> java.lang.OutOfMemoryError: GC overhead limit exceeded at $.commonMetadata.schema
@BoD
Copy link
Contributor

BoD commented Apr 3, 2025

Thanks for reporting. Could you share the full stack trace?

@BoD
Copy link
Contributor

BoD commented Apr 3, 2025

Also would it possible to share your schema and operations (can be done privately at [email protected])? That would help us reproduce and investigate the issue. Thanks!

@BoD BoD added the ⌛ Waiting for info More information is required label Apr 3, 2025
@GokhanArik
Copy link
Contributor Author

Hey Benoit, I replied to this but looks like I forgot to submit the comment.
Anyway, in the logs there is nothing other than task runs. The only thing I omitted is the generateApolloSources task name.

For generateApolloIrOperations I created #6451 which you already saw.

I will get the schema and operations to you for both of this issues. Thanks

@BoD BoD removed the ⌛ Waiting for info More information is required label Apr 25, 2025
@BoD
Copy link
Contributor

BoD commented Apr 25, 2025

Update: we received the schema/operations, thank you for that - and looking into it.

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

No branches or pull requests

2 participants