This content has been marked as final. Show 2 replies
Well, you won't know the PID number of the JVM's process until you start it, so providing it before you start the process obviously isn't going to be possible.
At any rate I suggest you... try it and see what happens. It isn't hard to write five lines of code which quickly uses up all available memory.