multithreading - Spring Batch: OutOfMemoryError swallowed -


as part of larger application, set spring batch job made chunk oriented tasklet: reader, processor , writer. job not run in main thread.

occasionally tasklet code throws outofmemoryerror. so, set thread's uncaughtexceptionhandler able react such errors, terminating application.

but outofmemoryerror never reaches thread's uncaughtexceptionhandler. outofmemoryerror "swallowed", abstractstep, if i'm not sure. repeattemplate has sure role. able inform repeatlisteners outofmemoryerror no listeners registered default, , seems not possible register of them through usual tag in taskled definition.

anyhow, happens after outofmemoryerror, jvm keeps on running, because oome swallowed. not nice because not make explicit application has crashed.

so, have advice on how can prevent spring batch swallow such kind of errors , have possibility handle them ?

obviously we're working on fixing oome, think safe if jvm crashes in case of errors.

i'm using spring batch 3.0.1.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -