Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23476

CLI is unable to start embed-server multiple times in a loop



    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • CLI, Embedded, Modules
    • None
    • False
    • None
    • False


      Original jira for 7.4 stream: https://issues.redhat.com/browse/JBEAP-12366

      This is a jira for EAP 8. I can reproduce the issue on WF master branch form 8th April 2022.

      Description of problem:
      CLI is unable to start embed-server multiple times in a loop

      CLI freeze or throws java.io.FileNotFoundException: /home/mkopecky/playground/eap/7.1.0.ER2.2/jboss-eap-7.1/standalone/log/server.log (Too many open files)

      Priority of this jira is not a blocker, because this is not regression against 7.0.0.

      How reproducible:

      Steps to Reproduce:

      addDate() {
          while IFS= read -r line; do
              echo "`date '+%d.%m.%Y %T'`  $line"
      rm -f script.cli
      for (( i = 1; i <= 20000 ; i++ )) ; do
         echo "echo iteration ${i}" >> script.cli
         echo "embed-server" >> script.cli
         echo "stop-embedded-server" >> script.cli
      export JAVA_OPTS="-Xmx100m"
      ./jboss-cli.sh < script.cli 2>&1 | addDate | tee output.txt

      Actual results:
      I perform more runs

      • -Xmx90m: CLI freeze after 1100 iterations
      • -Xmx100m: CLI freeze after 1339 iterations
        • thread dump: [^xmx100m.thread.dump.txt]
        • heap dump: [^xmx100m.heapdump.hprof.zip]
        • cli output with time stamps: [^xmx100m.output.txt]
      • -Xmx300m: CLI is not able to start embed-server 3836 iterations
        • my hard limit of open files is 4096, my soft limit of open files is 1024
        • cli output with time stamps: [^xmx300m.output.txt]
        • java.io.FileNotFoundException: /home/mkopecky/playground/eap/7.1.0.ER2.2/jboss-eap-7.1/standalone/log/server.log (Too many open files)

      Additional info:
      In EAP 7.0.0, output of CLI:

      26.07.2017 14:27:35  [disconnected /] embed-server
      26.07.2017 14:27:39  Cannot start embedded server: WFLYEMB0021: Cannot start embedded process: Operation failed: WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      26.07.2017 14:27:39  [disconnected /] 


        Issue Links


            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: JBEAP


                Unassigned Unassigned
                mkopecky@redhat.com Marek Kopecky
                0 Vote for this issue
                3 Start watching this issue