JDK-8020013 : Error message is unclear when thread creation fails
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-07-08
  • Updated: 2013-07-08
  • Resolved: 2013-07-08
Related Reports
Duplicate :  
Description
See INTJDK-7604745

On Linux with a low process limit (E.g., 1024 on OEL 6), thread creation may fail with an unhelpful message:

Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread 
    at java.lang.Thread.start0(Native Method) 
    at java.lang.Thread.start(Thread.java:693) 
    at COM.volano.e.b(DashoA5383) 
    at COM.volano.am.<init>(DashoA5383) 
    at COM.volano.ak.a(DashoA5383) 
    at COM.volano.ak.a(DashoA5383) 
    at COM.volano.Mark.main(DashoA5383) 

We should include more information, such as "this may be caused by a low process limit (1024)", etc.

(But we should also be careful in the wording so that the user won't increase system-wide process limit and cause potential security issues -- see  https://bugzilla.redhat.com/show_bug.cgi?id=432903).
Comments
Duplicate of JDK-7182040
08-07-2013