log excessive creation of threads in thread pool

This commit is contained in:
Dmitry Jemerov
2011-11-25 17:03:35 +01:00
parent 3aa12306c6
commit 9fb526c8f3

View File

@@ -143,6 +143,9 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
}
}
};
if (ApplicationInfoImpl.getShadowInstance().isEAP() && i > 10) {
LOG.info("Not enough pooled threads; creating one at:", new Throwable());
}
thread.setPriority(Thread.NORM_PRIORITY - 1);
return thread;
}