Project

General

Custom queries

Profile

Actions

Bug #11594

closed

JVM crash due to thread leak in CachedFindRuleNodeStatusReports

Added by François ARMAND over 7 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
N/A
Assignee:
-
Category:
Performance and scalability
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Medium
Priority:
33
Name check:
Fix check:
Regression:

Description

We have a thread leak, perhaps due to a deadlock+unbounded thread pool. Some user are reported crashes with javacore filled with thousands of following stack trace:

3XMTHREADINFO      "ForkJoinPool-1-worker-46345" J9VMThread:0x0000000035564D00, j9thread_t:0x00007F1019500010, java/lang/Thread:0x00000003EE1D81C0, state:B, prio=5
3XMJAVALTHREAD            (java/lang/Thread getId:0x1C6C3, isDaemon:true)
3XMTHREADINFO1            (native thread ID:0x4DD4, native priority:0x5, native policy:UNKNOWN, vmstate:B, vm thread flags:0x01000201)
3XMTHREADINFO2            (native stack address range from:0x00007F1018FA0000, to:0x00007F1018FE1000, size:0x41000)
3XMCPUTIME               CPU usage total: 0.332868435 secs, current category="Application" 
3XMTHREADBLOCK     Blocked on: com/normation/rudder/services/reports/CachedReportingServiceImpl@0x00000003D9B602D8 Owned by: "ForkJoinPool-1-worker-47359" (J9VMThread:0x000000003D862600, java/lang/Thread:0x0000000707287D28)
3XMHEAPALLOC             Heap bytes allocated since last GC cycle=0 (0x0)
3XMTHREADINFO3           Java callstack:
4XESTACKTRACE                at com/normation/rudder/services/reports/CachedFindRuleNodeStatusReports$$anonfun$invalidate$1.apply(ReportingServiceImpl.scala:152(Compiled Code))
4XESTACKTRACE                at com/normation/rudder/services/reports/CachedFindRuleNodeStatusReports$$anonfun$invalidate$1.apply(ReportingServiceImpl.scala:152(Compiled Code))
4XESTACKTRACE                at scala/concurrent/impl/ExecutionContextImpl$DefaultThreadFactory$$anon$2$$anon$4.block(ExecutionContextImpl.scala:48(Compiled Code))
4XESTACKTRACE                at scala/concurrent/forkjoin/ForkJoinPool.managedBlock(ForkJoinPool.java:3640(Compiled Code))
4XESTACKTRACE                at scala/concurrent/impl/ExecutionContextImpl$DefaultThreadFactory$$anon$2.blockOn(ExecutionContextImpl.scala:45(Compiled Code))
4XESTACKTRACE                at scala/concurrent/package$.blocking(package.scala:123(Compiled Code))
4XESTACKTRACE                at com/normation/rudder/services/reports/CachedFindRuleNodeStatusReports$class.invalidate(ReportingServiceImpl.scala:152(Compiled Code))
4XESTACKTRACE                at com/normation/rudder/services/reports/CachedReportingServiceImpl.invalidate(ReportingServiceImpl.scala:76(Compiled Code))
4XESTACKTRACE                at com/normation/rudder/reports/execution/ReportsExecutionService$$anonfun$hook$2.apply$mcV$sp(ReportsExecutionService.scala:209(Compiled Code))
4XESTACKTRACE                at com/normation/rudder/reports/execution/ReportsExecutionService$$anonfun$hook$2.apply(ReportsExecutionService.scala:209(Compiled Code))
4XESTACKTRACE                at com/normation/rudder/reports/execution/ReportsExecutionService$$anonfun$hook$2.apply(ReportsExecutionService.scala:209(Compiled Code))
4XESTACKTRACE                at scala/concurrent/impl/Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24(Compiled Code))
4XESTACKTRACE                at scala/concurrent/impl/Future$PromiseCompletingRunnable.run(Future.scala:24(Compiled Code))
4XESTACKTRACE                at scala/concurrent/impl/ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121(Compiled Code))
4XESTACKTRACE                at scala/concurrent/forkjoin/ForkJoinTask.doExec(ForkJoinTask.java:260(Compiled Code))
4XESTACKTRACE                at scala/concurrent/forkjoin/ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339(Compiled Code))
4XESTACKTRACE                at scala/concurrent/forkjoin/ForkJoinPool.runWorker(ForkJoinPool.java:1979(Compiled Code))
4XESTACKTRACE                at scala/concurrent/forkjoin/ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107(Compiled Code))
3XMTHREADINFO3           No native callstack available for this thread

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #14465: Generation fails with "Task FutureTask rejected from ThreadPoolExecutor" due to timeout in JS computationReleasedFrançois ARMANDActions
#6

Updated by Benoît PECCATTE over 7 years ago

  • Effort required set to Medium
  • Priority changed from 52 to 35
#7

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.24 to 3.1.25
#8

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.25 to 387
  • Priority changed from 35 to 34
#9

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 387 to 4.1.10
#10

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.1.10 to 4.1.11
  • Priority changed from 34 to 33
#11

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.1.11 to 4.1.12
  • Priority changed from 33 to 32
#12

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.1.12 to 4.1.13
  • Priority changed from 32 to 31
#13

Updated by Benoît PECCATTE about 7 years ago

  • Target version changed from 4.1.13 to 411
#14

Updated by Benoît PECCATTE about 7 years ago

  • Target version changed from 411 to 4.1.13
#15

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.1.13 to 4.1.14
#16

Updated by Benoît PECCATTE almost 7 years ago

  • Target version changed from 4.1.14 to 4.1.15
  • Priority changed from 31 to 30
#17

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.15 to 4.1.16
  • Priority changed from 30 to 29
#18

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.16 to 4.1.17
#19

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.17 to 4.1.18
  • Priority changed from 29 to 0
#20

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.18 to 4.1.19
#21

Updated by Alexis Mousset over 6 years ago

  • Target version changed from 4.1.19 to 4.1.20
#22

Updated by François ARMAND over 6 years ago

  • Target version changed from 4.1.20 to 4.1.21
#23

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.21 to 4.1.22
#24

Updated by Nicolas CHARLES about 6 years ago

  • Related to Bug #14465: Generation fails with "Task FutureTask rejected from ThreadPoolExecutor" due to timeout in JS computation added
#25

Updated by François ARMAND about 6 years ago

  • User visibility changed from Operational - other Techniques | Technique editor | Rudder settings to Operational - other Techniques | Rudder settings | Plugins
  • Priority changed from 0 to 29
#26

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.22 to 4.1.23
#27

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.23 to 4.1.24
#28

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 4.1.24 to 588
#29

Updated by Benoît PECCATTE almost 6 years ago

  • Target version changed from 588 to 5.0.13
#30

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 5.0.13 to 5.0.14
#31

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.14 to 5.0.15
#32

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.15 to 5.0.16
#33

Updated by Alexis Mousset over 5 years ago

  • Target version changed from 5.0.16 to 5.0.17
#34

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 5.0.17 to 5.0.18
#35

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 5.0.18 to 5.0.19
#36

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 5.0.19 to 5.0.20
#37

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 5.0.20 to 797
#38

Updated by Benoît PECCATTE almost 4 years ago

  • Target version changed from 797 to 6.1.14
  • Priority changed from 29 to 31
#39

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.1.14 to 6.1.15
#40

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.1.15 to 6.1.16
#41

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.1.16 to 6.1.17
  • Priority changed from 31 to 32
#42

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.1.17 to 6.1.18
#43

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.1.18 to 6.1.19
  • Priority changed from 32 to 33
#44

Updated by François ARMAND over 3 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF