THREADS

214 views
Skip to first unread message

Karthick V

unread,
Dec 23, 2016, 12:34:29 PM12/23/16
to DataStax Java Driver for Apache Cassandra User Mailing List

Hi,


The below threads are created when we establish a connection to C*(season creation) . can any explain the purpose of these thread ?


"cluster1-nio-worker-5" prio=5 tid=0x00007f828424b800 nid=0x6403 runnable [0x0000700001cea000]

"cluster1-nio-worker-4" prio=5 tid=0x00007f828581b000 nid=0x6203 runnable [0x0000700001be7000]

"cluster1-nio-worker-3" prio=5 tid=0x00007f82820bd800 nid=0x6003 runnable [0x0000700001ae4000]

"cluster1-nio-worker-2" prio=5 tid=0x00007f828214a000 nid=0x5e03 runnable [0x00007000019e1000]

"cluster1-nio-worker-1" prio=5 tid=0x00007f8284829000 nid=0x5c03 runnable [0x00007000018de000]

"cluster1-timeouter-0" prio=5 tid=0x00007f8282189800 nid=0x5803 waiting on condition [0x00007000016d8000]

"cluster1-nio-worker-0" prio=5 tid=0x00007f8284840000 nid=0x5607 runnable [0x00007000015d5000]

"cluster1-scheduled-task-worker-0" prio=5 tid=0x00007f8282890000 nid=0x5403 waiting on condition [0x00007000014d2000]

"cluster1-connection-reaper-0" prio=5 tid=0x00007f828288f800 nid=0x5203 waiting on condition [0x00007000013cf000]


and pls mention if I missed any of the DataStax-Java Driver threads.




Alex Popescu

unread,
Dec 23, 2016, 11:19:11 PM12/23/16
to java-dri...@lists.datastax.com
Hi Karthick,

Can you share why you are digging into these threads?

1. You can find the nio-worker and timeouter in Connection.java [1] (these are threads related to Netty). 
2. the scheduled-task-worker is used to process notifications received from the server [2]
3. connection-reaper is related to ConnectionReaper [3], which ensures that connections are properly terminated





--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-user+unsubscribe@lists.datastax.com.



--
Bests,

Alex Popescu | @al3xandru
Director Product Management
Development Solutions





Karthick V

unread,
Dec 26, 2016, 4:42:43 AM12/26/16
to DataStax Java Driver for Apache Cassandra User Mailing List
@Popescu thanks for the reply.

Can you share why you are digging into these threads?

I'm trying to find out the maximum number of threads that will be created on behalf of DataStax-Driver(JAVA) and there purpose. After lot of testing it is clear that a single Session object will create 9 thread initially and there are any possibility for increase in this value (like increase in read and write operation) ? 

Note : I'm strictly using single session per app server.      
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.
Reply all
Reply to author
Forward
0 new messages