-
Jun 10th, 2010, 01:52 AM
#1
Spring Batch Admin
Hi All,
I am facing java heap space exception when i am trying to populate a table from another table in mysql db in spring batch admin. The first table has something around 4 lakhs records.
The same piece of code if i m trying with spring batch, it works fine.
Below is the job configuration xml.
<bean class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
<property name="triggers">
<bean id="smCronTrigger" class="org.springframework.scheduling.quartz.CronT riggerBean">
<property name="jobDetail" ref="smJobDetail" />
<property name="cronExpression" value="${activetrader.batch.secmaster.cronExpressi on}" />
</bean>
</property>
</bean>
<bean id="smJobDetail" class="org.springframework.scheduling.quartz.JobDe tailBean">
<property name="jobClass" value="com.tradeking.activetrader.batch.jobs.JobSt arter" />
<property name="group" value="quartz-batch" />
<property name="jobDataAsMap">
<map>
<entry key="jobName" value="securityMasterJob"/>
<entry key="launcher" value-ref="jobLauncher"/>
<entry key="job" value-ref="jobname"></entry>
</map>
</property>
</bean>
<batch:job id="jobname" >
<batch:listeners>
<batch:listener ref="appJobExecutionListener" />
</batch:listeners>
<batch:step id="step1">
<batch:tasklet>
<batch:listeners>
<batch:listener ref="appStepExecutionListener" />
</batch:listeners>
<batch:chunk reader="tableReader" writer="tableWriter"
commit-interval="100" />
</batch:tasklet>
</batch:step>
</batch:job>
Please help guys...
-
Jun 13th, 2010, 06:23 AM
#2
Increase the heap size? NB you don't need Quartz particularly for this use case because Spring has cron triggers in its task: namespace. You could try that, and then at least there is one less moving part.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules