# SLOW Ingest with thread dump..."tika-reader-0" Id=4456649 WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer

**URL:** <https://sleuthkit.discourse.group/t/slow-ingest-with-thread-dump-tika-reader-0-id-4456649-waiting-on-java-util-concurrent-locks-abstractqueuedsynchronizer/2516>\
**Category:** Autopsy Help\
**Created:** [March 16, 2021, 5:29pm UTC](https://sleuthkit.discourse.group/t/slow-ingest-with-thread-dump-tika-reader-0-id-4456649-waiting-on-java-util-concurrent-locks-abstractqueuedsynchronizer/2516 "2021-03-16T17:29:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mckw99](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mckw99](https://sleuthkit.discourse.group/u/mckw99)\
**Post date:** [March 16, 2021, 5:29pm UTC](https://sleuthkit.discourse.group/t/slow-ingest-with-thread-dump-tika-reader-0-id-4456649-waiting-on-java-util-concurrent-locks-abstractqueuedsynchronizer/2516/1 "2021-03-16T17:29:35Z")

</div>

Hi there, I am running a keyword search on a large dataset - 3Tb - although only a subset of file types within that data are searched. It started off great - storming through the files, however it has now slowed down considerably with the following example a thread dump ([Dropbox - Ingest Thread Dump.txt - Simplify your life](https://www.dropbox.com/s/aorh4vji2n04uhi/Ingest%20Thread%20Dump.txt?dl=0)) . I dont know that much about Java - anyone shed any light on what is going on and more importantly can I rectify it while the ingest is running? It has been running for 4 days now and I really dont want to be forced into starting the ingest again… The machine it is running on has 8 cores (4 threads running), 16GB RAM and 800Gb of disk space (this case is so far 90Gb with 31% completed). TIA

---

<div class="post-metadata">

**Author:** ![Richard\_Cordovano](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/richard_cordovano/32/15_2.png) [@Richard\_Cordovano](https://sleuthkit.discourse.group/u/Richard_Cordovano)\
**Post date:** [March 18, 2021, 8:01pm UTC](https://sleuthkit.discourse.group/t/slow-ingest-with-thread-dump-tika-reader-0-id-4456649-waiting-on-java-util-concurrent-locks-abstractqueuedsynchronizer/2516/2 "2021-03-18T20:01:13Z")

</div>

We are taking a look at this at Basis Technology. Thanks for the thread dump!

---

<div class="post-metadata">

**Author:** ![Richard\_Cordovano](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/richard_cordovano/32/15_2.png) [@Richard\_Cordovano](https://sleuthkit.discourse.group/u/Richard_Cordovano)\
**Post date:** [March 19, 2021, 1:29pm UTC](https://sleuthkit.discourse.group/t/slow-ingest-with-thread-dump-tika-reader-0-id-4456649-waiting-on-java-util-concurrent-locks-abstractqueuedsynchronizer/2516/3 "2021-03-19T13:29:23Z")

</div>

@mckw99, unfortunately, you have run afoul of a previously unknown deadlock bug. Your ingest job will never complete. Sorry about that.

We have a fix for the problem and are looking at releasing it quickly.

---

<div class="post-metadata">

**Author:** ![mckw99](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mckw99](https://sleuthkit.discourse.group/u/mckw99)\
**Post date:** [March 19, 2021, 1:57pm UTC](https://sleuthkit.discourse.group/t/slow-ingest-with-thread-dump-tika-reader-0-id-4456649-waiting-on-java-util-concurrent-locks-abstractqueuedsynchronizer/2516/4 "2021-03-19T13:57:45Z")

</div>

Richard, I really appreciate you looking into this for me and letting me know what the issue is. I have an ever larger data set to run this keyword search on (6tb+) after this one. I will keep an eye on the website for an update but would really appreciate if you could reply on this thread when the fix is released?  
Again thanks, appreciate the help.

---

<div class="post-metadata">

**Author:** ![Richard\_Cordovano](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/richard_cordovano/32/15_2.png) [@Richard\_Cordovano](https://sleuthkit.discourse.group/u/Richard_Cordovano)\
**Post date:** [March 19, 2021, 8:12pm UTC](https://sleuthkit.discourse.group/t/slow-ingest-with-thread-dump-tika-reader-0-id-4456649-waiting-on-java-util-concurrent-locks-abstractqueuedsynchronizer/2516/5 "2021-03-19T20:12:25Z")

</div>

@mckw99, sure thing, I am building an Autopsy 4.18.0 installer now, which I will hand off to Brian Carrier for release after my team and/or I do a final smoke test. I expect we will be able to release early next week.

For what it’s worth, the deadlock is a timing thing and will not happen every time. You might be just fine trying your next data set, if you can’t afford to wait.

For future reference, if you look at the thread dump you captured, you will find that the deadlock is quite literally reported there. If you ever do a thread dump and it tells you there is a deadlock, whatever processes have experienced the deadlock are stalled “forever” and an application restart is your only recourse. And of course, sharing the thread dump with us allows us to eliminate the deadlock potential.

---

<div class="post-metadata">

**Author:** ![Richard\_Cordovano](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/richard_cordovano/32/15_2.png) [@Richard\_Cordovano](https://sleuthkit.discourse.group/u/Richard_Cordovano)\
**Post date:** [March 26, 2021, 1:30pm UTC](https://sleuthkit.discourse.group/t/slow-ingest-with-thread-dump-tika-reader-0-id-4456649-waiting-on-java-util-concurrent-locks-abstractqueuedsynchronizer/2516/6 "2021-03-26T13:30:18Z")

</div>

@mckw99, Autopsy 4.18.0, which includes the fix for the deadlock you experienced, has been released. Thanks again for sharing your heap dump, which allowed us to quickly pinpoint the problem and apply the patch.

---

<div class="post-metadata">

**Author:** ![mckw99](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mckw99](https://sleuthkit.discourse.group/u/mckw99)\
**Post date:** [March 31, 2021, 8:32am UTC](https://sleuthkit.discourse.group/t/slow-ingest-with-thread-dump-tika-reader-0-id-4456649-waiting-on-java-util-concurrent-locks-abstractqueuedsynchronizer/2516/7 "2021-03-31T08:32:30Z")

</div>

Thanks Richard! I’ve installed it and it seems to be working so far (20%) through 3.3Tb and been running for approximately 30 hours, maybe slightly longer (forgot to note when I kicked it off!). This time I have excluded periodic keyword searches - to try to speed up the ingest. Here’s the latest thread dump. [Dropbox - Ingest Thread Dump - 2.txt - Simplify your life](https://www.dropbox.com/s/trvmj1tdogk2el6/Ingest%20Thread%20Dump%20-%202.txt?dl=0) I am not sure if I am still seeing deadlock in the thread dump? Not sure of the specific syntax I would be looking for? I was working on the assumption it is to do with “WAITING on java.util.concurrent.locks”? Thanks for your help.

---

<div class="post-metadata">

**Author:** ![mckw99](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mckw99](https://sleuthkit.discourse.group/u/mckw99)\
**Post date:** [April 12, 2021, 7:42am UTC](https://sleuthkit.discourse.group/t/slow-ingest-with-thread-dump-tika-reader-0-id-4456649-waiting-on-java-util-concurrent-locks-abstractqueuedsynchronizer/2516/8 "2021-04-12T07:42:40Z")

</div>

@Richard_Cordovano Just FYI it seems to have happened again. 40% through a 3.3Tb dataset and it slowed down to an unusable speed. This post wont let me link the most recent thread dump so I created a new post here with the latest thread dump link. [Slow ingest dump - version 4.18 - Keyword search - Autopsy Help - Autopsy and The Sleuth Kit](https://sleuthkit.discourse.group/t/slow-ingest-dump-version-4-18-keyword-search/2570) This is running single user, Eugene Livis suggested setting up a Solr server as a cluster in a ‘Multi-user’ configuration. I will look at this option but in the meantime I though you might like to take a look a the thread-dump.
