4 Replies Latest reply on Nov 6, 2007 6:36 AM by Abel Munoz Alcaraz

    Messaging doesn`t startup becouse MaxSize has been exceeded

    Abel Munoz Alcaraz Newbie

      Hi all,
      We have a serious problem with Pageable Channel support in JBoss Messaging 1.4.0.GA.

      If you send, without consumers, MaxSize+n messages to a queue and you stop the application server it never start again.

      When you try to start it, it throws this exception:

      java.lang.IllegalStateException: Cannot load channel 2 since the fullSize parameter is too small to load all the required references, fullSize needs to be at least 200 it is currently 101


      I think (I have studied your source code) it is because Messaging gets DownSizeCache messages in memory (to improve persistence), and when you stop the AS the number of messages in memory is MaxSize + DownCacheSize.

      The test environment is:

      JBoss Application Server 4.2.1
      JBoss Messaging 1.4.0.GA
      JDK 1.5.0 update 12
      Windows XP / Linux RedHat
      PostgreSQL 8.2.4

      Could you help me to solve this issue?

      Thanks in advance,
      -Abel