title: Azure Webjob - OutOfMemoryError: Java heap space error
body: <p>I am facing "OutOfMemoryError: Java heap space" error in azure webjob when I am trying to read JSON data (approx 50 mb) which is coming in a single line from an API.</p>
  
  <p>While I am trying to optimize the code by reading small part of data at once and then processing the data. I would like to know if there is any way to increase heap size in azure?</p>
  
  <p>I faced same issue in my local machine as well, adding -Xms512m -Xmx1024m arguments to eclipse run configuration fixed the problem, but adding same to web job batch file command didn't work.</p>
  
  <pre><code>"%JAVA_HOME%"\bin\java -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false -Xms512m -Xmx1024m -jar jarfilename.jar
  </code></pre>
  
  <p>I appreciate any suggestions on how to increase heap size in azure.</p>
  
  <p>Edit: I am using Premium 1 Medium app service plan.</p>
  
  <p>I checked app service plan memory usage as well it didn't exceed 40%</p>