1 Reply Latest reply on Apr 11, 2017 4:39 AM by ctomc

    Wildfly 9 with Java 8 is getting problems to execute external commands.

    imalac

      Hello,

       

      We have an implementation of a war in Java 8 with Spring Framework that, from time to time it perform some commands to our external system (Red Hat Linux). The problem is that, not all the times the external commands are satisfied. We are using chown command from our application, sometimes this command get stuck in OS.

       

      We tried to follow up this problem to our OS Team but they told us that our Application server it is generating a big file descriptor that hangs the processes and that's why the process it is not being terminated successfully. Here our question is the following, Is there any way that Wildfly application server modified this argument that could generate the process get sutck in the site? We are using in Java a Process Builder to execute Linux Commands.

       

      These are the calls that we could seen in the OS when we detect a process stuck from Wildfly process.

       

      Process 2929 attached - interrupt to quit

      [ Process PID=2929 runs in 32 bit mode. ]

      select(20, [18 19], NULL, NULL, {0, 330000}) = 0 (Timeout)

      ioctl(4294967295, TIOCGPGRP, [5647401]) = -1 EBADF (Bad file descriptor)

      getpgid(0) = 23357

      select(20, [18 19], NULL, NULL, {1, 0}) = 0 (Timeout)

      ioctl(4294967295, TIOCGPGRP, [5647401]) = -1 EBADF (Bad file descriptor)

      getpgid(0) = 23357

      select(20, [18 19], NULL, NULL, {1, 0}) = 0 (Timeout)

      ioctl(4294967295, TIOCGPGRP, [5647401]) = -1 EBADF (Bad file descriptor)

      getpgid(0) = 23357

      select(20, [18 19], NULL, NULL, {1, 0}) = 0 (Timeout)

      ioctl(4294967295, TIOCGPGRP, [5647401]) = -1 EBADF (Bad file descriptor)

      getpgid(0) = 23357

       

      I hope that you can help us with this request.

       

      Regards,

      Isaias Silva