I have a follow-up question. I've run into issues with some of my slave.jar clients forking processes. A little less than 10% of the executions result in:
$ /bin/bash -l -c "exit 0" bash: xmalloc: ../bash/locale.c:73: cannot allocate 2 bytes (0 bytes allocated) Exit status: 2 In the build log (the final line is output by my plugin). The server this is running on has no swap space, nor does it allow overcommitment of virtual memory; however it does have plenty of memory available. I have tried limiting Xmx to 100M (both with jvm options and by setting _JAVA_OPTIONS=-Xmx100M) to limit the vmem fork/exec issue, but have had little success. Is there something else you might recommend? On Thu, Mar 27, 2014 at 7:06 AM, Willi Fehler <[email protected]>wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Marc, > > I've checked our monitoring and it looks like that to much memory can > be the reason. We will increase now the memory of the VM. > > Thank you very much! > > Regards - Willi > > Am 27.03.2014 14:23, schrieb Marc MacIntyre: > > I've seen something similar to this; we found that running builds > > on the master that include shell steps often failed because the > > java exec() would require too much memory; I believe it attempts to > > basically fork the entire master process, which may be quite > > large. > > > > Our solution was to create a slave node that we connect to via ssh, > > using the same hostname as the master; the master will then connect > > and launch slave.jar, which has a much smaller footprint and can > > easily exec the shell. > > > > > > > > > > On Thu, Mar 27, 2014 at 5:23 AM, <[email protected]> wrote: > > > >> Hello, > >> > >> we have sometimes the problem on our jenkins-master that our > >> builds are failing with the following error: > >> > >> exec] 1) ...\Backend\Cronjob\RunnerTest::testRun[exec] > >> shell_exec(): Unable to execute 'nohup bash -c 'echo > >> 'testcronjob1'' > >> >*/data/*.../shared-jenkins/tmp//cronjob-532efe285ff844.06237873 > >> 2>&1 & echo $!' > >> > >> Sometimes it's working and sometimes it's not. > >> > >> Jenkins Version: ii jenkins 1.535 > >> Continuous integration system written in Java > >> > >> Regards - Willi > >> > >> -- 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 > >> [email protected]. For more options, > >> visit https://groups.google.com/d/optout. > >> > > > > > > > > - -- > Willi Fehler > > > Home24 GmbH | Greifswalderstraße 212-213 | 10405 Berlin | Deutschland > mail: [email protected] > > Geschäftsführer: Felix Jahn, Dr. Philipp Kreibohm, Domenico Cipolla > Eingetragen beim Amtsgericht Berlin, HRB 119267 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQEcBAEBAgAGBQJTNDBVAAoJEIbk60M4Kvfr6QQH/2hHG+MV6IwNjzOC3S7yR4j6 > +4mell7IAq7ZtqTZvpn5oDfm2VPZ2Kvzdo6IBk/LNKFFPClMG8dVuP5O5Z1w7qKt > 2P1D5lQg7pc2HmrjQJ+vr/gLbOz9RH1dpSXglBS5dfbhEt3BhIPlQkmNVToiYJvd > tWznjjuQYe4/wSKWbUqkj2eEresmtjlnvziUrRZyu2EJTUvLxPpqprgFgfdyF+Dj > PJ/TYo31kTLRD2vRb5zy32yZB3KzW5u8few65R9/98OWA4gylQ+tBU+74yIqcJSF > pQOayuJB3/gwVwhCgFKJOWV3urPwLYZ0GgX5kOrminqIDQO4o4R6U/G0ItT7Grg= > =q0Dr > -----END PGP SIGNATURE----- > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
