5000人?超级性能测试啊
5000人同时点你的web页面,你的web服务器带宽还能顶住么?要搞ddos?
5000点了你的web页面,你的appserver能扛住么,内存和处理能力能满足要求么?
之后再考虑5000人同时访问数据库的问题吧
5000并发去访问的mysql数据库表记录条数是多少,至少也是5000的n次方吧
5000人的并发连接池怎么配,最多可以配多少个
建议你还是写个程序,生成5000个线程,去数据库里select table limit 0 ,2一下就出来,看看效果如何,呵呵

解决方案 »

  1.   

    The number of connections allowed is controlled by the max_connections system variable. Its default value is 100. If you need to support more connections, you should restart mysqld with a larger value for this variable. 
    The maximum number of connections MySQL can support depends on the quality of the thread library on a given platform. Linux or Solaris should be able to support 500-1000 simultaneous connections, depending on how much RAM you have and what your clients are doing. Static Linux binaries provided by MySQL AB can support up to 4000 connections.