Number of Threads for example java meter server

4 posts / 0 new
Last post
utkarsh
Number of Threads for example java meter server

Hi Mikko,

While executing example java meter server, I noticed that while I have created a single thread to listen on 1 socket but there are other ~24 threads executing.
Please let me know whether these 24 threads are mandatory ? how can i remove them? I need to simulate millions of example java meter server.

Regards,
Utkarsh

Kurumi
Kurumi's picture

Hi,

There is a thread for each client connection.

The network component for java is not designed to serve millions of clients.
You need to implement a network client that uses IOCP if you want to do it.

BR,

Mikko

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

utkarsh

Thanks Mikko. Do you have any plans to implement IOCP?

Regards,
Utkarsh

Kurumi
Kurumi's picture

Hi,

At the moment no. Our clients are not interested in it.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi