ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Not enough space
Date Fri, 16 Nov 2001 21:16:56 GMT
The following fact might be relevant to this issue: 

        unfortunately, Sun's implementation of exec() on UNIX uses an 
expensive version of fork() that makes a complete current process replica 
in memory before proceeding with exec(). This will fail if the current 
process is very large in memory even though the child process is going to 
be much smaller. The error message is precisely "out of space", even 
though this is somewhere between memory and disk space [which are the same 
if you look at it through virtual memory point of view, after all].

This is a known bug on Solaris that was closed and will not be fixed. 
Check out

Possible workarounds include not using Runtime.exec() directly but rather 
having a small deamon process hang around in parallel to your main task 
and accept requests [through sockets, for example] to spawn desired 
processes for you. Not very elegant but has been known to work.


Please respond to "Ant Users List" <>
To:     Ant Users List <>

Subject:        RE: Not enough space

> -----Original Message-----
> From: Hélène JOANIN []

> I'm a new user of Ant and I need advice to be able to correct
> my problem.
> I use the Ant version 1.4.1.
> I have writen an Ant build file to build my product.
> The building works fine on a machine which have 512M memory.
> But I have the following error:
> Not enough space
> when I try to build my product on a machine which have 256M memory.

Wow ! Hélène, you obviouslly spent a long time writing your mail !!

I'm afraid the error you are having is not due to a memory problem but to 
disk space problem.
As the message says, it's a I/O Exception not a Memory error.

Check your disk space on your computer and come back to us if there's a
problem here.

ps: As far as I can see from your description and the snippets, build.xml
looks clean to me.

 Stéphane Bailliez
 Software Engineer, Paris - France
 iMediation -
 Disclaimer: All the opinions expressed above are mine and not those from 

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message