3 Replies Latest reply on Jun 1, 2015 12:28 PM by Justin Bertram

    Server IO Error

    Yair Ogen Expert

      Using HQ 2.2 I am getting this warning:


      WARN: Critical IO Error, shutting down the server. code=-5, message=Error:= Input/output error

      followed by this error:

      2015/05/28 12:30:01.313 [HornetQServerImpl] [Thread-0 (HornetQ-AIO-poller-pool16801585-19548905)]:  INFO: HornetQ Server version 2.2.14.Final (HQ_2_2_14_FINAL, 122) [08c935e1-047f-11e5-b599-79dc487c6bc6] stopped

      2015/05/28 12:30:01.315 [OperationContextImpl] [Thread-0 (HornetQ-AIO-poller-pool16801585-19548905)]: WARN: Error on executor's submit

      1. java.util.concurrent.RejectedExecutionException: Task org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1@1912c1a rejected from java.util.concurrent.ThreadPoolExecutor@1e67b76[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 27468]


      Any ideas what could be the root cause?

        • 1. Re: Server IO Error
          Justin Bertram Master

          It's unclear to me what the root cause of this could be.  The java.util.concurrent.ExecutorService used here is created using java.util.concurrent.Executors.newCachedThreadPool(java.util.concurrent.ThreadFactory) which should create as many new threads as are necessary.  In other words, I don't see why a task would ever be rejected by it.


          Can you provide any details about the use-case here or the series of events which led to this error?


          Also, why are you using such an old version (i.e. 2.2.14.Final)?  Are you able to reproduce this error on a current release?

          • 2. Re: Server IO Error
            Michael Caplan Newbie

            Hi Justin,

            The use case is that we are using a script to exercise a component that generates hundreds of messages entering the queue. And, via jconsole, we can see that the messages are received by the consumers and deleted promptly from the queue.

            The rate is slow - less than 10 messages per second.


            At a certain point (within 5 minutes) HQ crashes with the error.

            We are using such an old version of HQ due to customer requirements.

            Thanks for your assistance!

            Best regards,


            • 3. Re: Server IO Error
              Justin Bertram Master

              Based on your description it appears you have reproducible test-case.  Is that true?  If so, could you try it out on a more recent release (e.g. 2.4.0.Final)?