3 Replies Latest reply on Apr 2, 2002 8:57 AM by earlgrey

    Server hangs while Resizing the cache

    sbpyari

      Hi Guys
      I am using Jboss2.4.4 version.. after serveral days i configured properly . Now i am facing some problem with BMP beans(while resizing).. I created a some bmp,cmp and session beans.Using session and bmp i created 20 records in the table and after that i updated some status in the table manually .. when i run other session bean to monitor the status and to collect some beans here i faced some problem. The Findermethod returns the collection of beans with a particular status and when i accessed the bussiness methods for those beans .. while iterating the collection it is restricting only upto 9 beans. In server side i am getting the message as [INFO,Default] Activate : <bean PK> (for ex [INFO,Default] Activate : 1...[INFO,Default] Activate : 9) after the server is not responding.. i found no errors/exception in server and in my code..

      But in server log i got the message as [12:17:07,489,LRUEnterpriseContextCachePolicy] Resized cache for bean <bean name >: old capacity = 50, new capacity = 112


      Pls let me know the more details what i have to do to fix it up
      with regards
      Pyari

        • 1. Re: Server hangs while Resizing the cache
          earlgrey

          I do not think this is related to cache resizing. Look into resource locking if your server hangs: Do you use up all db connections (i.e. 10) without releasing them within your iteration?

          Lars

          • 2. Re: Server hangs while Resizing the cache
            sbpyari

            Hi Lars ,
            Thanks for ur reply.As per ur ans .. that i have to check the db connections..I checked that and i increased more.. then it works fine. but my doubt is..I used the same bean for inserting 20 records( at that time db max conn is 10).. there is no problem while doing that.. but the problem arises only during the fetching sequence. In my DAO class i checked thorougly .. and i closed the resource properly. is there any way to circumvent this problem. or any way to find the memory leak of resource(ie DB conn ).. pls let me know abt this asap..
            Once again i very much thankfull for ur reply..

            Thanking u in advance for ur reply..
            bye
            with cheers
            Pyari

            • 3. Re: Server hangs while Resizing the cache
              earlgrey

              can you post your code?

              Lars