[
https://issues.apache.org/jira/browse/LUCENE-6162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14264615#comment-14264615
]
Martin Gainty commented on LUCENE-6162:
---------------------------------------
agreed..common-build.xml builds src/java no problem
agreed..common-build.xml builds src/test no problem
the problem with heap exhaustion occurs when running 572 junit testcases
1)I begged off macros and went directly to the testgen for junit4 e.g.
<taskdef name="junit4"
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
classpath="..." />
2)I increased min heap, max heap and PermGen parameters to 4GB and gave it the
whole machine..no daemons/services are running and no browsers are running
3)running Junit on each folder at a time e.g.
<echo>common-build.xml LINE 1230 about to execute junit on analysis </echo>
<junit4
taskName="junit"
dir="./analysis"
tempdir="./build/test/temp"
maxmemory="4096M"
printSummary="true"
haltonfailure="false"
failureProperty="tests.failed">
<jvmarg value="-Xms4096M -Xmx4096M -XX:PermSize=4096M
-XX:MaxPermSize=4096M"/>
<classpath>
,,,,,,,,,,,,,,,,,,,,,,,
</classpath>
</junit4>
Junit4 runs slow ..to complete all testcases takes at least 45 min...but junit4
does complete
Have you been able to f ind a configuration to execute all 572 testcases in
less time without exhausting heap or PermGen?
Thanks,
Martin
> type="java.io.FileNotFoundException">java.io.FileNotFoundException:
> \data\thunderbirdDicts\addon-0.4.5-an+fx+tb+fn+sm.xpi
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: LUCENE-6162
> URL: https://issues.apache.org/jira/browse/LUCENE-6162
> Project: Lucene - Core
> Issue Type: Bug
> Affects Versions: 4.10.3
> Environment: JDK 1.7.0_45
> ANT 1.8.2
> Reporter: Martin Gainty
> Original Estimate: 336h
> Remaining Estimate: 336h
>
> type="java.io.FileNotFoundException">java.io.FileNotFoundException:
> \data\thunderbirdDicts\addon-0.4.5-an+fx+tb+fn+sm.xpi
> I think common-build.xml needs serious trimming.. I keep getting OutOfMemory
> even with 8GB RAM...I refactored common-build.xml to rid of serious baggage
> and now javac on src/java and src/test and junit seem to work flawlessly now
> IVY calling a macro calling the actual taskdef with everything parameritised
> probably is the culprit..By replacing IVY macros with plain taskdefs I was
> able to run all 537 testcases with 4GB RAM
> MG
> 04-Jan-2015
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]