This page is no longer maintained — Please continue to the home page at www.scala-lang.org

OutOfMemory on `ant test.suite`

2 replies
Mitchell Hashimoto
Joined: 2011-03-27,
User offline. Last seen 42 years 45 weeks ago.
Hi,
I've been working on some tickets in the Scala compiler and I wanted to run the test suite, and it fails with an OutOfMemory. Example:
https://gist.github.com/d957430516db363fbb48
Any tips would be much appreciated.
Thanks,Mitchell
Kato Kazuyoshi
Joined: 2010-10-22,
User offline. Last seen 29 weeks 1 day ago.
Re: OutOfMemory on `ant test.suite`

On Sun, Jul 24, 2011 at 11:43 AM, Mitchell Hashimoto
wrote:
> Hi,
> I've been working on some tickets in the Scala compiler and I wanted to run
> the test suite, and it fails with an OutOfMemory. Example:
> https://gist.github.com/d957430516db363fbb48
> Any tips would be much appreciated.
> Thanks,
> Mitchell
>

Scala eats much more memory...
When I run the test suite and Scaladoc, I add these flags.

% ANT_OPTS="-Xmx2G -XX:MaxPermSize=128m" ant test.suite

Mitchell Hashimoto
Joined: 2011-03-27,
User offline. Last seen 42 years 45 weeks ago.
Re: OutOfMemory on `ant test.suite`


On Saturday, July 23, 2011 8:08:06 PM UTC-7, Kato Kazuyoshi wrote:
On Sun, Jul 24, 2011 at 11:43 AM, Mitchell Hashimoto
<mitchell....@gmail.com> wrote:
> Hi,
> I've been working on some tickets in the Scala compiler and I wanted to run
> the test suite, and it fails with an OutOfMemory. Example:
> https://gist.github.com/d957430516db363fbb48
> Any tips would be much appreciated.
> Thanks,
> Mitchell
>

Scala eats much more memory...
When I run the test suite and Scaladoc, I add these flags.

% ANT_OPTS="-Xmx2G -XX:MaxPermSize=128m" ant test.suite


This worked. Thanks. 

--
Kato Kazuyoshi

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland