Using Makefile tasks with JVM conf lead to a OutOfMemoryError #616

Closed
athieriot opened this Issue Jun 25, 2012 · 2 comments

Projects

None yet

2 participants

@athieriot

Hi,

I tried to use some tasks from a Makefile in my .travis.yml file and it did not work as expected.

It was in a Scala project and the build end up in a OutOfMemoryError ([error] java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: unable to create new native thread).
But if I launch the command outside the makefile task it goes ok.

You can find more informations in this build log : http://travis-ci.org/#!/athieriot/screwdriver/builds/1691503

I don't know if Makefile are officially supported so... maybe it is completely normal.

Eventually, if you need some help for that, I can give some little help

Aurélien

@michaelklishin
Contributor

It is something project-specific. You need to bump the -Xmx value you are passing to JVM arguments. Makefiles can be used just like anything else but they do not affect JVM behavior in any way. Flags you pass and what your test suite may be doing does, though, but it is something you need to fix on your end.

@athieriot

Thank you !

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