Olivier
Olivier

Reputation: 474

Not enough space when running Hudson jobs

My Hudson jobs are crashing on each run with this error:

    Caused by: java.io.IOException: error=12, Not enough space
     at java.lang.UNIXProcess.forkAndExec(Native Method)

I found documention on StackOverflow and on the Jenkins website regarding this error, which indicate a problem of swap space (https://wiki.jenkins-ci.org/display/JENKINS/IOException+Not+enough+space).

However, maybe my problem is different or not, but if I launch the process manually it works fine. A weird thing is I see different resuls from top of from prstat:

Specs:

Can anywone confirm if I have a swap issue? top shows 16GB free...

EDIT: results from swap -s (after problem being remporarly resolved)

    total: 19940168k bytes allocated + 12578048k reserved = 32518216k used, 4118208k available

.

Upvotes: 0

Views: 2509

Answers (1)

jlliagre
jlliagre

Reputation: 30813

It is certainly a swap issue.

top is reporting as free swap blocks that do not contain paginated data. However, even while unused, some of these blocks can be reserved (i.e untouched still allocated virtual memory). When you have no more blocks to back memory reservations, you got this "Not enough space" exception.

swap -s shows your applications are reserving more that 12 GB while your swap area is just 16 GB. I would double the size of your swap to prevent virtual memory shortage in your case.

Upvotes: 1

Related Questions