[Mondrian] JUnit tests suite - recommended changes. #625

Julian Hyde jhyde at pentaho.com
Fri Feb 20 03:17:37 EST 2009


I've not seen that cognos test failing with out-of-memory. Maybe, as you
suspect, 64 bit uses 2x the memory. Try doubling to 512Mb.
 
What database are you running against? There have been 6 errors against
Oracle for some time. I emailed Matt Campbell about them earlier today.
 
Julian


  _____  

From: mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org] On
Behalf Of rolf.lear at algorithmics.com
Sent: Thursday, February 19, 2009 7:03 PM
To: mondrian at pentaho.org
Subject: [Mondrian] JUnit tests suite - recommended changes. #625



Hi all.



I pulled the latest source code snapshot from the Hudson dashboard.



Unzipped in to a clean folder, edited the properties file to put in my
database connection details, and using java version:

mondrian-3.1-SNAPSHOT% java -version

java version "1.5.0_14"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)

Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_14-b03, mixed mode)



I ran "ant test".



My results were surprising for two reasons.



First, I got 6 failures, and 1 error.



Second, the error I got was an out-of-memory error....





     [java] There was 1 error:

     [java] 1)
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_012(mondrian.xmla.XmlaCo
gnosTest)java.lang.OutOfMemoryError: Java heap space

     [java]     at
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99
)

     [java]     at
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)

     [java]     at java.lang.StringBuffer.append(StringBuffer.java:225)

     [java]     at java.io.StringWriter.write(StringWriter.java:79)

     [java]     at org.apache.xml.serialize.IndentPrinter.flushLine(Unknown
Source)

     [java]     at org.apache.xml.serialize.IndentPrinter.breakLine(Unknown
Source)

     [java]     at org.apache.xml.serialize.IndentPrinter.breakLine(Unknown
Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.endElementIO(Unknown Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serialize(Unknown Source)

     [java]     at mondrian.tui.XmlUtil.toString(XmlUtil.java:775)

     [java]     at
mondrian.xmla.XmlaBaseTestCase.doTests(XmlaBaseTestCase.java:404)

     [java]     at
mondrian.xmla.XmlaBaseTestCase.doTestInline(XmlaBaseTestCase.java:289)

     [java]     at
mondrian.xmla.XmlaBaseTestCase.doTest(XmlaBaseTestCase.java:246)

     [java]     at
mondrian.xmla.XmlaBaseTestCase.doTest(XmlaBaseTestCase.java:236)

     [java]     at
mondrian.xmla.XmlaCognosTest.executeMDX(XmlaCognosTest.java:198)

     [java]     at
mondrian.xmla.XmlaCognosTest.testCognosMDXSuiteConvertedAdventureWorksToFood
Mart_012(XmlaCognosTest.java:86)

     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)





I am still working on the 6 failures, but, the fix for the error is to
increase the size of the heap for the junit.jvmargs property in the
build.xml file. 256m is too small it seems. (I used 1g, but perhaps that's
too much?)



This would be an easy change.



Perhaps it is because I am using 64bit on linux?



Thanks



Rolf

 
  _____  

This email and any files transmitted with it are confidential and
proprietary to Algorithmics Incorporated and its affiliates
("Algorithmics"). If received in error, use is prohibited. Please destroy,
and notify sender. Sender does not waive confidentiality or privilege.
Internet communications cannot be guaranteed to be timely, secure, error or
virus-free. Algorithmics does not accept liability for any errors or
omissions. Any commitment intended to bind Algorithmics must be reduced to
writing and signed by an authorized signatory.
  _____  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20090220/6c36bc39/attachment.html 


More information about the Mondrian mailing list