Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: is there a way to limit the concurrency? #59

Closed
orpiske opened this issue Aug 15, 2020 · 2 comments
Closed

Question: is there a way to limit the concurrency? #59

orpiske opened this issue Aug 15, 2020 · 2 comments
Labels
wontfix This will not be worked on

Comments

@orpiske
Copy link

orpiske commented Aug 15, 2020

When I run mvnd it consumes all cores on my machine and that's usually great. However, sometimes I wish I could adjust how many cores it could use.

I know maven has the -T<num>C option, but it does not seem to work for mvnd. Is there a way I could do that?

@ppalaga
Copy link
Contributor

ppalaga commented Aug 15, 2020

Passing -TnC via CLI should work and if it does not, it is a bug.

Here https://github.com/mvndaemon/mvnd/blob/master/client/src/main/java/org/jboss/fuse/mvnd/client/DefaultClient.java#L227-L229 the intention was to pass -T1C to the server only if -TnC was not specified by the user.

@orpiske
Copy link
Author

orpiske commented Aug 15, 2020

Passing -TnC via CLI should work and if it does not, it is a bug.

Here https://github.com/mvndaemon/mvnd/blob/master/client/src/main/java/org/jboss/fuse/mvnd/client/DefaultClient.java#L227-L229 the intention was to pass -T1C to the server only if -TnC was not specified by the user.

Thanks Peter. The -T<num>C did the trick, indeed. When I had tried it earlier I haven't realized I had passed the option to -T incorrectly (I forgot the C) which led me to believe mvnd did not accept it.

Thanks for clarifying it!

@orpiske orpiske closed this as completed Aug 15, 2020
@ppalaga ppalaga added this to the Black hole milestone Sep 29, 2020
@gnodet gnodet added the wontfix This will not be worked on label Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants