I have a code like this
import java.io.*;
public class Test{
public static void main(String ars[]){
try{
Runtime rt=Runtime.getRuntime();
Process pr=rt.exec("a.exe");
BufferedReader input=new BufferedReader(new InputStreamReader(pr.getInputStream()));
How to limit the memory used by the a.exe ( like stop the execution after say 100MB) ?