There is a Browser called PhantomJS. Its a headless browser, I mean you can't see that, But when you open Start Task Manager --> Process Tab(In windows), there you can see its opened. I'm calling that phantomJS browser through java but I don't know how to kill(close) that browser. If I do not close that browser, It consumes my memory. So its necessary to close that. Can any body please tell, how to close/kill/quit my phantomJS browser through java code.