Semergence

Seth Ladd’s blog about Ruby on Rails and crunching data.

That’s a Lot of Actors

leave a comment »

As I continue to explore Scala, I wondered just how many (react based) actors I could create in a single JVM. The answer, apparently, is a lot.

Before I canceled it, the count was up to 13,500,000 actors. This is on an old Centrino laptop running the Sun 1.6 JVM. I did have to turn up the memory limit a bit, but I never saw memory go above 20MB. Also, I wasn’t doing anything inside the Actors.

Still, that’s enough for me to not have to worry about it.

Scala: It’s as if Java and Erlang had a baby. Fun stuff.

Written by sethladd

June 19, 2007 at 8:39 pm

Posted in scala

Leave a Reply