You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joseph Leonard (Jira)" <ji...@apache.org> on 2025/01/10 17:47:00 UTC

[jira] [Updated] (MPMD-413) Add support for configuring the max number of threads to use

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

Joseph Leonard updated MPMD-413:
--------------------------------
    Description: 
h2. Background

Currently it doesn't seem to be possible to configure the number of threads that the plugin should utilise and therefore it [defaults to the number of available processors|https://github.com/pmd/pmd/blob/main/pmd-core/src/main/java/net/sourceforge/pmd/PMDConfiguration.java#L100C7-L100C70].

This can be impactful if you don't wish to allow the plugin to make use of all your processors. In our scenario this is particularly impactful because we are running a heavily parallelised multi-project monobuild and therefore we don't want each parallel module build to attempt use the same number of threads as available processors.
h2. Improvement request

It would be nice if we could add the ability to configure the number of threads via the plugin.

  was:
h2. Background
Currently it doesn't seem to be possible to configure the number of threads that the plugin should utilise and therefore it [defaults to the number of available processors|https://github.com/pmd/pmd/blob/main/pmd-core/src/main/java/net/sourceforge/pmd/PMDConfiguration.java#L100C7-L100C70].

This can be impactful if you don't wish to allow the plugin to make use of all your processors.

h2. Improvement request
It would be nice if we could add the ability to configure the number of threads via the plugin.




> Add support for configuring the max number of threads to use
> ------------------------------------------------------------
>
>                 Key: MPMD-413
>                 URL: https://issues.apache.org/jira/browse/MPMD-413
>             Project: Maven PMD Plugin
>          Issue Type: Improvement
>            Reporter: Joseph Leonard
>            Priority: Major
>
> h2. Background
> Currently it doesn't seem to be possible to configure the number of threads that the plugin should utilise and therefore it [defaults to the number of available processors|https://github.com/pmd/pmd/blob/main/pmd-core/src/main/java/net/sourceforge/pmd/PMDConfiguration.java#L100C7-L100C70].
> This can be impactful if you don't wish to allow the plugin to make use of all your processors. In our scenario this is particularly impactful because we are running a heavily parallelised multi-project monobuild and therefore we don't want each parallel module build to attempt use the same number of threads as available processors.
> h2. Improvement request
> It would be nice if we could add the ability to configure the number of threads via the plugin.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)