Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

user4228615Apr 28 2014 — edited Apr 29 2014

Hi

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();

runtime.totalMemory();

Comments

Try it without a blank in the path name.
Shay Shmeltzer-Oracle
Try installing JDeveloper in a directory that doesn't have a space in it's name something like C:\jdev1013. Let us know if it solves your problem.
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 27 2014
Added on Apr 28 2014
4 comments
1,936 views