title: R RJDBC java.lang.OutOfMemoryError
body: <p>I got following error while run dbGetQuery of RJDBC 0.2-4:</p>
  
  <pre><code>Error in .jcall(rp, "I", "fetch", stride) :    
    java.lang.OutOfMemoryError: Java heap space
  </code></pre>
  
  <p>Following is my code:</p>
  
  <pre><code>Sys.setenv(JAVA_HOME='C:/Program Files (x86)/Java/jdk1.7.0_25')
  options(java.parameters='-Xmx1g')
  library(rJava)
  library(rjson)
  library(RJDBC)
  
  # Output Java version
  .jinit()
  print(.jcall("java/lang/System", "S", "getProperty", "java.version"))
  
  jdbcDriver &lt;&lt;- JDBC(driverClass="oracle.jdbc.OracleDriver", classPath="C:/lib/dashboard_lib/ojdbc6.jar")
  jdbcConnection &lt;&lt;- dbConnect(jdbcDriver, "...", "...", "...")
  dataset &lt;&lt;- dbGetQuery(jdbcConnection, "select * from OPR_DATA.MV_REG_CTRY_MS_QUARTER_AMT")
  </code></pre>
  
  <p>Can anyone help me with this, thanks very much in advance</p>