Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Discussion Topic-Applet chat and servlet

 
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



 
Marshal
Posts: 25598
69
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
 
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic