Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Discussion Topic-Applet chat and servlet

 
hassan ali
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

if i can not open port for chat applet on server work as chat room.

and i build applet use thread that send every 2 second request to servlet to get new messages from server.

What could happen if i got 100 person using this chat applet room.
How long server will be stable ?
and what about usage of bandwidth



 
Paul Clapham
Sheriff
Pie
Posts: 20955
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is where you use a technique known as "arithmetic". For example: You have 100 clients sending requests once every two seconds. One client means 0.5 requests per second, 100 clients mean 100 times that, which is 50 requests per second.

Next piece of arithmetic: how long will the server take to process those requests? First we need to know how long it will take to process one request. And we don't know that yet. So over to you... how long does your server take to process one such request?
 
hassan ali
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont know but this the ENV inforamation i have

shared hosting environment

*tomcat 6
*java 1.6

Server Speed & Reliability
-- RedHat Enterprise Linux 4 or 5
-- Dual DS-3 connections with auto-routing
-- OC48 SONET ring backbone
-- dual Xeon 3ghz processors
-- 2GB DDR RAM
-- 73GB SCSI hard drives w/ RAID5 configuration
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic