Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running java from Eclipse or Command prompt

I want to know if there is any difference between running a program through Eclipse IDE or running it using command-line? Memory-usage and performance-wise.
I am using Java.

like image 843
Hossein Avatar asked Jan 24 '12 12:01

Hossein


1 Answers

Basically, Eclipse runs the same JVM as java.exe, so there should not be any performance decrease when using the same JVM parameters (of course if you are not running it in debug mode).

However, as Eclipse manages a lot of things before launching, if you have to launch several JVMs, it might be better to have a batch file/shell script that executes the JVMs, as in this case the overhead of launching a JVM from Eclipse might be noticeably bigger (however, there should be no difference after the launch).

like image 55
Zoltán Ujhelyi Avatar answered Sep 21 '22 17:09

Zoltán Ujhelyi