I just compared the performance of scala actors against java threads.
I was amazed to see the difference, I noticed that with my system I was able to create a maximum of ~ 2000 threads (only at a time). But with the same system, I was able to create ~ 500,000 scala members,
Both programs use about 81 MB of heap JVM memory.
Can you explain how much java thread is much heavier than scala / akka actors? What is the key factor that made the scala active of this very light weight?
If I want to achieve the best scalability, should I switch to an actor-based web server instead of a traditional application or Java web server like JBoss or Tomcat?
Thank.
java performance multithreading scala akka
SmartSolution Mar 21 '13 at 17:09 2013-03-21 17:09
source share