title: JVM Threads and Context Switching from the memory standpoint
body: <p>I'm not sure if this is a vague question, if it is then I would be more than happy to be pointed a direction to get some clarity.</p>
  
  <p>I've got a bunch of Java Tests (30 to be precise) that gets run using a Parallel Runner (it uses a Threadpool).</p>
  
  <p>Each test takes about 1 minute (if they were to run in isolation, they are endtoend tests). However, when they are run in parallel, it takes about 10 minutes. I haven't set up any heap size as a JVM arg.</p>
  
  <p>Using the top command, I see that my CPU is utilised more than 110% when these are run in parallel. Also observing a few context switches when they are run (sometimes in tens sometimes in 100s and rarely in 1000s).</p>
  
  <p>Wondering if increasing the JVM Heap Size would improve the situation a bit or this is completely a unrelated parameter to solve this? If it is unrelated, then I'd like to hear why. Thanks.</p>