A "java.lang.OutOfMemoryError: unable to create new native thread" message occurs when using Site Selector on HP-UX
 Technote (troubleshooting)
 
Problem(Abstract)
On Load Balancer, while running the Site Selector component, java might not be able to allocate enough threads per process.
 
Resolving the problem
Some HP-UX 11i installations are pre-configured to allow only 64 threads per process. However, some Load Balancer configurations use more than this amount.
We recommend that the threads per process for HP-UX be set to at least 256. To increase this value, use the sam utility to set the max_thread_proc kernel parameter.

Note: If heavy use is expected, you might need to increase max_thread_proc beyond 256.

To increase max_thread_proc:

  1. From the command line, type: sam

  2. Select Kernel Configuration > Configurable Parameters.

  3. From the scroll bar, select max_thread_proc.

  4. Press the spacebar to highlight max_thread_proc.

  5. Press Tab one time, then press the right-arrow key until you select Actions.

  6. Press Enter to display the Actions menu, then press M to select Modify Configurable Parameter. (If you do not see this option, highlight max_thread_proc.)

  7. Press Tab until you select the Formula/Value field.

  8. Type a value of 256 or greater.

  9. Click OK.

  10. Press Tab one time, then select Actions.

  11. Press K for Process New Kernel.

  12. Select Yes.

  13. Reboot your system.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
Historical Number
84636
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Edge Component
Operating system(s): HP-UX
Software version: 5.0
Software edition:
Reference #: 1112791
IBM Group: Software Group
Modified date: May 26, 2004