Hi Folks,
I'm try to build a 1.5gb GWT app and running into some problems, I get a message container "Build" running out of memory.
I read that "The build container is always allocated 1024 MB of this, which covers your build process and some Pipelines overheads (agent container, logging, etc)." here
I've increased the pipeline step to max size and increased the memory available to the maven service to max
My configuration
image: maven:3.5.4
pipelines:
default:
- step:
size: 2x
caches:
- maven
name: Build UI
script:
- mvn clean install
definitions:
services:
maven:
image: maven:3.5.4
memory: 7128
note: The GWT portion of the app requires additional memory
-Dgwt.extraJvmArgs="-Xms1g -Xmx2g"
That's the furthest its run, was building the war this time. so close!
Am I missing something?
The problem was GWT.. (
-Dgwt.extraJvmArgs="-Xms1G -Xmx2G"
) 2 gig is enough to compile a single instance but GWT compiles multiple permutations so at one stage I was using 5 x 2G hence exceeding 8G limit
I found my solution here, check out the diagrams: https://www.sencha.com/blog/using-the-gwt-compiler-for-better-builds-2/
GWT has a number of setting to reduce memory requirements during compile, most result in longer build times but that OK
Thanks for sharing the solution with the rest of the Community, glad you figured it out :)
Have a good day!
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.