Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Long Running Threads / Scheduler in OSGI / AEM

VitthalaShiva
Level 2
Level 2

Hi All,

I was facing an issue while reading a lots of data from external sources / DBs. The Data is huge and taking too much to time read those. Due to this, Scheduler is also running longer.

I tried to disabled Scheduler Component, Remove Bundle but still I see the thread in Adobe Experience Manager Web Console - Threads Console. And to kill that thread, I needed to restart the AEM Instance.

 

Is there any way to KILL the long running thread in OSGI Console / AEM.

 

Thanks in Advance.

1 Accepted Solution
Jörg_Hoh
Correct answer by
Employee
Employee

Is this a regular task you are facing? In any way, killing a thread in Java is a bit tricky (and actually discouraged to do), so I would rather adapt your long-running process to react on the presence of a flag (can be a node in the repository or a global variable in the class, which is set from a different thread).

View solution in original post

1 Reply
Jörg_Hoh
Correct answer by
Employee
Employee

Is this a regular task you are facing? In any way, killing a thread in Java is a bit tricky (and actually discouraged to do), so I would rather adapt your long-running process to react on the presence of a flag (can be a node in the repository or a global variable in the class, which is set from a different thread).

View solution in original post