[jira] [Created] (TIKA-1743) NetworkParser can create Unbounded Number of Threads

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (TIKA-1743) NetworkParser can create Unbounded Number of Threads

Hudson (Jira)
Bob Paulin created TIKA-1743:
--------------------------------

             Summary: 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)
Reply | Threaded
Open this post in threaded view
|

Re: [jira] [Created] (TIKA-1743) NetworkParser can create Unbounded Number of Threads

Tyler Palsulich
This sounds like a great idea! We should make the size of the pool
configurable with TikaConfig.

On Tue, Sep 22, 2015, 3:04 PM Bob Paulin (JIRA) <[hidden email]> wrote:

> Bob Paulin created TIKA-1743:
> --------------------------------
>
>              Summary: 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)
>