Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 16th, 2003, 02:12 PM
noslenj123 noslenj123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Phoenix, AZ
Posts: 484 noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 22 h 6 m 30 sec
Reputation Power: 30
What language, what design?

Here is my task. We need to stress test a server application. It works similar to a web server in that it is a request/response synchronous style communication.

I need to simulate hundreds of clients connecting, sending a command, disconnecting, connecting, sending a command, disconnecting and so on. So each client needs to connect, send, receive, disconnect many times. And I need to simulate up to 1000 clients simultaneously.

I am a perl coder mostly and constructed a multiclient script that works fine until I hit limitations. These limits are either a maximum number of sockets or maximum number of threads, or both. So my limit there ends up being about 60 simultaneous clients. I can run from several computers as well.

I thought I should learn C++ anyway so I went looking for some model code for an IOCP server but haven't found any good examples where I can just sorta plug in my own business logic.

It seems like this multi-client is just like a server except for it initiates conversations rather than responds to them. And it needs a good method of having hundreds of sockets open without major thread thrashing and so forth.

How do you think I should approach and design such an animal in a fairly short period of time? What language? What forum should I post a question like this?

Thanks for your opinions!!
__________________
There are only 10 kinds of people in this world. Those who understand binary, and those who don't!

Reply With Quote
  #2  
Old May 20th, 2003, 04:21 PM
noslenj123 noslenj123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Phoenix, AZ
Posts: 484 noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level)noslenj123 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 22 h 6 m 30 sec
Reputation Power: 30
Well, I didn't get much direction. However, I didn't sit idle either. I whipped up a program in java (learning java on the way) and can now produce 150-200 clients so far using a thread-per-client design.

I'll work on switching to a queueing system where a small number of threads manage the sockets. It's a great way to learn other languages and learn more client/server coding

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > What language, what design?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT