title: Parallel processing threads on split in Apache Camel
body: <p>I am trying to split an incoming exchange in route based on some logic. Every split part would connect to an ssh server in a bean.</p>
  
  <pre><code>from("seda:compression")
      .routeId("Compressor")
      .split(beanExpression(new InstanceListParser(), "process"))
      .parallelProcessing()
          .to("bean:compressorClient?method=compress(${header.remoteHost},${header.dataCenter})")
      .end();
  </code></pre>
  
  <p>But it seems a maximum of 10 processes are being run in parallel.</p>
  
  <p>I added the following code to increase the size of thread pool factory, but this does not help.</p>
  
  <pre><code>ThreadPoolProfile poolProfile = new ThreadPoolProfile("masterPoolProfile");
  poolProfile.setMaxPoolSize(100);
  poolProfile.setMaxQueueSize(100);
  poolProfile.setPoolSize(50);
  poolProfile.setKeepAliveTime(1L);
  poolProfile.setTimeUnit(TimeUnit.MINUTES);
  
  ThreadPoolFactory poolFactory = new DefaultThreadPoolFactory();
  poolFactory.newThreadPool(poolProfile, Executors.defaultThreadFactory());
  
  getContext().getExecutorServiceManager().setThreadPoolFactory(poolFactory);
  </code></pre>