title: Java - why is there an increase in response time over period of time?
body: <p>I'm executing a Java program 10,000 times in Eclipse indigo. All operations performed are in memory; no disk IO or network IO. I noticed that over the period of time the response time  increased from 2msec to 25 msec for the same input. Upon plotting the response time, the graph looks linear. First thought was I have not tuned the garbage collector. I have set garbage collector for maximum throughput and less gc pause times. Still no difference.</p>
  
  <p>For screenshots on response time and Java VM GC, <a href="http://goo.gl/FTvng" rel="nofollow" title="please click the link">please click the link</a></p>
  
  <p>I'm running Oracle Java on Macbook Pro 2011.</p>
  
  <pre>
  java version "1.6.0_29"
  Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
  Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
  </pre>
  
  <p>Following are my VM settings</p>
  
  <pre>
  -server -XX:+UseParallelGC -XX:+UseParallelOldGC -Xms48m -Xmx64m -XX:NewSize=32m -XX:MaxNewSize=32m -Xss2048k -XX:SurvivorRatio=16 -XX:MaxGCPauseMillis=15 -verbose:gc -Xloggc:gclog.txt -XX:+PrintGCDetails
  </pre>
  
  <p>Appreciate it, if any one could shed light on this.</p>