Re: java.lang.OutOfMemoryError: Java heap space

Leo Przybylski <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
I'm building a project of roughly the same size.

I had a similar problem just the other day. I set CC_OPTS=-Xmx2g

I'm also forking our javac task to run in a separate process.

That still didn't help. I just didn't get why 2g wasn't enough. Turned
out to be that there was a compile error.

Our build is a full checkout from subversion as well as compile. The
log data is verbose with debugging enabled. It is my belief that the
XML log handling with CC is what is running out of memory in my case.
With the checkout of 3000 files from SVN, plus all the verbose
messages, the log appending just runs out of memory for me around the
time that the results are printed for the compile failures (over a 100
in our case.)

We're looking into less verbose logging to solve our issue. We really
don't want to live with not knowing if it was a compile error or not.

Maybe that will help you as well.

On Wed, Mar 11, 2009 at 9:40 AM, Lucas Albers <[email protected]> wrote:
> Isn’t it attempting to allocate more memory than physical memory?
>
>
>
> Add up CC_OPTS+ANT_OPTS+javac = at worse case???  3G?
>
> I’m not an expert on how java allocates memory out, I am just making a wild
> ass stab in the dark.
>
> What happens if you set memory allocation to under the available physical
> memory?
>
>
>
>
>
> From: philippe vanderstraeten [mailto:[email protected]]
> Sent: Wednesday, March 11, 2009 9:47 AM
> To: [email protected]
> Subject: Re: [Cruisecontrol-user] java.lang.OutOfMemoryError: Java heap
> space
>
>
>
> Hi,
>
> I have the same issue as you. It looks like a memory leaks. My build if very
> heavy. Even if I increase the heap size same problem
> regards
>
> On Wed, Mar 11, 2009 at 2:22 PM, mehar <[email protected]>
> wrote:
>
> Hi,
>
> "BUILD FAILED
>  java.lang.OutOfMemoryError: Java heap space"
>
> Kindly help me to resolve the issue, while trying to build a project with
> approx 3000 java files, I tried with following options but still the same
> error persists
>
> 1) set CC_OPTS=-Xms1024m -Xmx1024m in CruiseControl.bat file.
> 2) Set the ANT_OPTS=-Xmx1024m in Config.properties file.
> 3) Set the <javac memoryInitialSize="1024m" memoryMaximumSize="1024m"
> fork="true" .. ..... > in build.xml
> 4) System Memory is 1 GB
>
> Please respond to this mail...
>
>
> Regards,
> Mehar
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>
>



-- 
Leo Przybylski
Application Systems Analyst, Senior
University Information Technology Services
The University of Arizona
Tucson, AZ 85721

Office: 520.626.6997
E-mail: przybyls [at] arizona.edu
URL: http://www.u.arizona.edu/~przybyls/,
https://test.kuali.org/confluence/display/~lprzybylski,
http://confluence.arizona.edu/confluence/display/~przybyls/Home

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.