You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by "F.D." <fr...@gmail.com> on 2020/02/09 11:44:16 UTC
Cores on a node
Hi,
I'd like to know if is possible to know the number of logical/physical
cores on a node in a cluster?
Thanks,
F.D.
Re: Cores on a node
Posted by Mikael <mi...@telia.com>.
Hi!
int numCores = Runtime.getRuntime().availableProcessors();
It will return an ok value, it may not return the actual number of cores
depending on affinity settings and things like that, but it will return
the cores that JVM have access to.
Mikael
Den 2020-02-09 kl. 12:44, skrev F.D.:
> Hi,
> I'd like to know if is possible to know the number of logical/physical
> cores on a node in a cluster?
>
> Thanks,
> F.D.