Hi, I've cobbled together some grungy code to attempt to work out the number of employees in different ranges - the code is a horrible mess of side effects: https://gist.github.com/737179
(pmap process-company (take 1500 companies)) results in: Exception in thread "pool-2-thread-3905" java.lang.OutOfMemoryError: Java heap space Exception in thread "pool-2-thread-4458" java.lang.IllegalStateException: Pop without matching push at clojure.lang.Var.popThreadBindings(Var.java:297) at clojure.lang.Agent$Action.doRun(Agent.java:145) at clojure.lang.Agent$Action.run(Agent.java:150) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) Exception in thread "pool-2-thread-4549" java.lang.OutOfMemoryError: Java heap space Exception in thread "pool-2-thread-3723" java.lang.OutOfMemoryError: Java heap space There are 54874 companies in the companies var. The OOM tends to take place when there are 1000 or so companies to process. What is likely to be causing this issue? Cheers, mike -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en