Not all build-servers support openjdk, so build fails sometimes

Asked by geforce on 2012-01-05

I have a project written in Java, that I want to distribute with a PPA. It works quiet well, now. However, I experienced that Java projects are not very good supported...
I use daily build, to build changes from a bazaar repo. Here is a link:
https://code.launchpad.net/~fit42/+recipe/t10-daily
Sometimes, the builds will fail. After a while, builds for all distros succeed.
The problem is, that the servers can not run Java. I have found following statement:
"This is obviously due to Java actually not working inside OpenVZ/Virtuozzo due to its different way of virtualization compared to VirtualBox."
Source: http://askubuntu.com/questions/28943/ca-certificates-java-fails-when-trying-to-install-openjdk-6-jre

I suppose, some of the build servers just can't run Java...

Is there a solution or would it be possible to limit the build process to some working build servers?

Here are some of the error messages from build log:
"update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode.
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
ignoring dump failure
Setting up libxerces2-java (2.9.1-4.1ubuntu3) ..."

"Setting up default-jre-headless (1:1.6-42ubuntu2) ...
Setting up ca-certificates-java (20110912ubuntu3) ...
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
done.
Setting up default-jre (1:1.6-42ubuntu2) ...
Setting up default-jdk (1:1.6-42ubuntu2) ..."

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
2012-01-05
Last reply:
2012-01-19
Aaron Bentley (abentley) said : #1

It looks like the recipe build is running out of memory. Our virtual servers use xen, not OpenVZ/Virtuozzo, so that is not a factor.

Can you help with this problem?

Provide an answer of your own, or ask geforce for more information if necessary.

To post a message you must log in.