Monday, 19 May 2014

Ant Build OutOfMemory issue

If 'javac' task is used with fork option then , javac will run in his own process and memory should be directly assigned to the javac using 'memoryinitialsize' and 'memorymaximumsize':
javac   srcdir="${src}"
            destdir="${classes}"
            source="1.6"
            debug="true"
            fork="true"
            deprecation="off"
            memoryinitialsize="512m"
            memorymaximumsize="1024m"

3 comments:

  1. Thank you and please provide more information Java Spring

    ReplyDelete
  2. The actual time and effort took to create this wonderful article were really great and would like to read this blog regularly to get more updates...
    DevOps Training in Chennai | DevOps Online Training in Chennai

    ReplyDelete
  3. The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.

    DevOps Training in Bangalore

    DevOps Training in Pune

    DevOps Online Training

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...