• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT Out of Memmory problem

 
Manohar Karamballi
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:

java -Xmx256m -Xms32m
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic