Making the heap larger will not help in this case. Memory for threads is typically
allocated from the system area. For example, on Windows, each app has a 2GB address spaces
for its use and a 2GB address space for the operating systems use. When you allocate a
thread in Windows it uses up some of that memory in the 2GB reserved for the operating
system's use. You can, however, boot Windows with the 3GB option which allocates 3GB
to the application and 1GB to the operating system. If you do that though, you are liable
to run out of space in the 1GB if you allocate too many threads. And in that case you
would get an error similar to what you saw.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026882#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...