Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



http://msdn.microsoft.com/library/techart/msdn_scalabil.htm

Also ... the following article had an interesting snippet in it as included
below ...

http://www.javaworld.com/javaworld/jw-08-1998/jw-08-volanomark-3.html

"The limitation in Windows NT 4.0 of 2048 threads per process causes the
VolanoMark server to get a java.lang.OutOfMemoryError when trying to get
1000 concurrent connections on Windows NT."

So ... here is what I learned ...

a) Win32 threads are not free. There is cost associated with stack, context
switching, and scheduling.

b) Assuming it is a performance only problem I was trying to solve with
threading ... and that all of my performance was CPU bound ... not IO bound
... I would try to design my server in a way that allowed me to vary the
number of "worker" threads I was using in my server ... and then "load it
up" during integration testing, twiddling the thread count until I was
getting as close as I could get to 100% CPU utilization on my production
node ... and then go out for beers.

Tony

> -----Original Message-----
> From: Frank D. Greco [mailto:fgreco@xxxxxxxxxxxxxxxxxx]
> Sent: Friday, February 04, 2000 5:00 AM
> To: Tony Pelton; advanced-java@xxxxxxxxxxxxxxxx
> Subject: RE: Max on number of threads?
> 
> 
> At 07:42 PM 2/3/00 -0800, Tony Pelton wrote:
>  >I don't know if it is appropriate to offer unsolicited comment.
>  >
>  >A thread count numbering in the 1000's can't possibly be a 
> good idea.
>  >
>  >Besides possible physical limits, there are going to be 
> resource limits (per
>  >thread stack overhead) and performance penalties 
> (scheduling and register
>  >loading/unloading) out the wazoo.
> 
> 	Is there hard evidence to support this?  Heck, I'll 
> take anecdotal
> 	evidence too...
> 
> 	Frank G.
> +=============================================================
> =========+
> | Crossroads Technologies Inc, 55 Broad Street, 28th Fl, NYC, 
> NY 10004 |
> |    Dot-com Engineering                                      
>          |
> | Email: fgreco@xxxxxxxxxxxxxxxxxx         Web: 
> www.CrossroadsTech.com |
> | Voice: 212-482-5280 x229                 Fax: 212-482-5281  
>          |
> +=============================================================
> =========+
> 
> 
> 
> ---
> To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
> To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
> 

---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx