Hi all, I am attempting to create a simple graph and I am receiving an error I have never received before, being:
I'm working with a dataset that contains 34 variables and 4 million observations. I am using Stata 17.0 on Windows 10. Here is the code I'm using to generate the graph:
I've read in other forums to increase the java heap size, which I have done to an extreme amount and I still run into issues. When I run
, I receive
The graph generates, but it appears the export is where the program has issues, as the file generated is 0 kb and blank.
I have generated plenty of other graphs with Stata but have never run into this issue before. If you have any advice or questions, let me know.
Code:
java.lang.OutOfMemoryError: Javaheap space
Code:
* Plot Mean Annual Pay
twoway (line mean_pay_MN yq, lcolor(ltblue)) (scatter mean_pay_MN yq, mcolor(ltblue)) ///
(line mean_pay_US yq, lcolor(red)) (scatter mean_pay_US yq, mcolor(red)), ///
xline(`xpos', lcolor(black)) ///
text(60000 `xpos' "MN Noncompete" "Ban Enacted", place(right) size(small) orientation(horizontal)) ///
xtitle("Year-Quarter") ///
ytitle("Mean Annual Pay") ///
legend(pos(6) order(1 "Minnesota Mean Pay" 3 "All Other States Mean Pay"))
graph export "$figures/sum_stats/mean_annual_pay.jpg", replace
Code:
java query
Code:
set java_heapmax 16384m
I have generated plenty of other graphs with Stata but have never run into this issue before. If you have any advice or questions, let me know.

Comment