title: How to solve Java heap space error
body: <p>I am trying to insert 1.30 GB data through ETL in oracle .But i am getting Exception in thread "pool-1-thread-1" java.lang.OutOfMemoryError: Java heap space error.This is my Exception Tree</p>
  
  <pre><code>Wed Mar 05 12:07:18 IST 2014 Starting data-source : Hua_GPRS_CS5_4.7
  
  Wed Mar 05 12:07:18 IST 2014 Fetching Files @ ./data/huagprs/source
  
  Processing next 20 files from ./data/huagprs/source
  Processing file:        D:\workspace\TestHardNess\data\huagprs\source\LEPC18_b00326794.dat_140110.100308_7518.Z
   Exception in thread "pool-1-thread-1" java.lang.OutOfMemoryError: Java heap space
  at java.util.Arrays.copyOfRange(Arrays.java:2694)
  at java.lang.String.&lt;init&gt;(String.java:203)
  at java.lang.StringBuilder.toString(StringBuilder.java:405)
  at jayu.ASCIIFormattable.byteArr2TimeStamp(ASCIIFormattable.java:173)
  at hua.gprs.HuawieGPRS.getValue(HuawieGPRS.java:122)
  at hua.gprs.HuawieGPRS.recordToString(HuawieGPRS.java:37)
  at hua.gprs.HuawieGPRS.recordToString(HuawieGPRS.java:60)
  at hua.gprs.HuawieGPRS.recordToString(HuawieGPRS.java:47)
  at hua.gprs.HuawieGPRS.recordToString(HuawieGPRS.java:60)
  at hua.gprs.HuawieGPRS.recordToString(HuawieGPRS.java:30)
  at hua.gprs.HuawieGPRSParser.persefile(HuawieGPRSParser.java:123)
  at hua.gprs.HuaGPRSFileExecutor.processFile(HuaGPRSFileExecutor.java:16)
  at com.etl.FileExecutor.run(FileExecutor.java:166)
  at com.etl.JobManager.executeFiles(JobManager.java:113)
  at com.etl.JobManager.crawlDir(JobManager.java:196)
  at com.etl.JobManager.run(JobManager.java:83)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  at java.lang.Thread.run(Thread.java:722)
  </code></pre>
  
  <p>eclipse ini configuration</p>
  
  <pre><code>-startup
      plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
     --launcher.library
     plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
    -product
    org.eclipse.epp.package.jee.product
     --launcher.defaultAction
      openFile
     --launcher.XXMaxPermSize
     256M
    -showsplash
    org.eclipse.platform
     --launcher.XXMaxPermSize
     256m
    --launcher.defaultAction
    openFile
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
     -Dhelp.lucene.tokenizer=standard
    -Xms40m
    -Xmx512m
  </code></pre>