Can anyone provide any advice on the Java heap size required to load a large table from a PostgreSQL database? I have stored a table in PostgreSQL for which the Stata dta file is roughly 860 MB. I have used the command
to set the java_heapmax parameter to 16384m (confirmed by java query). Still I am getting a message "java.lang.OutOfMemoryError: Java heap space" even though the heap space is more than 16 times the Stata dataset size. This ratio seems extreme. Or is there some other parameter that I need to change?
I have noticed that Stata tends to store strings extracted from SQL databases as strL even though the PostgreSQL storage format is varchar(15) - i.e. a varying number of characters with a maximum of 15. That applies to two variables. The rest are either integers or floating point numbers.
Incidentally, in case anyone queries it my system has 32 GB of RAM with over 31 GB available.
Code:
java set heapmax 16g
I have noticed that Stata tends to store strings extracted from SQL databases as strL even though the PostgreSQL storage format is varchar(15) - i.e. a varying number of characters with a maximum of 15. That applies to two variables. The rest are either integers or floating point numbers.
Incidentally, in case anyone queries it my system has 32 GB of RAM with over 31 GB available.
Comment