5000人在线那不可能,我在一论坛里见过有人说只支持几百人,好像是在chinaunix里。老贴了2006年的
利用死循环,注定他不能支持太多人在线。ibm里有篇文章也提到长连接在一台客户机上只能开两个窗口。测试了一下的确利用comet技术的一台客户机只能开两窗口。另外,我觉得这种方式比较容易遭受ddos攻击。
可能攻击差点的服务器要几千台客户机,利用这技术几百台就够了。

解决方案 »

  1.   


    不会吧  GOOGLE的Gtalk  用的也是这技术  如果一台服务器只支持几本人,就算是GOOGLE也耗不起吧
    开两个窗口我试过了   HTTP协议规定的   用IE测试是打开第三请求被阻塞   FF第二个请求就被阻塞几百台ddos攻击不可能   用户要验证的   不是任何人的请求都做循环,验证不通过直接退出了 
      

  2.   

    google那是重写了服务器的,呵呵
      

  3.   

    看comet的问题
    Problems
    Because Comet applications send events in real time, they typically use more resources than other types of web applications, making them more difficult to scale (grow to support large numbers of users).Proxy servers and firewalls between the browser and web server can pose network problems. Firewalls are often configured to drop connections that have been idle for too long, applications need to tear down and recreate the Comet connection periodically.Transparent HTTP proxies may buffer data in chunks up to 32 or 64 kilobytes which prevents streaming connections, applications need to detect when non-polling HTTP communication is impossible.网址http://en.wikipedia.org/wiki/Comet_(programming)
      

  4.   

    结贴性能...两个都不咋地,  希望以后有高手写个分析贴测试用apache ab 谢谢回复