Help with build from source (OutOfMemoryError)
Moderators: BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, North, CCGHQ Admins
3 posts
• Page 1 of 1
Help with build from source (OutOfMemoryError)
by Sophisticrat » 11 Oct 2019, 23:08
Hi,
I'm trying to build Xmage from source in Intellij, but I am getting java.lang.OutOfMemoryError: Java heap space. I saw in the documentation to increase build heap size, however this seemed to have no change to my build and I continue to get the error. Any insight would be appreciated (I'm new to using maven). Thanks.
I'm trying to build Xmage from source in Intellij, but I am getting java.lang.OutOfMemoryError: Java heap space. I saw in the documentation to increase build heap size, however this seemed to have no change to my build and I continue to get the error. Any insight would be appreciated (I'm new to using maven). Thanks.
- Sophisticrat
- Posts: 2
- Joined: 11 Oct 2019, 22:34
- Has thanked: 0 time
- Been thanked: 0 time
Re: Help with build from source (OutOfMemoryError)
by Sophisticrat » 13 Oct 2019, 00:43
Never mind, it was an issue with the specific JDK I was using. (32-bit 1.8.0_221)
- Sophisticrat
- Posts: 2
- Joined: 11 Oct 2019, 22:34
- Has thanked: 0 time
- Been thanked: 0 time
Re: Help with build from source (OutOfMemoryError)
by ryansmith53 » 23 Sep 2025, 09:29
Glad you figured it out! Yeah, the 32-bit JDK often runs into memory issues like that since it can’t allocate more than ~1.5–2 GB of heap space. Switching to a 64-bit JDK is usually the way to go when working with Maven/IntelliJ builds.
- ryansmith53
- Posts: 2
- Joined: 13 Sep 2025, 07:38
- Has thanked: 0 time
- Been thanked: 0 time
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests