Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6193319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:05:56+00:00 2026-05-24T03:05:56+00:00

I’m using Scala 2.9.0.final on Ubuntu 11.04. Starting scala from the command line takes

  • 0

I’m using Scala 2.9.0.final on Ubuntu 11.04. Starting scala from the command line takes about 20 seconds before a prompt appears.

I realize I should expect some delay because it has to lead compiler JAR files, but I have a hard time believing that it should be 20 seconds — I worry I may have something configured wrong.

EDIT

So I tried jstack and it gives a long output that is above my head. I see one thread waiting on a mutex. But looking at the output from time:

21.96s user 0.66s system 135% cpu 16.711 total

It would seem that it spent a decent amount of cycles on both cores… so maybe it’s not just blocking on a mutex for that time?

2011-07-28 11:45:02
Full thread dump OpenJDK 64-Bit Server VM (20.0-b11 mixed mode):

"Attach Listener" daemon prio=10 tid=0x00000000023ea000 nid=0x19a9 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Thread-0" prio=10 tid=0x00007f7768304800 nid=0x19a8 runnable [0x00007f776cd92000]
   java.lang.Thread.State: RUNNABLE
    at scala.collection.generic.Growable$$anonfun$$plus$plus$eq$1.<init>(Growable.scala:48)
    at scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:48)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:128)
    at scala.collection.TraversableOnce$class.toList(TraversableOnce.scala:242)
    at scala.collection.mutable.WrappedArray.toList(WrappedArray.scala:33)
    at scala.collection.immutable.List$.apply(List.scala:434)
    at scala.Option.toList(Option.scala:231)
    at scala.tools.nsc.util.DirectoryClassPath.asURLs(ClassPath.scala:321)
    at scala.tools.nsc.util.ClassPath.sortString(ClassPath.scala:284)
    at scala.tools.nsc.util.ClassPath.hashCode(ClassPath.scala:289)
    at scala.collection.mutable.FlatHashTable$HashUtils$class.elemHashCode(FlatHashTable.scala:349)
    at scala.collection.mutable.HashSet.elemHashCode(HashSet.scala:39)
    at scala.collection.mutable.FlatHashTable$class.containsEntry(FlatHashTable.scala:109)
    at scala.collection.mutable.HashSet.containsEntry(HashSet.scala:39)
    at scala.collection.mutable.HashSet.contains(HashSet.scala:55)
    at scala.collection.GenSetLike$class.apply(GenSetLike.scala:44)
    at scala.collection.mutable.HashSet.apply(HashSet.scala:39)
    at scala.collection.SeqLike$$anonfun$distinct$1.apply(SeqLike.scala:505)
    at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
    at scala.collection.immutable.List.foreach(List.scala:45)
    at scala.collection.SeqLike$class.distinct(SeqLike.scala:504)
    at scala.collection.immutable.List.distinct(List.scala:45)
    at scala.tools.util.PathResolver$Calculated$.containers(PathResolver.scala:206)
    - locked <0x00000000faba8098> (a scala.tools.util.PathResolver$Calculated$)
    at scala.tools.util.PathResolver.containers(PathResolver.scala:228)
    at scala.tools.util.PathResolver.result(PathResolver.scala:231)
    - locked <0x00000000faba8050> (a scala.tools.util.PathResolver)
    at scala.tools.nsc.backend.JavaPlatform$class.classPath(JavaPlatform.scala:18)
    at scala.tools.nsc.Global$$anon$2.classPath(Global.scala:54)
    - locked <0x00000000faba7ff0> (a scala.tools.nsc.Global$$anon$2)
    at scala.tools.nsc.backend.JavaPlatform$class.rootLoader(JavaPlatform.scala:19)
    at scala.tools.nsc.Global$$anon$2.rootLoader(Global.scala:54)
    at scala.tools.nsc.Global$$anon$2.rootLoader(Global.scala:54)
    at scala.tools.nsc.Global.rootLoader(Global.scala:57)
    at scala.tools.nsc.symtab.Definitions$definitions$.RootClass(Definitions.scala:138)
    - locked <0x00000000faba5620> (a scala.tools.nsc.symtab.Definitions$definitions$)
    at scala.tools.nsc.symtab.Definitions$definitions$.EmptyPackage(Definitions.scala:141)
    - locked <0x00000000faba5620> (a scala.tools.nsc.symtab.Definitions$definitions$)
    at scala.tools.nsc.symtab.Definitions$definitions$.EmptyPackageClass(Definitions.scala:142)
    - locked <0x00000000faba5620> (a scala.tools.nsc.symtab.Definitions$definitions$)
    at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:804)
    at scala.tools.nsc.Global$Run.<init>(Global.scala:693)
    at scala.tools.nsc.interpreter.IMain.scala$tools$nsc$interpreter$IMain$$_initialize(IMain.scala:120)
    at scala.tools.nsc.interpreter.IMain$$anonfun$initialize$1.apply$mcZ$sp(IMain.scala:154)
    at scala.tools.nsc.interpreter.IMain$$anonfun$initialize$2.apply(IMain.scala:154)
    at scala.tools.nsc.interpreter.IMain$$anonfun$initialize$2.apply(IMain.scala:154)
    at scala.concurrent.ThreadRunner$$anon$2$$anonfun$run$2.apply(ThreadRunner.scala:45)
    at scala.concurrent.ThreadRunner.scala$concurrent$ThreadRunner$$tryCatch(ThreadRunner.scala:31)
    at scala.concurrent.ThreadRunner$$anon$2.run(ThreadRunner.scala:45)
    at java.lang.Thread.run(Thread.java:679)

"Low Memory Detector" daemon prio=10 tid=0x00007f77680b9000 nid=0x1996 runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread1" daemon prio=10 tid=0x00007f77680b6800 nid=0x1995 runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" daemon prio=10 tid=0x00007f77680b3800 nid=0x1994 runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x00007f77680b2000 nid=0x1993 runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=10 tid=0x00007f7768092800 nid=0x1992 in Object.wait() [0x00007f776e27c000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x00000000fb2d82d0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:133)
    - locked <0x00000000fb2d82d0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:149)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:177)

"Reference Handler" daemon prio=10 tid=0x00007f7768091000 nid=0x1991 in Object.wait() [0x00007f776e37d000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x00000000fb2d8370> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:502)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
    - locked <0x00000000fb2d8370> (a java.lang.ref.Reference$Lock)

"main" prio=10 tid=0x0000000001db4800 nid=0x198d in Object.wait() [0x00007f7775067000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x00000000fab8d110> (a scala.concurrent.SyncVar)
    at java.lang.Object.wait(Object.java:502)
    at scala.concurrent.SyncVar.get(SyncVar.scala:22)
    - locked <0x00000000fab8d110> (a scala.concurrent.SyncVar)
    at scala.concurrent.ThreadRunner$$anonfun$submit$1.apply(ThreadRunner.scala:48)
    at scala.Function0$class.apply$mcZ$sp(Function0.scala:34)
    at scala.runtime.AbstractFunction0.apply$mcZ$sp(AbstractFunction0.scala:12)
    at scala.tools.nsc.interpreter.IMain.global(IMain.scala:162)
    - locked <0x00000000fb2d8580> (a scala.tools.nsc.interpreter.ILoop$ILoopInterpreter)
    at scala.tools.nsc.interpreter.JLineCompletion.<init>(JLineCompletion.scala:17)
    at scala.tools.nsc.interpreter.ILoop.chooseReader(ILoop.scala:791)
    at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:807)
    at scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:67)
    at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:80)
    at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:89)
    at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)

"VM Thread" prio=10 tid=0x00007f776808a000 nid=0x1990 runnable 

"GC task thread#0 (ParallelGC)" prio=10 tid=0x0000000001dc0000 nid=0x198e runnable 

"GC task thread#1 (ParallelGC)" prio=10 tid=0x0000000001dc1800 nid=0x198f runnable 

"VM Periodic Task Thread" prio=10 tid=0x00007f77680bb800 nid=0x1997 waiting on condition 

JNI global references: 1010
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:05:57+00:00Added an answer on May 24, 2026 at 3:05 am

    The startup time will be reduced in the upcoming 2.9.1 release. If yu want to you can already check it out by downloading the RC here :
    http://www.scala-lang.org/downloads

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.