java.lang.OutOfMemoryError JDBC update

In this tutorial we show a code example, how you can avoid the java.lang.OutOfMemoryError when selecting or updating a huge database. 1. Increase the memory of the VM If you are sure that you have enough RAM to process the whole database, you can try to assign more memory to the Java Virtual Machine. Pass the following parameters when starting the JVM, where Xms is the minimum and Xmx the maximum available heap memory (k = kilobyte, m = megabyte, g = gigabyte):

If you are using eclipse, you can change this…

Read More