Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Scheduler Question

Hi,

We are using the scheduler to schedule a background task that runs every 2 seconds:

    connector.getScheduler().schedule(this, 2000, TimeUnit.MILLISECONDS);

When it wakes up, it processes some log data and then schedules itself to run again in 2 seconds.

Very rarely, for a cause and reason we can't explain, the rescheduling does not happen and the background process never runs again.  We've caught any possible Throwable in the task execution and log any possible exception that might occur.  The logs are empty, the task just stops.  The thread pool is nowhere near exhausted when this happens.

This happens so rarely that it is very difficult to debug. 

Any ideas what might cause something like this?

Thanks,
Josh

Back to the top