---
title: "ECLIPSE ANT  OutOfMemoryError"
author: "YOUNG918"
date: "2011-08-04T17:23:38Z"
tags: []
categories: ["编程语言"]
slug: "eclipse-ant-outofmemoryerror"
draft: false
lastmod: "2011-08-04T17:23:38Z"
id: 1140253
url: "https://leonandjava.iteye.com/blog/1140253"
---

ANT BUILD MEMORY ERROR:

 

\[clientgen] The system is out of resources.  
\[clientgen] Consult the following stack trace for details.  
\[clientgen] java.lang.OutOfMemoryError: Java heap space

 

FIX:

```
-Xms768m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m
```