Announcement Announcement Module
No announcement yet.
Spring Batch Admin Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 id="smJobDetail" class="org.springframework.scheduling.quartz.JobDe tailBean">
    <property name="jobClass" value=" arter" />
    <property name="group" value="quartz-batch" />
    <property name="jobDataAsMap">
    <entry key="jobName" value="securityMasterJob"/>
    <entry key="launcher" value-ref="jobLauncher"/>
    <entry key="job" value-ref="jobname"></entry>

    <batch:job id="jobname" >
    <batch:listener ref="appJobExecutionListener" />

    <batch:step id="step1">
    <batch:listener ref="appStepExecutionListener" />
    <batch:chunk reader="tableReader" writer="tableWriter"
    commit-interval="100" />

    Please help guys...

  • #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.