On 9/15/06, haiyun wang <[EMAIL PROTECTED]> wrote:
Greg, Thanks.
The reason I asked this question is: recently I have to convert a unix
server into Java solution. My unix server has lots of processes communicated
with each other through IPC(domain socket, shared memory) and uses socket to
communicate on different machines. It seems that unix server is much easier
to scale(there is a debate that process could be scaled better than thread).
http://blog.labnotes.org/2006/08/29/why-processes-scale-better-than-threads/
And I can simply kill or start a unix process if one works abnormally.
However, in Java, developers use multi-threads(unix also has multi-thread).
I just wonder how java server could scale better(not the application server
solution).
<snip/>
First of all, how much is enough for you in terms of scalability?
There could be thousands of java threads in a single VM. AFAIK,
processes (the unix kind) dont scale as well as threads, esp NPTL
threads. I've got thousands of NPTL threads running without any
issues on a system.
Regards,
Vinod.