[jira] [Commented] (AMQ-5129) Substitute TimeTask with ScheduledExecutorService in org.apache.activemq.thread.Scheduler

2018-06-01 Thread Gary Tully (JIRA)


[ 
https://issues.apache.org/jira/browse/AMQ-5129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16497915#comment-16497915
 ] 

Gary Tully commented on AMQ-5129:
-

it may still be no harm to introduce the scheduled executor even with a pool of 
one. It would ensure the thread stays alive but with the changes in AMQ-6979 it 
is less likely.

> Substitute TimeTask with ScheduledExecutorService in 
> org.apache.activemq.thread.Scheduler
> -
>
> Key: AMQ-5129
> URL: https://issues.apache.org/jira/browse/AMQ-5129
> Project: ActiveMQ
>  Issue Type: Wish
>Affects Versions: 5.9.0
>Reporter: matteo rulli
>Priority: Major
> Attachments: proposed-patch.txt
>
>
> Since Timer has only one execution thread, long-running task can affect other 
> scheduled tasks. Besides, runtime exceptions thrown in TimerTasks kill the 
> only one running thread, bringing down the entire Scheduler.
> I have the suspect that all this could relate to AMQ-3938: sometimes in very 
> busy environments I experience exaclty the same problem: a slow leakeage due 
> to temp queues that are not deleted. Since 
> org.apache.activemq.broker.region.RegionBroker uses a Scheduler to activate 
> the purgeInactiveDestinations, a crashed timer could explain why 
> purgeInactiveDestinations stops working.
> I attached a tentative patch to migrate timer to ScheduledExecutorService. 
> Hope this helps.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AMQ-5129) Substitute TimeTask with ScheduledExecutorService in org.apache.activemq.thread.Scheduler

2018-05-30 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/AMQ-5129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16495672#comment-16495672
 ] 

ASF subversion and git services commented on AMQ-5129:
--

Commit cdb38b32756d70bf7ae149e994ab9adca5ae in activemq's branch 
refs/heads/master from [~gtully]
[ https://git-wip-us.apache.org/repos/asf?p=activemq.git;h=cdb38b3 ]

AMQ-6979 - use scheduler as trigger task - do heavy lifting via the task runner 
executor, take care to trap errors to keep scheduler timer alive AMQ-5129


> Substitute TimeTask with ScheduledExecutorService in 
> org.apache.activemq.thread.Scheduler
> -
>
> Key: AMQ-5129
> URL: https://issues.apache.org/jira/browse/AMQ-5129
> Project: ActiveMQ
>  Issue Type: Wish
>Affects Versions: 5.9.0
>Reporter: matteo rulli
>Priority: Major
> Attachments: proposed-patch.txt
>
>
> Since Timer has only one execution thread, long-running task can affect other 
> scheduled tasks. Besides, runtime exceptions thrown in TimerTasks kill the 
> only one running thread, bringing down the entire Scheduler.
> I have the suspect that all this could relate to AMQ-3938: sometimes in very 
> busy environments I experience exaclty the same problem: a slow leakeage due 
> to temp queues that are not deleted. Since 
> org.apache.activemq.broker.region.RegionBroker uses a Scheduler to activate 
> the purgeInactiveDestinations, a crashed timer could explain why 
> purgeInactiveDestinations stops working.
> I attached a tentative patch to migrate timer to ScheduledExecutorService. 
> Hope this helps.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AMQ-5129) Substitute TimeTask with ScheduledExecutorService in org.apache.activemq.thread.Scheduler

2016-09-20 Thread clebert suconic (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-5129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15507196#comment-15507196
 ] 

clebert suconic commented on AMQ-5129:
--

1966?

if you change anything here.. look at a simple class I made on Artemis: 

https://github.com/apache/activemq-artemis/blob/master/artemis-commons/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQScheduledComponent.java


It's a common pattern that makes it easier to manage. Also this is backed by an 
executor, so if a Scheduler ever hungs it wouldn't starve the Scheduler... But 
I also have the OrderedExecutor there, what makes it simpler.

> Substitute TimeTask with ScheduledExecutorService in 
> org.apache.activemq.thread.Scheduler
> -
>
> Key: AMQ-5129
> URL: https://issues.apache.org/jira/browse/AMQ-5129
> Project: ActiveMQ
>  Issue Type: Wish
>Affects Versions: 5.9.0
>Reporter: matteo rulli
> Attachments: proposed-patch.txt
>
>
> Since Timer has only one execution thread, long-running task can affect other 
> scheduled tasks. Besides, runtime exceptions thrown in TimerTasks kill the 
> only one running thread, bringing down the entire Scheduler.
> I have the suspect that all this could relate to AMQ-3938: sometimes in very 
> busy environments I experience exaclty the same problem: a slow leakeage due 
> to temp queues that are not deleted. Since 
> org.apache.activemq.broker.region.RegionBroker uses a Scheduler to activate 
> the purgeInactiveDestinations, a crashed timer could explain why 
> purgeInactiveDestinations stops working.
> I attached a tentative patch to migrate timer to ScheduledExecutorService. 
> Hope this helps.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (AMQ-5129) Substitute TimeTask with ScheduledExecutorService in org.apache.activemq.thread.Scheduler

2016-09-20 Thread Christopher L. Shannon (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-5129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15507089#comment-15507089
 ] 

Christopher L. Shannon commented on AMQ-5129:
-

While I don't disagree that the scheduler could be looked at it to modernize a 
bit and maybe switch to using ScheduledExecutorService, I would recommend that 
you try a newer version of the broker as well to see if it helps your issue.  
If the timer tasks are suddenly not working then there's probably some other 
underlying issue going on that is the root cause which might have already been 
fixed in a newer version.  The newest version is 5.14.0 and there have been 
1966 commits since 5.9.1 so quite a lot has changed since 5.9.1 was released.

> Substitute TimeTask with ScheduledExecutorService in 
> org.apache.activemq.thread.Scheduler
> -
>
> Key: AMQ-5129
> URL: https://issues.apache.org/jira/browse/AMQ-5129
> Project: ActiveMQ
>  Issue Type: Wish
>Affects Versions: 5.9.0
>Reporter: matteo rulli
> Attachments: proposed-patch.txt
>
>
> Since Timer has only one execution thread, long-running task can affect other 
> scheduled tasks. Besides, runtime exceptions thrown in TimerTasks kill the 
> only one running thread, bringing down the entire Scheduler.
> I have the suspect that all this could relate to AMQ-3938: sometimes in very 
> busy environments I experience exaclty the same problem: a slow leakeage due 
> to temp queues that are not deleted. Since 
> org.apache.activemq.broker.region.RegionBroker uses a Scheduler to activate 
> the purgeInactiveDestinations, a crashed timer could explain why 
> purgeInactiveDestinations stops working.
> I attached a tentative patch to migrate timer to ScheduledExecutorService. 
> Hope this helps.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (AMQ-5129) Substitute TimeTask with ScheduledExecutorService in org.apache.activemq.thread.Scheduler

2016-09-20 Thread jack patwork (JIRA)

[ 
https://issues.apache.org/jira/browse/AMQ-5129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15506965#comment-15506965
 ] 

jack patwork commented on AMQ-5129:
---

I've seen the same thing on 5.9.1. I'm running a 4 node cluster and 
intermittently, every few weeks, the scheduler stops working. I haven't yet 
been able to spot what triggers this. I'm using the purgeInactiveDestinations 
on dynamic topics that are being getting and purged a few times a minute so in 
order to keep the memory under control this is critical. When it stops within a 
few hours the affected instance is out of memory and needs a restart.

I think the scheduler definitely needs to be more robust and handle failures 
without stopping. It's a concern that the the scheduler can stop without any 
trace of failure in the logs, apart from a canary watch of the scheduler log 
lines.


> Substitute TimeTask with ScheduledExecutorService in 
> org.apache.activemq.thread.Scheduler
> -
>
> Key: AMQ-5129
> URL: https://issues.apache.org/jira/browse/AMQ-5129
> Project: ActiveMQ
>  Issue Type: Wish
>Affects Versions: 5.9.0
>Reporter: matteo rulli
> Attachments: proposed-patch.txt
>
>
> Since Timer has only one execution thread, long-running task can affect other 
> scheduled tasks. Besides, runtime exceptions thrown in TimerTasks kill the 
> only one running thread, bringing down the entire Scheduler.
> I have the suspect that all this could relate to AMQ-3938: sometimes in very 
> busy environments I experience exaclty the same problem: a slow leakeage due 
> to temp queues that are not deleted. Since 
> org.apache.activemq.broker.region.RegionBroker uses a Scheduler to activate 
> the purgeInactiveDestinations, a crashed timer could explain why 
> purgeInactiveDestinations stops working.
> I attached a tentative patch to migrate timer to ScheduledExecutorService. 
> Hope this helps.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)