0 Replies Latest reply: Aug 8, 2011 8:33 AM by 880975 RSS

    Memory problems - trying to lazy fetch my LOBs

    880975
      I'm running an application on a Weblogic App-Server (10.3.3) on an Oracle database (10g and later on 11g), and it appears that my application's memory isn't managed correctly, as after running it for a while it starts to repeatedly throw "gc overhead limit exceeded" exception.

      I profiled my server with jvisualvm, and it appears that most of the heap consists of byte arrays, and these byte arrays are associated with one of my main entities as its 'data' member (BLOB in the DB).

      I've tried to change that entity with something like this:

      @Basic(fetch=LAZY)
      @LOB
      public byte[] getData() { return this.data; }

      but then I always get null.

      Is there anyway to lazy-fetch my LOBs?