- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Huge discrepancy between batch and Eclipse rebuild times
Thu, 2010-03-11, 23:30
We've got what I think is a large project, mixed Scala and Java. It takes about 3 minutes for a batch rebuild in ant, including generation of new source files, and includes compilation of all the Scala (which I think rebuilds most of the Java in the process).
In Eclipse, if I refresh, and then hit "Clean Project" with an implied rebuild, it takes many minutes. It progresses relatively steadily to "98%", and then sticks. During this I wander off, make tea, visit the bathroom, come back, sit down, and start composing this email.
After a very long time, it starts counting warnings for me.
Any ideas? I run Eclipse with these options in eclipse.ini:
--launcher.XXMaxPermSize
256m
-vmargs
-Xss12m
-Xms256m
-Xmx850m
I suppose I could give it even more memory.
David
Fri, 2010-03-12, 12:27
#2
Re: Huge discrepancy between batch and Eclipse rebuild times
On Thu, Mar 11, 2010 at 10:30 PM, David Chase wrote:
> --launcher.XXMaxPermSize
> 256m
> -vmargs
> -Xss12m
> -Xms256m
> -Xmx850m
>
> I suppose I could give it even more memory.
I would recommend trying that. You could also enable the heap monitor
in Eclipse to see if you're near the limit. For my medium-size set of
projects, I use -Xmx2500m, which I think is higher than should be but
I had too restart too many times during a coding day otherwise.
Ismael
It definitely shouldn't behave like that. I will try to add some
debugging options so that maybe you can figure out where it is getting
stuck. Did you try getting jvm dump?
Also, things that you should really tell us are:
- eclipse version
- scala plugin version
I assume that the project is not open-source and it is not publicly
available?
Thanks,
hubert
David Chase wrote:
> We've got what I think is a large project, mixed Scala and Java. It takes about 3 minutes for a batch rebuild in ant, including generation of new source files, and includes compilation of all the Scala (which I think rebuilds most of the Java in the process).
>
> In Eclipse, if I refresh, and then hit "Clean Project" with an implied rebuild, it takes many minutes. It progresses relatively steadily to "98%", and then sticks. During this I wander off, make tea, visit the bathroom, come back, sit down, and start composing this email.
>
> After a very long time, it starts counting warnings for me.
>
> Any ideas? I run Eclipse with these options in eclipse.ini:
>
> --launcher.XXMaxPermSize
> 256m
> -vmargs
> -Xss12m
> -Xms256m
> -Xmx850m
>
> I suppose I could give it even more memory.
>
> David
>
>