File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes socket performance Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Performance
Reply Bookmark "socket performance" Watch "socket performance" New topic
Author

socket performance

Karthik Anant
Greenhorn

Joined: Nov 02, 2009
Posts: 20
Hi,

am running a simple socket programming to transmitmessages which is abt 500Bytes. Am only able to acieve close to 1000-1200 messages per second despite trying multi threaded clients and running both server and client on the same machine. Can any one please advice me on what I can do to achieve faster rates. My target is 10000 messages per second
Chris Hurst
Ranch Hand

Joined: Oct 26, 2003
Posts: 329

Have you tried using an open source IO framework Apache mina or grizzly ? There easy to use and apparently get good performance.


"Eagles may soar but weasels don't get sucked into jet engines" SCJP 1.6, SCWCD 1.4, SCJD 1.5,SCBCD 5
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 7796

Let's continue this discussion in his post that actually has code.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
 
subject: socket performance
 
developer file tools