RE: out of memory error

From: Oliver Layug (oliverlayu..ahoo.com)
Date: Sat Oct 16 2004 - 12:45:56 EDT

  • Next message: Andrus Adamchik: "Re: (minor) Bug in class generation"

    --- Cris Daniluk <cris.danilu..laraview.com> wrote:

    > Tomcat only allows 32mb of heap size by default -
    > not really enough to do
    > anything. I would increase that.
    >
    > Also, try running the code under a profiler.. Its
    > unlikely that Cayenne is
    > leaking the memory. It doesn't use much to do what
    > it does, but if it is,
    > the profiler will tell you exactly where in Cayenne
    > that is - and thus if
    > it's a leak or just natural memory usage.
    >
    > Cris
    >
    >
    > >Good morning!
    > >
    > >Hi! I'm having problems with this code. I have a
    > large
    > >consumer table with references to several small
    > lookup tables.
    > >This code is inside a java bean which is called by
    > a jsp. My
    > >problem is that when i run this, the java process
    > eats up a
    > >lot of memory. Im assuming that the memory is being
    > used for
    > >compilation. But how come as the consumer table
    > gets bigger,
    > >the memory java eats up becomes bigger? Im only
    > inserting 1
    > >entry in the consumer table. The consumer table
    > contains
    > >around 24000 entries and the lookup tables contain
    > only 2 to 6
    > >entries. I'm running this on tomcat4 under
    > >netbeans3.6 on a windows 2003 and mysql4 db.
    > >
    > >Thanks,
    > >Oliver
    > >
    > [snip]
    >
    >

                    
    _______________________________
    Do you Yahoo!?
    Declare Yourself - Register online to vote today!
    http://vote.yahoo.com



    This archive was generated by hypermail 2.0.0 : Sat Oct 16 2004 - 12:45:57 EDT