Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1848

Domain server process' main thread can terminate without triggering process exit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha10
    • None
    • Management
    • None

      If a thread completes the DomainServerMain main(String[] args) method, the process must exit. Currently that may not occur, as this stack trace reported while manually checking the WFCORE-1844 fix showed:

       
      [Server:server-one] 14:15:39,022 ERROR [stderr] (main) Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread
      [Server:server-one] 14:15:39,023 ERROR [stderr] (main) 	at java.lang.Thread.start0(Native Method)
      [Server:server-one] 14:15:39,023 ERROR [stderr] (main) 	at java.lang.Thread.start(Thread.java:714)
      [Server:server-one] 14:15:39,023 ERROR [stderr] (main) 	at org.jboss.threads.JBossThread.start(JBossThread.java:342)
      [Server:server-one] 14:15:39,023 ERROR [stderr] (main) 	at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
      [Server:server-one] 14:15:39,023 ERROR [stderr] (main) 	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1368)
      [Server:server-one] 14:15:39,023 ERROR [stderr] (main) 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
      [Server:server-one] 14:15:39,023 ERROR [stderr] (main) 	at org.jboss.as.server.mgmt.domain.HostControllerConnection.asyncReconnect(HostControllerConnection.java:165)
      [Server:server-one] 14:15:39,023 ERROR [stderr] (main) 	at org.jboss.as.server.mgmt.domain.HostControllerClient.reconnect(HostControllerClient.java:93)
      [Server:server-one] 14:15:39,024 ERROR [stderr] (main) 	at org.jboss.as.server.DomainServerMain.main(DomainServerMain.java:151)
      [Server:server-one] 14:15:39,024 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [Server:server-one] 14:15:39,024 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [Server:server-one] 14:15:39,024 ERROR [stderr] (main) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [Server:server-one] 14:15:39,024 ERROR [stderr] (main) 	at java.lang.reflect.Method.invoke(Method.java:498)
      [Server:server-one] 14:15:39,024 ERROR [stderr] (main) 	at org.jboss.modules.Module.run(Module.java:336)
      [Server:server-one] 14:15:39,024 ERROR [stderr] (main) 	at org.jboss.modules.Main.main(Main.java:520)
      

      If the process does not exit, it is no longer under the control of the PC or HC and the only thing they can do with it is kill it. So it should kill itself.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: