You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by James Yuan <ja...@gmail.com> on 2020/05/13 04:15:45 UTC

Question on the log of public pool thread [pub-#14505].

Hi,

I have the following log.

[2020-05-13 09:33:49] [pub-#14505] INFO
 c.n.b.e.l.ActiveSyncServiceEventListener - Event [id=CommandEvent] has
been handled on ContextKey{key='0021fc3b-b293-4f8a-b62d-25c51ec52586'}.

What's does the [pub-#14505] mean? The number of thread in public pool? Or
the number of computed task?

If pub-#14505 number increase all the time, does it mean the public thread
is not returned back due to my program issue? I have only configured the
public pool thread number 640.

Thanks,
James.

Re: Question on the log of public pool thread [pub-#14505].

Posted by Evgenii Zhuravlev <e....@gmail.com>.
James,

> But whether could I know the other threads are stopped and destroy?
That's how it works, Here in the code:
https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java#L1763
you
can see that Ignite create ThreadPoolExecutor with a max size equals to
yours configured size.

ср, 13 мая 2020 г. в 19:01, James Yuan <ja...@gmail.com>:

> Thank you for reply.
>
> It seems I should create custom thread pool for the business logics rather
> than use the public pool and reduce its size.
>
> So [pub-#14505] means the 14505th new created thread in public pool? But
> whether could I know the other threads are stopped and destroy? I am afraid
> that the huge threads cause long GC and hang the whole system.
>
> Thanks,
> James.
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Question on the log of public pool thread [pub-#14505].

Posted by James Yuan <ja...@gmail.com>.
Thank you for reply.

It seems I should create custom thread pool for the business logics rather
than use the public pool and reduce its size.

So [pub-#14505] means the 14505th new created thread in public pool? But
whether could I know the other threads are stopped and destroy? I am afraid
that the huge threads cause long GC and hang the whole system.

Thanks,
James.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Question on the log of public pool thread [pub-#14505].

Posted by Evgenii Zhuravlev <e....@gmail.com>.
James,

This is a thread number. The public thread pool size can be reduced after
idle timeout. After this, if needed, a new thread will be created with a
new id.

By the way, 640 is a pretty big size, how many cores do you have? So big
thread pool can lead to performance degradation due to a lot of context
switching.

Evgenii

вт, 12 мая 2020 г. в 21:16, James Yuan <ja...@gmail.com>:

> Hi,
>
> I have the following log.
>
> [2020-05-13 09:33:49] [pub-#14505] INFO
>  c.n.b.e.l.ActiveSyncServiceEventListener - Event [id=CommandEvent] has
> been handled on ContextKey{key='0021fc3b-b293-4f8a-b62d-25c51ec52586'}.
>
> What's does the [pub-#14505] mean? The number of thread in public pool? Or
> the number of computed task?
>
> If pub-#14505 number increase all the time, does it mean the public thread
> is not returned back due to my program issue? I have only configured the
> public pool thread number 640.
>
> Thanks,
> James.
>