Skip to content

hpoettker/lazy-scheduler-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Demo

This project is a small demo project that

  • executes a toy batch with Spring Batch
  • has lazy initialization enabled by default

When profiled, the method

org.springframework.boot.autoconfigure.task.ScheduledBeanLazyInitializationExcludeFilter.isExcluded(String, BeanDefinition, Class)

takes up a surprisingly large amount of room in the flame graph:

Flame graph

It's more than 3% of the overall run-time, which isn't much in the big scheme of things. But it's nevertheless unnecessary as the application has not opted in to scheduling with @EnableScheduling.

The filter can be disabled by excluding the TaskSchedulingAutoConfiguration.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages