You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Susmit Sarkar (Jira)" <ji...@apache.org> on 2021/03/28 14:47:00 UTC

[jira] [Updated] (SSHD-1151) How to check if NIO Worker Threads are getting set

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

Susmit Sarkar updated SSHD-1151:
--------------------------------
    Description: 
Hello Team,
{code:java}
 public static final Property<Integer> NIO_WORKERS
 = Property.validating(Property.integer("nio-workers", Runtime.getRuntime().availableProcessors() + 4),
 w -> ValidateUtils.checkTrue(w > 0, "Number of NIO workers must be positive: %d", w));{code}
I have 4 processors and 4 extra threads, so total 8 NIO worker threads, but how will I confirm if it's actually getting set or not. Checked in the thread dumps but couldn't found anything related to NIO workers, not sure if its actually getting set. Need help and guidance.

  was:
Hello Team,
{code:java}
 public static final Property<Integer> NIO_WORKERS
 = Property.validating(Property.integer("nio-workers", Runtime.getRuntime().availableProcessors() + 4),
 w -> ValidateUtils.checkTrue(w > 0, "Number of NIO workers must be positive: %d", w));{code}
I have 4 processors and 4 extra threads, so total 8 NIO worker threads, but how will I confirm if it's actually getting set or not. Checked in the thread dumps but couldn't found. Need help and guidance.


> How to check if NIO Worker Threads are getting set
> --------------------------------------------------
>
>                 Key: SSHD-1151
>                 URL: https://issues.apache.org/jira/browse/SSHD-1151
>             Project: MINA SSHD
>          Issue Type: Question
>            Reporter: Susmit Sarkar
>            Priority: Blocker
>
> Hello Team,
> {code:java}
>  public static final Property<Integer> NIO_WORKERS
>  = Property.validating(Property.integer("nio-workers", Runtime.getRuntime().availableProcessors() + 4),
>  w -> ValidateUtils.checkTrue(w > 0, "Number of NIO workers must be positive: %d", w));{code}
> I have 4 processors and 4 extra threads, so total 8 NIO worker threads, but how will I confirm if it's actually getting set or not. Checked in the thread dumps but couldn't found anything related to NIO workers, not sure if its actually getting set. Need help and guidance.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org