buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pankaj Gupta <>
Subject Increasing heap size for unittests
Date Thu, 06 Sep 2012 00:58:15 GMT

I need to increase the java heap size for my unit tests. These are PigUnit
tests and require a large amount of memory. I'm using buildr gem version

I've tried putting at top in my build file: ENV['JAVA_OPTS'] ||= '-Xms1g

Also tried:
task 'test' do
    test.with JUNIT
    test.using :java_args => ['-Xmx1024m']

I even tried setting JAVA_OPTS as an environment variable for the buildr
command i.e. JAVA_OPTs=-Xmx1g buildr test

None of these work and I get an out of memory error. I will really
appreciate any suggestions.

Thanks in Advance,


*P* | (415) 677-9222 ext. 205 *F *| (415) 677-0895 |

Pankaj Gupta | Software Engineer

*BrightRoll, Inc. *| Smart Video Advertising |

United States | Canada | United Kingdom | Germany

We're hiring<>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message