My application has a lot of threads and is running out of memory and it doesn under the 1.2 production version for Solaris, why?
You may be running into a problem with the default stack size for threads. With the 1.2 system, the default is 128k, but for HotSpot on Sparc it is 512K and HotSpot on Solaris Intel its 256k (with Linux Intel and Windows it is whatever the default stack size is when creating a thread in the OS). Reduce your stack size by running with the -Xss option. For example: java -server -Xss64k 64k is the least amount of stack space allowed per thread.
Related Questions
- I get a warning message about not being able to register memory and possibly out of privileged memory while running on Solaris, what can I do?
- My application has a lot of threads and is running out of memory and it doesn under the 1.2 production version for Solaris, why?
- An application has a lot of threads and is running out of memory, why?