About 151,000 results
Open links in new tab
  1. jvm - How to deal with "java.lang.OutOfMemoryError: Java heap …

    To address the java.lang.OutOfMemoryError: Java heap space issue, you need to modify gradle.properties file. Add this line: org.gradle.jvmargs=-Xmx2048m This line instructs Gradle to allocate a maximum of 2048 megabytes of memory to the JVM heap, which can help prevent out-of-memory errors during Gradle builds.

  2. java.lang.OutOfMemoryError: Java heap space - Stack Overflow

    If you want to increase your heap space, you can use java -Xms<initial heap size> -Xmx<maximum heap size> on the command line. By default, the values are based on the JRE version and system configuration. You can find out more about the …

  3. Caused by: java.lang.OutOfMemoryError: Java heap space

    Jun 19, 2015 · You can try increasing the JVM heap space when you launch your application. You can try setting it to 2GB with -Xmx2g . If you're running 32-bit Java I think 2GB is as high as you can go, but if you have a 64-bit JVM you should be able to go higher.

  4. java.lang.OutOfMemoryError: Java heap space - Stack Overflow

    May 19, 2011 · Further to Simon's points, I think that your best bet is to monitor the heap usage ( possibly by using verbose garbage collection ) and then, when the heap shows signs of irreversiible growth, use a tool like 'jmap' and the eclipse memory analyser tool to see what object it is that is dominating your heap.

  5. How do I solve a "java.lang.OutOfMemoryError: Java heap space"?

    Sep 26, 2011 · I am writing some code to parse a very large flat text file into objects which are persisted to a database. This is working on sections of the file (i.e. if I 'top' the first 2000 lines), but I am

  6. Exception in thread "main" java.lang.OutOfMemoryError: Java …

    Oct 30, 2020 · I have written a code and I run it a lot but suddenly I got an OutOfMemoryError: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at javax.media.j3d.BoundingBox.&lt...

  7. Elasticsearch OutOfMemoryError Java heap space - Stack ... - Stack …

    Dec 8, 2014 · java.lang.OutOfMemoryError: Java heap space I have changed heap size with: export ES_HEAP_SIZE=16g (also ES_MAX_MEM and ES_MIN_MEM to same) also changed the yml file for elasticsearch: bootstrap.mlockall: true and even (recommended by install documents): sudo sysctl -w vm.max_map_count=262144 Restart service and still no no impact, still java ...

  8. java - Kafka Connect running out of heap space - Stack Overflow

    After starting Kafka Connect (connect-standalone), my task fails immediately after starting with: java.lang.OutOfMemoryError: Java heap space at java.nio.HeapByteBuffer.&lt;init&gt;(HeapByteBu...

  9. exception: java.lang.OutOfMemoryError: Java heap space

    Dec 5, 2016 · For example, if you have loaded a large log file containing up to 1 GB of data, then java.lang.OutOfMemoryError: Java heap space issue will come. In case you have a specific requirement where you wish to process large files in Java then try to follow this link. As it mentions: How to solve java.lang.OutOfMemoryError: Java heap space

  10. How do I solve OutOfMemoryError: Java heap space

    May 3, 2013 · You can increase your heap/stack size using following commands: -Xms<size> set initial Java heap size -Xmx<size> set maximum Java heap size -Xss<size> set java thread stack size You can also find more descriptive answers over here.