Forcing GC in debugged app?

I'm remotely debugging a 1.3.1_05 app with IntelliJ 3.0.1. I'm trying to track down some memory usage issues, and want to force a GC in the remote JVM via IntelliJ. I tried using Run>Evaluate Expression, with "java.lang.Runtime.gc()" as my expresion, but it complains "java.lang.Runtime.gc() = Cannot evaluate: not enough debug information in the current context".

Any pointers on how to do this?



Please sign in to leave a comment.