Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8020013

Error message is unclear when thread creation fails

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • None

      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).

            Unassigned Unassigned
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: