Announcement Announcement Module
Collapse
No announcement yet.
Spring Batch Admin Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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>
    </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...

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

    Comment

    Working...
    X