|
|
This post has NOT been accepted by the mailing list yet.
Hi all,
I've encountered a memory leak problem in my application. After analyzing heap dump it occured that Quartz Job holds reference to Hibernate session which was full of objects loaded in my service.
Here's the code from my job:
NewsService newsService
def execute() {
try {
newsService.importNews()
} catch (Exception ex) {
log.error("Error importing news", ex)
}
}
The importNews() method is iterating one of my domain class with .all method.
The problem dissappered after setting sessionRequired to false (and concurrent to false too) in my job.
Am I missing something?
Regards,
Piotr Jagielski
|