The moose likes Ant, Maven and Other Build Tools and the fly likes unable to set -Xms256m -Xmx512m in ant 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 "unable to set -Xms256m -Xmx512m in ant" Watch "unable to set -Xms256m -Xmx512m in ant" New topic
Author

unable to set -Xms256m -Xmx512m in ant

eric sato
Ranch Hand

Joined: Oct 01, 2002
Posts: 37
hi all,
i tried to set the min and max in my ant build file to run my tomcat. but sad to say that it gives me error. what should i do now ???
best regards,
sato


Below is the error message from the console.
=============================================
[java] Invalid maximum heap size: -Xmx256m -Xloggc:/home/kh/cvslocal/LiveCricketInfo/gc.txt
[java] Could not create the Java virtual machine.



below is the snippet
=====================
<jvmarg value="-Xm256m -Xmx512m -Xloggc:/home/kh/cvslocal/LiveCricketInfo/gc.txt"/>


If you can't change the direction the the wind, change your sail.
 
 
subject: unable to set -Xms256m -Xmx512m in ant
 
Threads others viewed
Eclipse install for Java EE not working in windows vista 64 bit
JBoss AS 7: not starting because of memory?
java.lang.StackOverflowError
OutOfMemory Exception while building using eclipse compiler
Problem starting Jboss
developer file tools