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


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

Re: multithread client socket

X-Received by 10.182.176.73 with SMTP id cg9mr3009970obc.38.1449067162949; Wed, 02 Dec 2015 06:39:22 -0800 (PST)
X-Received by 10.182.28.129 with SMTP id b1mr37197obh.4.1449067162925; Wed, 02 Dec 2015 06:39:22 -0800 (PST)
Path csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!mv3no10057591igc.0!news-out.google.com!l1ni259igd.0!nntp.google.com!mv3no10057587igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Wed, 2 Dec 2015 06:39:22 -0800 (PST)
In-Reply-To <66777da2-bf09-4e0b-a0ce-bd401d74d5a3@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=50.78.95.177; posting-account=2czF5goAAAD4GBMPIGV4KcD2K4PhoB_H
NNTP-Posting-Host 50.78.95.177
References <75df5111-41b9-4833-8497-69104f011d14@googlegroups.com> <e8a525f0-557c-4331-b69f-211aa3a47ceb@googlegroups.com> <66777da2-bf09-4e0b-a0ce-bd401d74d5a3@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <0f41c19b-4ca9-4018-8b97-c786c2e4e021@googlegroups.com> (permalink)
Subject Re: multithread client socket
From Eric Douglas <e.d.programmer@gmail.com>
Injection-Date Wed, 02 Dec 2015 14:39:22 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Received-Bytes 2162
X-Received-Body-CRC 2963307316
Xref csiph.com comp.lang.java.programmer:33268

Show key headers only | 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