I am getting the following error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space         at SQLite.Vm.step(Native Method)         at SQLite.Database.get_table(Database.java:314)         at SQLite.JDBC2z.JDBCStatement.executeQuery(JDBCStatement.java:120)         at SQLite.JDBC2z.JDBCStatement.executeQuery(JDBCStatement.java:168)         at TestData.readData(TestData.java:21)         at TestData.main(TestData.java:41) 
                1)Change the gradle. properties file and change the heap size as per your requirement. 2)"Edit Custom VM Options" from the Help menu. It will open studio.
The theoretical limit is 2^64 bytes, which is 16 exabytes (1 exabyte = 1024 petabytes, 1 petabyte = 1024 terabytes). However, most OS's can't handle that. For instance, Linux can only support 64 terabytes of data.
Following are few options available to change Heap Size.
-Xms<size>        set initial Java heap size -Xmx<size>        set maximum Java heap size -Xss<size>        set java thread stack size   java -Xmx256m TestData.java 
                        Java command line parameters
-Xms: initial heap size -Xmx: Maximum heap size   if you are using Tomcat. Update CATALINA_OPTS environment variable
export CATALINA_OPTS=-Xms16m -Xmx256m; 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With