Github user sryza commented on the pull request: https://github.com/apache/spark/pull/663#issuecomment-42370189 By default, ThreadPoolExecutor doesn't start all the core threads at once. Though I just learned that when it gets tasks, it will start new ones even if others are idle, so I agree that 500 seems high. Uploading a patch that defaults to 25 and makes it configurable.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---