请教JAVA高手一个问题

Vetement

知名会员
注册
2002-02-07
消息
1,309
荣誉分数
5
声望点数
148
一个server要handle多个clients,通常的做法是针对每个client创建一个subserver对象,但这样的server最多支持到5--10个clients。再多的话,肯定crash。
有什么其他好方法可以让server支持更多的clients吗
 


一个server要handle多个clients,通常的做法是针对每个client创建一个subserver对象,但这样的server最多支持到5--10个clients。再多的话,肯定crash。 ----> How big is your subserver object, it will crash if
system out of memory and memory is so cheap today. Redesign your
subserver object, it shouldn't be a very large object and only
keep necessary info in this obj.

有什么其他好方法可以让server支持更多的clients
-upgrade your system
-use C++, not java, you get better performance and lager cap.
-a better software structure.
-distribution.
.......
 
Thanks! Mike.
I don't think my subserver is very big. There may be some problem in it which cause the crash.
I have another idea: how about if I use the servlet at the server end!
 
servlet

servlet is nothing special, it is Java technology's answer to CGI programming. It may help, since less bugs there. I am 100% sure if
you installed your web server, jsp engine, servlet correctly and
with a good system, it works.
 
后退
顶部