Is there a nice tool to monitor how much heap memory each of the OSGI bundles take over time ?
Thanks, Retep
It is not generally possible to identify the amount of memory used by an individual bundle; only the amount of memory used by the whole application.
For example: suppose bundle A calls a method provided by bundle B, and the method in bundle B creates an object. Who is responsible for the memory consumed by that object? Bundle B created it directly, but it would not have done so if bundle A hadn't asked it to. So we cannot really assign that memory consumption to either A or B.
For monitoring memory consumption of the whole application I recommend YourKit and/or Eclipse Memory Analyzer.