[ 
https://issues.apache.org/jira/browse/MAHOUT-2065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

bd2019us updated MAHOUT-2065:
-----------------------------
    Attachment: 1.patch

> [SECURITY]newCachedThreadPool() has higher risk in causing OutOfMemoryError
> ---------------------------------------------------------------------------
>
>                 Key: MAHOUT-2065
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-2065
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: bd2019us
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: 1.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
>  Location : 
> community/mahout-mr/mr/src/main/java/org/apache/mahout/clustering/streaming/mapreduce/StreamingKMeansDriver.java:427
> Executors.newCachedThreadPool() is not secure when the number of threads is 
> not bounded, which can cause OutOfMemoryError and crash the program. For 
> security, using newFixedThreadPool(int) should be preferred, which can be 
> freely configured manually on demand.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to