Memory leak in SBT when compiling project

172 views
Skip to first unread message

Pavel Chlupáček

unread,
Jun 17, 2011, 3:47:25 AM6/17/11
to simple-build-tool
Hi,

I do have project compromising of about 10 subprojects which all
have some dependencies on each other. When I hit compile for any of
subprojects the memory consumption of sbt increases with every compile
(irrelevant if it is with ~ or not). Eventuelly every compile will
increase memory of about 60 meg easily going to 4G in few compile
cycles when using ~.

I am quite confident this is memory leak of build process. Is there
any way how to aviod it // detect it?

sbt sbt 0.7.7 and Scala 2.7.7

project is agains Scala 2.8.1

Thanks for help

Jason Zaugg

unread,
Jun 17, 2011, 10:09:05 AM6/17/11
to simple-b...@googlegroups.com
Am Freitag, 17. Juni 2011 09:47:25 UTC+2 schrieb Pavel Chlupáček:
  I am quite confident this is memory leak of build process. Is there
any way how to aviod it // detect it?

You could capture and analyze a memory dump. YourKit profiler has a trial version.

 
-jason

Mark Harrah

unread,
Jun 18, 2011, 2:04:17 PM6/18/11
to simple-b...@googlegroups.com

Do you actually get an OOME?

-Mark

Pavel Chlupáček

unread,
Jul 20, 2011, 8:57:51 AM7/20/11
to simple-b...@googlegroups.com
Yeah, though once I have migrated it dissapeared. I fixed it in sbt 7 by running GC more often. So probably tweaking gc intervals will solve it.
in the 0.10 I am not getting it when compiling, just some coleagues reporting this happening when running lift with jetty-run

P.

> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
>

j...@webmaster.ms

unread,
Dec 24, 2011, 3:31:29 PM12/24/11
to simple-b...@googlegroups.com
Hello.

Can you please share your fix ?
I have the problem with sbt-0.10 and ~jetty-run.
Unfortunately, my knowledge of JVM internals is very limited and I cannot  tweak gc

Thank you!
Reply all
Reply to author
Forward
0 new messages