Java Heap Space error when generating OST

Issue #68 resolved
Nathen Drees created an issue

I have a project which is failing to generate the OST, it sounds like it's running out of memory. I've included the logs, thread dumps, and the JSON files inside the IlluminatedCloud folder.

Let me know if there's anything else you need to debug this.

Do I just need to start the IDE with more memory?

Comments (7)

  1. Scott Wells repo owner

    Thanks for the details. I'll take a look at the provided assets but in the interim, yes, just bump up IDEA's max heap size and try again. Let me know if you can't get past this with a larger heap.

  2. Nathen Drees reporter

    Thanks Scott. I bumped the Java heap space size to 1g and it generated fine. It would be nice if it could always work with the default IDE settings (512M) but i'm not sure how realistic that is, since i know this kind of process can be very intensive.

    You can probably drop the priority on this down since there's an easy work around, and the max heap size is 2g even for 32 bit systems.

  3. Scott Wells repo owner

    Thanks. For what it's worth, I've had to bump the max heap in IDEA much higher over the past few years just to accommodate the large Java projects on which I've worked. I've found it's just part of the experience. Nonetheless, I'll look into whether there's any place I can be a little more efficient with memory as the OST is generating.

  4. Scott Wells repo owner

    I just delivered a number of optimizations to OST generation that I'm hoping put this to rest. There will likely still be orgs with enough metadata to warrant an increased heap during generation, but I think I've knocked down the requirements quite a bit.

  5. Log in to comment