tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Paulin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-1743) NetworkParser can create Unbounded Number of Threads
Date Wed, 23 Sep 2015 12:23:04 GMT

    [ https://issues.apache.org/jira/browse/TIKA-1743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14904419#comment-14904419
] 

Bob Paulin commented on TIKA-1743:
----------------------------------

I'll put together a patch.  Are there other parsers that take number of threads as a parameter?
 We can still try to keep things consistent to make TIKA-1508 easier.

> NetworkParser can create Unbounded Number of Threads
> ----------------------------------------------------
>
>                 Key: TIKA-1743
>                 URL: https://issues.apache.org/jira/browse/TIKA-1743
>             Project: Tika
>          Issue Type: Bug
>            Reporter: Bob Paulin
>
> The current NetworkParser class creates new instances of the Thread class which each
call to parse.  This could create an unbounded number of threads created by this class.  I'd
suggest replacing this logic with a ThreadPoolExecutor and a configurable number of threads.
 This will help prevent creating an unbounded number of threads and allow the user to tune
performance to the hardware.



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

Mime
View raw message