As we mentioned in the issue description when we are using the ANT plugin for building we encounter Invalid Maximum Heap Size issue.
We also have a feel that it may not be an issue with the ANT plugin as we encounter the same issue when be try to build using a batch file with ANT commands on the slave machine.
So we would like to know if this is some configuration gap on the Jenkins server or something else.