Given is the following configuration of a ScheduledThreadPoolExecutor that runs a simple task every five seconds:
int corePoolSize = 0; ScheduledExecutorServ
It looks like you have hit JDK-8129861 that has been fixed in Java 9. It may also be related to JDK-8022642.