Re: memory usage

From: Tore Halset (halse..vv.ntnu.no)
Date: Wed Apr 27 2005 - 02:31:33 EDT

  • Next message: Erik Hatcher: "<cgen> Ant task and makepairs attribute"

    On Apr 26, 2005, at 4:45, Andrus Adamchik wrote:

    > Also there is a working but less advertised ObjectStore feature (a
    > pair of methods: "startTrackingNewObjects", "unregisterNewObjects")
    > that lets user explicitly clean up objects added between two certain
    > points in time.

    I could use that one for some of the large operations. Nice

    >> Is it possible (from code) to see some statistics for the
    >> DataRowStore? Like how full it is, how many old objects, how much
    >> memory etc? I think this would be a nice function?
    >
    > There is a "size" method, but that's about it.

    Ok, the size method helps a bit as I currently do not knows how much
    cache I am using.

    The database I am working with has two tables with blobs. The blob
    records are all <5MB. Those tables are mapped in my cayenne model, but
    I am not using cayenne for those tables as I am afraid those blobs will
    fill up the cache. Anyone know of a nice solution to using cayenne on
    tables with blobs?

    > I think we may implement statistics/management extensions following
    > JMX approach (so called MBeans) for both ObjectStore and DataRowStore.
    > The new classes can reside in the "access" package, thus being able to
    > read protected variables (or rather we can create getters with default
    > access) and expose all needed statistics for an external monitoring
    > application without affecting public ObjectStore and DataRowStore
    > APIs.

    Sounds nice. I have never used JMX, but should probably start using if
    for app-management.

    Thanks for all the useful information!

      - Tore.



    This archive was generated by hypermail 2.0.0 : Wed Apr 27 2005 - 02:31:36 EDT