Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #33268

Re: multithread client socket

Newsgroups comp.lang.java.programmer
Date 2015-12-02 06:39 -0800
References <75df5111-41b9-4833-8497-69104f011d14@googlegroups.com> <e8a525f0-557c-4331-b69f-211aa3a47ceb@googlegroups.com> <66777da2-bf09-4e0b-a0ce-bd401d74d5a3@googlegroups.com>
Message-ID <0f41c19b-4ca9-4018-8b97-c786c2e4e021@googlegroups.com> (permalink)
Subject Re: multithread client socket
From Eric Douglas <e.d.programmer@gmail.com>

Show all headers | View raw


On Wednesday, December 2, 2015 at 2:02:48 AM UTC-5, Philipp Kraus wrote:
> The structure works at the moment, but if I have got a lot of tasks I reach a limit to create new sockets
> 
> > I haven't had to worry about limits to number of open sockets or active threads, so if you find a limit let us know, and you'll have to set up a queue as Martin mentioned.
> 
> I use a queue but the queue can store some 100k items, so I seems to be, that I reach the limit.

I don't know that there is a limit to number of sockets, but the number of concurrent sockets would at least be limited by your hardware.  I just ran a test running a local socket server connecting infinite socket clients.  It stopped around 9,897 clients and my CPU was maxed, so check your allocated resources and make sure your concurrent processes are set to a reasonable limit.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

multithread client socket Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2015-12-01 09:36 -0800
  Re: multithread client socket Eric Douglas <e.d.programmer@gmail.com> - 2015-12-01 11:58 -0800
    Re: multithread client socket Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2015-12-01 23:02 -0800
      Re: multithread client socket Eric Douglas <e.d.programmer@gmail.com> - 2015-12-02 06:39 -0800
  Re: multithread client socket Jan Burse <janburse@fastmail.fm> - 2015-12-01 22:01 +0100
    Re: multithread client socket Jan Burse <janburse@fastmail.fm> - 2015-12-01 22:06 +0100
      Re: multithread client socket Eric Douglas <e.d.programmer@gmail.com> - 2015-12-01 13:55 -0800
    Re: multithread client socket Martin Gregorie <martin@address-in-sig.invalid> - 2015-12-01 22:04 +0000
      Re: multithread client socket Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2015-12-01 23:04 -0800
        Re: multithread client socket Eric Douglas <e.d.programmer@gmail.com> - 2015-12-02 05:52 -0800
        Re: multithread client socket Martin Gregorie <martin@address-in-sig.invalid> - 2015-12-02 14:38 +0000
  Re: multithread client socket Arne Vajhøj <arne@vajhoej.dk> - 2015-12-05 20:00 -0500

csiph-web