Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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?

0
10 Posted

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?

0
10

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123