Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


Monitoring memory consumption

  • J. Petranek
    J. Petranek

    Hello there,

    for my own testsuite, I am monitoring memory consumption. In short, it is just a parallel thread, that monitors how little memory is still left. This is an inaccurate estimate, but at least it gives me a hint, if the test fails because I'm running out of memory.

    If you think this is useful, I'd be happy to share the changes.

    PS: Thanks for bringing tests to the mobile platform.

    • Hi,

      The goal of J2MEUnit is to provide similar functionality as the other JUnit variants. I don't think that additional functionality like memory monitoring should be added to the base library. If you would like to make add-ons available I would suggest creating a new project.