I use Spring Batch with deicision tags (and many next tags).
And loading time of the applicationContext.xml is over 20 hours.
So I want to know "what dose the loading process do?".
And I also want to know "why is the loading time so long?".
enviroment:
Spring 2.5.6
Spring Batch 2.1.2
java 1.6
sample xml is below:
Actually there are about 20 next tags in each decision tag.Code:<job id="jobFile" xmlns="http://www.springframework.org/schema/batch" incrementer="jobParametersIncrementer" > <decision decider="bean.Decider1" id="step1"> <next on="c1" to="step2"/> <next on="c2" to="step3"/> .... </decision> <decision decider="bean.Decider2" id="step2"> <next on="cc1" to="step4"/> <next on="cc2" to="step5"/> .... </decision> <step id="step3" next="step4"> </step> <step id="step4" next="step5"> </step> <step id="step5" next="...."> <flow id="flow1" /> </step> </job> <flow id="flow1"> <step id="flow1.step1" next="flow1.step2"/> <step id="flow1.step2" /> </flow>
And if number of next tag is increasing , loading time will be more longer.
(also number of next tag is increasing , flow tags is increasing too. So I don't know which tag is relating to loading time.)
log sample is below:
2011/03/29 17:36:43.531 DEBUG :: Returning cached instance of singleton bean 'bean.Decider1'
2011/03/29 17:36:43.531 DEBUG :: Finished creating instance of bean '(inner bean)#12415'
2011/03/29 17:36:43.531 DEBUG :: Finished creating instance of bean '(inner bean)#12415'
2011/03/29 17:36:43.546 DEBUG :: Creating instance of bean '(inner bean)#12416'
2011/03/29 17:36:43.546 DEBUG :: Creating instance of bean '(inner bean)#12416'
2011/03/29 17:36:43.546 DEBUG :: Returning cached instance of singleton bean 'bean.Decider1'
2011/03/29 17:36:43.546 DEBUG :: Finished creating instance of bean '(inner bean)#12416'
2011/03/29 17:36:43.546 DEBUG :: Finished creating instance of bean '(inner bean)#12416'
2011/03/29 17:36:43.562 DEBUG :: Creating instance of bean '(inner bean)#12417'
2011/03/29 17:36:43.562 DEBUG :: Creating instance of bean '(inner bean)#12417'
2011/03/29 17:36:43.562 DEBUG :: Returning cached instance of singleton bean 'bean.Decider1'
2011/03/29 17:36:43.562 DEBUG :: Finished creating instance of bean '(inner bean)#12417'
2011/03/29 17:36:43.562 DEBUG :: Finished creating instance of bean '(inner bean)#12417'
2011/03/29 17:36:43.578 DEBUG :: Creating instance of bean '(inner bean)#12418'
2011/03/29 17:36:43.593 DEBUG :: Creating instance of bean '(inner bean)#12418'
2011/03/29 17:36:43.593 DEBUG :: Returning cached instance of singleton bean 'bean.Decider1'
2011/03/29 17:36:43.593 DEBUG :: Finished creating instance of bean '(inner bean)#12418'
2011/03/29 17:36:43.593 DEBUG :: Finished creating instance of bean '(inner bean)#12418'
2011/03/29 17:36:43.593 DEBUG :: Creating instance of bean '(inner bean)#12419'
2011/03/29 17:36:43.609 DEBUG :: Creating instance of bean '(inner bean)#12419'
2011/03/29 17:36:43.609 DEBUG :: Returning cached instance of singleton bean 'bean.Decider1'
2011/03/29 17:36:43.609 DEBUG :: Finished creating instance of bean '(inner bean)#12419'
2011/03/29 17:36:43.609 DEBUG :: Finished creating instance of bean '(inner bean)#12419'
2011/03/29 17:36:43.609 DEBUG :: Creating instance of bean '(inner bean)#12420'
2011/03/29 17:36:43.625 DEBUG :: Creating instance of bean '(inner bean)#12420'
2011/03/29 17:36:43.625 DEBUG :: Returning cached instance of singleton bean 'bean.Decider1'
2011/03/29 17:36:43.625 DEBUG :: Finished creating instance of bean '(inner bean)#12420'
2011/03/29 17:36:43.625 DEBUG :: Finished creating instance of bean '(inner bean)#12420'
2011/03/29 17:36:43.640 DEBUG :: Creating instance of bean '(inner bean)#12421'
2011/03/29 17:36:43.640 DEBUG :: Creating instance of bean '(inner bean)#12421'
The output is continuing more than 8000 lines.
And then log outputs "Job execution starting:".
Please help me, if you have the information about this.
Thank you very much for reading my strange english.


Reply With Quote
