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

(7.4.z) CLI is unable to start embed-server multiple times in a loop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.1.0.ER2, 7.2.0.GA.CR1, 7.3.0.CD15
    • CLI, Modules

    Description

      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:
      Always

      Steps to Reproduce:

      addDate() {
          while IFS= read -r line; do
              echo "`date '+%d.%m.%Y %T'`  $line"
          done
      }
      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
      done
      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
      • -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 /] 
      

      Attachments

        1. xmx100m.heapdump.hprof.zip
          15.21 MB
        2. xmx100m.output.txt
          274 kB
        3. xmx100m.thread.dump.txt
          9 kB
        4. xmx300m.output.txt
          797 kB

        Issue Links

          Activity

            People

              rhn-cservice-bbaranow Bartosz Baranowski
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: