4 Replies Latest reply: Apr 29, 2014 10:06 PM by jtahlborn RSS

    Is there a hook i can add to JVM so it would print log when reaches 70% of total memory, like a event i can register to



      Is there any hook i can attach to a JVM process so it can log when it reaches 70% of total memory,

      I can use code like below to get memory information, but this is kind of on demand, is there a way i can get memory information by event or some thing


      Runtime runtime = Runtime.getRunTime();