OutOfMemoryError running testInMemoryProvider (OG-Core)

Hi Folks

I’m running the tests through Maven (launched from IntelliJ). I have allocated the Maven runner 2Gb of heap space (-Xmx2048m), and still this test fails. Is there an amount of heap in which this test will succeed, or is the test broken?

testInMemoryProvider
Test class: com.opengamma.core.historicaltimeseries.impl.HistoricalTimeSeriesSourceTest
java.lang.OutOfMemoryError: Java heap space
at it.unimi.dsi.fastutil.ints.IntArrayList.toIntArray(IntArrayList.java:337)

Thanks, Robin.

As a data point, I ran this class on its own in Eclipse using the TestNG runner and had no problem. I also ran the “ant tests” task from OG-Core without any problem. And finally I ran mvn test in OG-Core with no problem (changing no settings).

While none of these replicate your exact setup, they haven’t hit a problem similar to yours! Not exactly an answer though…

Thanks for checking Stephen. At least I now know the problem is definitely somewhere on my side.