S
Sheldon Hearn
Hi folks,
I've been tasked with installing a heavy-weight J2EE
application on a Windows 2000 Advanced Server (SP3) box.
The system is a dual-Xeon with 4GB of RAM. The /3G switch
has been added to boot.ini.
The application can't create more than about 130 threads to
service HTTP requests.
Java reports that it was unable to create a new native
thread. On my FreeBSD 5.1-CURRENT workstation, I can
create about 8,000 threads before getting this error.
I've tested Apache2, which isn't Java-based but also uses
threads, just to rule Java out as the source of the
problem. Apache2 also bombs out at about the 130 thread mark.
In addition, if I get two different applications to start
75 threads each, they _both_ fail.
So it seems like there's a limit that the operating system
is imposing on the global number of threads.
A limit of 130 threads is quite simply ridiculous on this
hardware. How do I raise or remove this limit?
A friend of mine was kind enough to let me try this out on
his testbed box, with Windows 2000 Advanced Server (no SP),
single-PIII and 768MB of RAM. On his box, I can create
about 8,000 threads before I hit a problem.
So perhaps this limit is a nasty side-effect of using
dual-CPUs? Perhaps the customer has a single-CPU license
instead of a dual-CPU license?
I have no idea. This is my first exposure to Windows in 6
years.
Any ideas?
I've been tasked with installing a heavy-weight J2EE
application on a Windows 2000 Advanced Server (SP3) box.
The system is a dual-Xeon with 4GB of RAM. The /3G switch
has been added to boot.ini.
The application can't create more than about 130 threads to
service HTTP requests.
Java reports that it was unable to create a new native
thread. On my FreeBSD 5.1-CURRENT workstation, I can
create about 8,000 threads before getting this error.
I've tested Apache2, which isn't Java-based but also uses
threads, just to rule Java out as the source of the
problem. Apache2 also bombs out at about the 130 thread mark.
In addition, if I get two different applications to start
75 threads each, they _both_ fail.
So it seems like there's a limit that the operating system
is imposing on the global number of threads.
A limit of 130 threads is quite simply ridiculous on this
hardware. How do I raise or remove this limit?
A friend of mine was kind enough to let me try this out on
his testbed box, with Windows 2000 Advanced Server (no SP),
single-PIII and 768MB of RAM. On his box, I can create
about 8,000 threads before I hit a problem.
So perhaps this limit is a nasty side-effect of using
dual-CPUs? Perhaps the customer has a single-CPU license
instead of a dual-CPU license?
I have no idea. This is my first exposure to Windows in 6
years.
Any ideas?