(everything for java5)I am trying to get notification when memory runs low. For what I understand I have to register a listener to MemoryMXBean and then set a threshold to MemoryPoolMXBean. How can I know the threshold to set? If I want a notification when 80% of the memory is used. The threshold is only for a pool and not for total memory. Do I have any chance to get a portable solution ? (not just for sun's java).
Is there an easier solution than using MXBean ? thanks in advance, alex