Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » A program runs extremely slow under Eclipse
A program runs extremely slow under Eclipse [message #243317] Mon, 17 December 2007 10:02 Go to next message
Eclipse UserFriend
Originally posted by: sarmadysREM.REMgmail.com

Hello

I have written a small simulation software (mostly random numbers and
ArrayLists). I am doing 50,000 times loop on the program.

On eclipse it takes (350 seconds) which is not acceptable. I worked a
full day on the code and I do not find something special.

Today I was going to take a shot on Netbeans. I copied the code to
Netbeans and run it. I was shocked when I saw it is being run in just
(0.7 seconds).

I am using JDK6 on both IDEs. I guess it is because of JVM settings or
something.

Could people please tell me their guess on what things could cause such
a huge difference (almost 500 times slower runtime)?

(By the way I need to move back to eclipse because unfortunately I find
NB6.0 too buggy. A simple package name refactor broke my entire code and
it took me 30 minutes to fix things manually)

Regards,
Mac
Re: A program runs extremely slow under Eclipse [message #243322 is a reply to message #243317] Mon, 17 December 2007 10:25 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Siamak Sarmady wrote:

> Hello
>
> I have written a small simulation software (mostly random numbers and
> ArrayLists). I am doing 50,000 times loop on the program.
>
> On eclipse it takes (350 seconds) which is not acceptable. I worked a
> full day on the code and I do not find something special.
>
> Today I was going to take a shot on Netbeans. I copied the code to
> Netbeans and run it. I was shocked when I saw it is being run in just
> (0.7 seconds).
>
> I am using JDK6 on both IDEs. I guess it is because of JVM settings or
> something.
>
> Could people please tell me their guess on what things could cause
> such a huge difference (almost 500 times slower runtime)?

Did you eventually output stuff to the console? Could you attach the
code here?

Dani

>
> (By the way I need to move back to eclipse because unfortunately I
> find NB6.0 too buggy. A simple package name refactor broke my entire
> code and it took me 30 minutes to fix things manually)
>
> Regards,
> Mac
Re: A program runs extremely slow under Eclipse [message #243338 is a reply to message #243322] Mon, 17 December 2007 13:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sarmadysREM.REMgmail.com

Daniel, Thank you for your help. I sent you the code.

I am not sure what is up here. I first tried the code on command line
and it was unbelievably slow (more than 700 seconds)

Then I restarted the eclipse and every other java program and now the
same unchanged code runs in eclipse as fast as the other instance on
netbeans (in 0.7 seconds)

It seems JVM messes up in some way. Is it?

Thank you again for your time and help.

Regards,
Mac


Daniel Megert wrote:
> Siamak Sarmady wrote:
>
>> Hello
>>
>> I have written a small simulation software (mostly random numbers and
>> ArrayLists). I am doing 50,000 times loop on the program.
>>
>> On eclipse it takes (350 seconds) which is not acceptable. I worked a
>> full day on the code and I do not find something special.
>>
>> Today I was going to take a shot on Netbeans. I copied the code to
>> Netbeans and run it. I was shocked when I saw it is being run in just
>> (0.7 seconds).
>>
>> I am using JDK6 on both IDEs. I guess it is because of JVM settings or
>> something.
>>
>> Could people please tell me their guess on what things could cause
>> such a huge difference (almost 500 times slower runtime)?
>
> Did you eventually output stuff to the console? Could you attach the
> code here?
>
> Dani
>
>>
>> (By the way I need to move back to eclipse because unfortunately I
>> find NB6.0 too buggy. A simple package name refactor broke my entire
>> code and it took me 30 minutes to fix things manually)
>>
>> Regards,
>> Mac
Re: A program runs extremely slow under Eclipse [message #243343 is a reply to message #243338] Mon, 17 December 2007 13:38 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Siamak Sarmady wrote:

> Daniel, Thank you for your help. I sent you the code.
>
> I am not sure what is up here. I first tried the code on command line
> and it was unbelievably slow (more than 700 seconds)
>
> Then I restarted the eclipse and every other java program and now the
> same unchanged code runs in eclipse as fast as the other instance on
> netbeans (in 0.7 seconds)
>
> It seems JVM messes up in some way. Is it?

Maybe the libs you're using aren't made for Java6? Another possibility
might be the console printing.

Dani

>
> Thank you again for your time and help.
>
> Regards,
> Mac
>
>
> Daniel Megert wrote:
>
>> Siamak Sarmady wrote:
>>
>>> Hello
>>>
>>> I have written a small simulation software (mostly random numbers
>>> and ArrayLists). I am doing 50,000 times loop on the program.
>>>
>>> On eclipse it takes (350 seconds) which is not acceptable. I worked
>>> a full day on the code and I do not find something special.
>>>
>>> Today I was going to take a shot on Netbeans. I copied the code to
>>> Netbeans and run it. I was shocked when I saw it is being run in
>>> just (0.7 seconds).
>>>
>>> I am using JDK6 on both IDEs. I guess it is because of JVM settings
>>> or something.
>>>
>>> Could people please tell me their guess on what things could cause
>>> such a huge difference (almost 500 times slower runtime)?
>>
>>
>> Did you eventually output stuff to the console? Could you attach the
>> code here?
>>
>> Dani
>>
>>>
>>> (By the way I need to move back to eclipse because unfortunately I
>>> find NB6.0 too buggy. A simple package name refactor broke my entire
>>> code and it took me 30 minutes to fix things manually)
>>>
>>> Regards,
>>> Mac
>>
Previous Topic:problems with eclipse RCP patch 1 for 3.3.1.1
Next Topic:Opening windows exporer for a directory
Goto Forum:
  


Current Time: Sat Dec 21 16:50:55 GMT 2024

Powered by FUDForum. Page generated in 0.08119 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top