nyxz
nyxz

Reputation: 7428

Is there locking on Spring managed beans inside RecursiveTask

Technology stack

The problem

  1. I need to be able to process ZIP files containing documents in the application, unzip them recursively. What I mean by recursively - if the ZIP contains other ZIP files they also should be unzipped. Then all documents inside all the archives should be processed.

  2. Point 1 should be executed in parallel in order to speed up the process.

Implementation

Result

Question

Let me know what is unclear in my explanation (I bet there will be something).

Upvotes: 2

Views: 710

Answers (1)

Bozho
Bozho

Reputation: 597046

A few advice that should help:

  • Do a thread dump (e.g. with visualvm) and see what is blocked
  • Try to minimize the number of forked tasks
  • Consider iteration instead of recursion

Upvotes: 5

Related Questions