Hi all.
In production under load, we experienced a case were a particular timer
stopped working.
I thought maybe a runstime exception stops a ScheduleExpression, but could
not simulate this. Glassfish I know was very sensible to this.
Could a low EJB timer thread seeting cause a timer to stop,
Hmm, not having any log is weird if you dont have a JVM crash. If you
manage to reproduce it having at least a thread stack dump (using
jstack for instance) would help
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
I've seen this in production for quite a while, too, on Apache TomEE 1.7.1.
I've never been able to catch a log message which showed it, we end up
having to restart periodically in order to ensure the timers are
reactivated. I suspect this is a user error, but .. no log messages.
It's not easy to
Here the log I'd check: Timer (note: not sure it is on by default I
didnt check its default config in tomee)
Some additional checks: with jstack check threads EjbTimerPool*
Also check your config of the timer pool (here some basic
conf/system.properties properties for default setup):
No log was noticed. But maybe we missed it. We will look further. But
definitely no periodic log.
Like that:
@Singleton
@Lock(LockType.READ)
public class TimerScheduler {
@Resource
private TimerService timerService;
@Inject
Logger logger;
@Resource
private BeanManager
Hi
how do you use TimerService? No log at all saying there is an issue?
What's @Timeout method?
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
2015-02-11 15:48 GMT+01:00 Matej gma...@gmail.com:
Hi all.
In production
-timers-stop-working-tp4673750p4673755.html
Sent from the TomEE Users mailing list archive at Nabble.com.
{doWork(); } finally { inTimer.unlock(); }}
else {
logger.warn(Can not get lock!);}}
So you can see where problem is.
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/EJB-timers-stop-working-tp4673750p4673755.html
Sent from the TomEE