Re: CamelContext.shutdown takes a long time(), almost a second per route

2015-05-02 Thread apara
As documented in the SEDA endpoint, the solution was to reduce pollTimeout from 1 second down to a small number, but this results in more CPU being consumed while the system is in the idle state waiting for work. I may need to play with the DefaultShutdownStrategy to possibly do an interrupt first

CamelContext.shutdown takes a long time(), almost a second per route

2015-05-02 Thread apara
I have a CamelContext with 12 routes and it takes about 11 seconds (or close to 1 second per route) to execute a graceful shutdown. INFO [main] org.apache.camel.impl.DefaultShutdownStrategy [DefaultShutdownStrategy.java:247] Graceful shutdown of 12 routes completed in 11 seconds Since I am buildi