This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ANT Out of Memmory problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "ANT Out of Memmory problem" Watch "ANT Out of Memmory problem" New topic
Author

ANT Out of Memmory problem

Manohar Karamballi
Ranch Hand

Joined: Jul 17, 2001
Posts: 227
Hello All,

I am using ANT for building project. ANT performs compiling,deploying tasks in my build file.

Recently I moved my project folder to new m/c. I have to compile 2995 java classes. At this stage I am getting following error. (in javac task)


[javac] The system is out of resources.
[javac] Consult the following stack trace for details.

[javac] java.lang.OutOfMemoryError
[javac] <<no stack trace available>>

I tried to increase heap size by issuing following command from Command prompt.

java -Xmx -256m -Xms 32m

I got following error.
Invalid maximum heap size: -Xmx
Could not create the Java virtual machine.

Any help in resolving this is appreciated.

Thannks in advance
Manohar
Angel Dobbs-Sciortino
Ranch Hand

Joined: Sep 10, 2003
Posts: 101
Try this:

java -Xmx256m -Xms32m
 
jQuery in Action, 2nd edition
 
subject: ANT Out of Memmory problem
 
Threads others viewed
java.lang.OutOfMemoryError
how outofMemoryError canbe avoided
Out of MemoryError
how outofMemoryError canbe avoided
Within Eclipse - ant javac task and OutOfMemory error.
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture