- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Discussions
- Announcements
- General Development
- Schema Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Mobile
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- REST API Integration
- Streaming API
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Site.com
- Jobs Board - Administrators
- Jobs Board - Developers
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- ANT deployment error: java.lang.OutOfMemoryError
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
ANT deployment error: java.lang. OutOfMemor yError
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-10-2009 10:33 AM
Any one know how we can allocate more memory to ant for deployments? In windows we tried creating an enviromental variable with name = ANT_OPTS and value = -Xmx640m but this made no difference.
Any other ideas?
BUILD FAILED java.lang.OutOfMemoryError: Java heap space at com.sforce.ws.parser.MXParser.fillBuf(MXParser.jav
a:2874) at com.sforce.ws.parser.MXParser.more(MXParser.java:2 951) at com.sforce.ws.parser.MXParser.nextImpl(MXParser.ja va:1334) at com.sforce.ws.parser.MXParser.next(MXParser.java:1 049) at com.sforce.ws.parser.MXParser.nextText(MXParser.ja va:1016) at com.sforce.ws.parser.XmlInputStream.nextText(XmlIn putStream.java:124) at com.sforce.ws.bind.TypeMapper.readString(TypeMappe r.java:407) at com.sforce.soap.metadata.DebuggingInfo_element.loa dFields(DebuggingInfo_element.java:68) at com.sforce.soap.metadata.DebuggingInfo_element.loa d(DebuggingInfo_element.java:59) at com.sforce.ws.bind.TypeMapper.readSingle(TypeMappe r.java:564) at com.sforce.ws.bind.TypeMapper.readObject(TypeMappe r.java:475) at com.sforce.ws.transport.SoapConnection.readSoapHea der(SoapConnection.java:229) at com.sforce.ws.transport.SoapConnection.readSoapEnv elopeStart(SoapConnection.java:207) at com.sforce.ws.transport.SoapConnection.bind(SoapCo nnection.java:126) at com.sforce.ws.transport.SoapConnection.receive(Soa pConnection.java:110) at com.sforce.ws.transport.SoapConnection.send(SoapCo nnection.java:92) at com.sforce.soap.metadata.MetadataConnection.checkD eployStatus(MetadataConnection.java:152) at com.salesforce.ant.DeployTask.handleResponse(Deplo yTask.java:97) at com.salesforce.ant.SFDCMDAPIAntTaskRunner.runTask( SFDCMDAPIAntTaskRunner.java:107) at com.salesforce.ant.DeployTask.execute(DeployTask.j ava:51) at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:35 7) at org.apache.tools.ant.Target.performTasks(Target.ja va:385) at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project .java:1306) at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
Thanks,
Jason
Re: ANT deployment error: java.lang. OutOfMemor yError
[ Edited ]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-12-2009 01:10 PM - last edited on 06-12-2009 01:11 PM
Case # 02722203.
No deployemnts are working. We can't update existing code or deploy new code. :smileysad:
Re: ANT deployment error: java.lang. OutOfMemor yError
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-29-2009 02:58 AM
I am also getting the same ANT error: java.lang.OutOfMemoryError : java heap space
when trying to retrieve the EmailTemplates, dashboards and Documents.
I guess its because it has large number of records. But earlier when i tried retrieving all( EmailTemplates, dashboards and Documents) at a time, it gave me limit exceeded 1500 rows error. After i changed to any of these types for retrieval it gave me the above error(java.lang.OutOfMemoryError : java heap space).
Can anybody please suggest the solution for this?
Did u get any solution for this?
Regards,
Su
Re: ANT deployment error: java.lang. OutOfMemor yError
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-08-2009 04:24 PM
We ended up created a environmental variable that allocates alot of memory:
ANT_OPTS=-Xmx1024m
You don't actually have to wait for ANT to return the results if you monitor the deployments in the UI, as soon as it completes with no errors, you can close the command prompt window and it will still deploy successfully.
-Jason

