Hi,
I am using Maven 1.0.2. I have performance problem. I think it is caused
by reactor semantics.
I am executing the original goal for creating multi jar files. My goal
use "reactor" for executing jar goal throw multi project.
When I executed my goal for creating 244 jar files ,the performance was
grew worse from jar goal to jar goal. I took a long time in jar:jar
semantics.
I checked GC of java and CPU ,but these have no problem. And I took
three thread dumps per 5 sec. I guess it is caused by the logic of goal
chain in reactor semantics.
If you have some information or solution ,please help me.
----maven.xml----
<maven:reactor basedir="${basedir}"
includes="*/project.xml"
goals="jar"
banner="Building"
ignoreFailures="false"/>
-------
-----maven stdout and stderror-------
build:start:
destdir:init:
[delete] Deleting 2 files from /beatroot/build/classes/META-INF
[delete] /beatroot/build/classes/WEB-INF not found.
java:prepare-filesystem:
java:compile:
[echo] Compiling to /beatroot/build/classes
[echo]
==========================================================
NOTE: Targetting JVM 1.4, classes
will not run on earlier JVMs
==========================================================
[javac] Compiling 8 source files to /beatroot/build/classes
java:jar-resources:
Copying 2 files to /beatroot/build/classes
test:prepare-filesystem:
test:test-resources:
test:compile:
[echo] No test source files to compile.
test:test:
[echo] No tests to run.
jar:jar:
[jar] Building jar: /beatroot/build/OmShPopupJidoKirikaeErr.jar
+----------------------------------------
| Building OmShSIServiceFollowStateless EJB
| Memory: 141M/241M
+----------------------------------------
Full thread dump Java HotSpot(TM) Server VM (1.4.2
1.4.2.02-040225-19:18-PA_RISC2.0 PA2.0 (aCC_AP) mixed mode):
"Signal Dispatcher" daemon prio=10 tid=0007a310 nid=7 lwp_id=875412
waiting on condition [0x00000000..0xffffffff]
"Finalizer" daemon prio=10 tid=0007a1a8 nid=5 lwp_id=875410 in
Object.wait() [0x185fb000..0x185fb4f0]
at java.lang.Object.wait(Native Method)
- waiting on <38c001d0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
- locked <38c001d0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:188)
"Reference Handler" daemon prio=10 tid=0007a040 nid=4 lwp_id=875409 in
Object.wait() [0x1867c000..0x1867c4f0]
at java.lang.Object.wait(Native Method)
- waiting on <38c00238> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:429)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:120)
- locked <38c00238> (a java.lang.ref.Reference$Lock)
"main" prio=10 tid=00079ed8 nid=1 lwp_id=875404 runnable
[0x7b042000..0x7b041bf0]
at java.util.HashMap.addEntry(HashMap.java:739)
at java.util.HashMap.put(HashMap.java:392)
at java.util.HashSet.add(HashSet.java:192)
at java.util.AbstractCollection.addAll(AbstractCollection.java:319)
at java.util.HashSet.<init>(HashSet.java:98)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:520)
at com.werken.werkz.Goal.addPrecursor(Goal.java:410)
at com.werken.werkz.Goal.addPostcursor(Goal.java:432)
at
org.apache.maven.plugin.GoalToJellyScriptHousingMapper.merge(GoalToJellyScriptHousingMapper.java:149)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:621)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at
org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:368)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
"VM Thread" prio=10 tid=000161b8 nid=3 lwp_id=875408 runnable
"VM Periodic Task Thread" prio=8 tid=00016350 nid=11 lwp_id=875416
waiting on condition
"Suspend Checker Thread" prio=10 tid=000162c8 nid=6 lwp_id=875411 runnable
Full thread dump Java HotSpot(TM) Server VM (1.4.2
1.4.2.02-040225-19:18-PA_RISC2.0 PA2.0 (aCC_AP) mixed mode):
"Signal Dispatcher" daemon prio=10 tid=0007a310 nid=7 lwp_id=875412
waiting on condition [0x00000000..0xffffffff]
"Finalizer" daemon prio=10 tid=0007a1a8 nid=5 lwp_id=875410 in
Object.wait() [0x185fb000..0x185fb4f0]
at java.lang.Object.wait(Native Method)
- waiting on <38c001d0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
- locked <38c001d0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:188)
"Reference Handler" daemon prio=10 tid=0007a040 nid=4 lwp_id=875409 in
Object.wait() [0x1867c000..0x1867c4f0]
at java.lang.Object.wait(Native Method)
- waiting on <38c00238> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:429)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:120)
- locked <38c00238> (a java.lang.ref.Reference$Lock)
"main" prio=10 tid=00079ed8 nid=1 lwp_id=875404 runnable
[0x7b042000..0x7b041bf0]
at java.util.Collections.unmodifiableList(Collections.java:1118)
at com.werken.werkz.Goal.getPrecursors(Goal.java:459)
at com.werken.werkz.Goal.checkForCycles(Goal.java:542)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:520)
at com.werken.werkz.Goal.addPrecursor(Goal.java:410)
at
org.apache.maven.plugin.GoalToJellyScriptHousingMapper.merge(GoalToJellyScriptHousingMapper.java:145)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:621)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at
org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:368)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
"VM Thread" prio=10 tid=000161b8 nid=3 lwp_id=875408 runnable
"VM Periodic Task Thread" prio=8 tid=00016350 nid=11 lwp_id=875416
waiting on condition
"Suspend Checker Thread" prio=10 tid=000162c8 nid=6 lwp_id=875411 runnable
Full thread dump Java HotSpot(TM) Server VM (1.4.2
1.4.2.02-040225-19:18-PA_RISC2.0 PA2.0 (aCC_AP) mixed mode):
"Signal Dispatcher" daemon prio=10 tid=0007a310 nid=7 lwp_id=875412
waiting on condition [0x00000000..0xffffffff]
"Finalizer" daemon prio=10 tid=0007a1a8 nid=5 lwp_id=875410 in
Object.wait() [0x185fb000..0x185fb4f0]
at java.lang.Object.wait(Native Method)
- waiting on <38c001d0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
- locked <38c001d0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:188)
"Reference Handler" daemon prio=10 tid=0007a040 nid=4 lwp_id=875409 in
Object.wait() [0x1867c000..0x1867c4f0]
at java.lang.Object.wait(Native Method)
- waiting on <38c00238> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:429)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:120)
- locked <38c00238> (a java.lang.ref.Reference$Lock)
"main" prio=10 tid=00079ed8 nid=1 lwp_id=875404 runnable
[0x7b042000..0x7b041bf0]
at java.util.HashMap.newKeyIterator(HashMap.java:830)
at java.util.HashMap$KeySet.iterator(HashMap.java:862)
at java.util.HashSet.iterator(HashSet.java:152)
at java.util.AbstractCollection.addAll(AbstractCollection.java:317)
at java.util.HashSet.<init>(HashSet.java:98)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:549)
at com.werken.werkz.Goal.checkForCycles(Goal.java:520)
at com.werken.werkz.Goal.addPrecursor(Goal.java:410)
at
org.apache.maven.plugin.GoalToJellyScriptHousingMapper.merge(GoalToJellyScriptHousingMapper.java:145)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:621)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at
org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:368)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
"VM Thread" prio=7 tid=000161b8 nid=3 lwp_id=875408 runnable
"VM Periodic Task Thread" prio=8 tid=00016350 nid=11 lwp_id=875416
waiting on condition
"Suspend Checker Thread" prio=10 tid=000162c8 nid=6 lwp_id=875411 runnable
--------------
Thanks and Regards,
Keisuke
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]