2 Replies Latest reply on Nov 30, 2001 9:50 PM by jaechi

    Resize cache for bean?

    jaechi

      Hi,

      I'm running into this java.langOutOfMemory Error.
      Just before the error, I get the following statements. Could anyone explain why this happens?

      "Bean Cache] Resized cache for bean BoxBean: old capacity = 1000, new capacity = 50"


      Thanks

        • 1. Re: Resize cache for bean?
          danch1

          There aren't many instances of BoxBean active, so the cache resizes itself. What's your specific OutOfMemory error, and what platform are you running on? On Linux this is sometimes due to the threads hitting the user's process limit

          • 2. Re: Resize cache for bean?
            jaechi

            Hi,

            I'm running this on Jboss-2.4.3_Tomcat-3.2.3.
            Windows 2000
            talking to Oracle 8i on Windows 2000 server.
            This same code works fine as a standalone client code but not wrapped in JSP.

            [Bean Cache] Resized cache for bean ArtistBean: old capacity = 1000, new capacity = 50
            [EmbeddedTomcatServiceSX] 2001-11-30 17:30:12 - Ctx( /musicbox ): Exception in: R( /musicbox + /musicbox/ArtistList.jsp + null) - javax.servlet.ServletException
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
            at org.apache.tomcat.core.Handler.service(Handler.java:287)
            at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
            at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
            at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
            at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
            at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
            at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
            at java.lang.Thread.run(Thread.java:539)
            Root cause:
            java.lang.OutOfMemoryError
            [EmbeddedTomcatServiceSX] 2001-11-30 17:30:12 - Ctx( ): 404 R( + /include/musicbox.css + null) null
            [Bean Cache] Resized cache for bean SongBean: old capacity = 1000, new capacity = 50
            [Bean Cache] Resized cache for bean UserBean: old capacity = 1000, new capacity = 50
            [Bean Cache] Resized cache for bean DiscBean: old capacity = 1000, new capacity = 50