File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Discussion Topic-Applet chat and servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Discussion Topic-Applet chat and servlet" Watch "Discussion Topic-Applet chat and servlet" New topic
Author

Discussion Topic-Applet chat and servlet

hassan ali
Ranch Hand

Joined: Apr 23, 2006
Posts: 127
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
Bartender

Joined: Oct 14, 2005
Posts: 18121
    
    8

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

Joined: Apr 23, 2006
Posts: 127
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Discussion Topic-Applet chat and servlet
 
Similar Threads
passing parameter from servlet to applet
idle time checking - very urgent..
logging out
communication problem in chat application.....Please help!!
URGENT!!!