ERROR: Maven JVM terminated unexpectedly with exit code 137 - Building plugin

4,060 views
Skip to first unread message

Michael Couck

unread,
Jul 4, 2016, 7:37:18 AM7/4/16
to Jenkins Developers
Hi all,

I am getting the above on the CloudBees build for the Serenity plugin(https://jenkins.ci.cloudbees.com/job/plugins/job/serenity-plugin/). I have seen this has popped up before, and seemingly it is a memory issue. Unfortunately I don't have access to the job to increase the memory to see. Could I get a little more memory please? Pretty please? ;) Perhaps 1024?

The build is quite memory intensive in fact, exactly how much I wouldn't know, but on my Jenkins I run the build with a gig, and that seems to be enough. Of course the build works perfectly on my laptop, and on my server running Jenkins, with the above memory parameters. Could be something else of course, but for the life of me I can't imagine what. The jdk is the same, and even the os is the same. There is some classloading interference, but it is in a forked JVM so should be quite safe.

Incidentally the build was running fine until I started fiddling around with the profiler again...

Sorry for the bother :( but I am stuck.

Cheers,
Michael

Carlos Sanchez

unread,
Jul 4, 2016, 8:19:25 AM7/4/16
to jenkin...@googlegroups.com
IIUC You are hitting the memory limits and the kernel is killing your process.
You are setting Xmx for surefire to 1GB, you should try lowering it if your tests don't really need that much memory.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/8187fb6d-1fc2-48c8-ba6e-5f136ee78106%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Couck

unread,
Jul 4, 2016, 8:58:59 AM7/4/16
to Jenkins Developers
Hi Carlos,

Thanks, seems like I can scape through with 512.

Seems like Maven is downloading the entire internet for each build. Is someone cleaning the local m2 repo with each build? Expensive on bandwidth no? And time consuming of course.

Cheers,
Michael

Michael Neale

unread,
Jul 4, 2016, 9:14:29 PM7/4/16
to Jenkins Developers
It is likely getting things from a nearby proxy transparently, not the whole internet being downloaded every time ;)

Also, with regular builds, a warm workspace should be hit after a while (so it won't always even download each time). If it hasn't been built for a while, it may download things fresh though. 

Michael Couck

unread,
Jul 5, 2016, 3:05:38 AM7/5/16
to Jenkins Developers
Hi Michael,

Thanks old chap, perhaps I exaggerated a little? ;)

Nice plugin(Blue Ocean)! The new Jenkins experience...

Have a fantastic day people!

Cheers,
Michael
Reply all
Reply to author
Forward
0 new messages