In my node.js application, I use JDBC to connect to an Oracle database. I need to increase java heap space to prevent the following error:
java.lang.OutOfMemoryError: Java heap space
I know that there is a terminal option for setting the maximum heap size for Java ( -Xmx<size>), but the problem is that I do not explicitly run java, this happens inside my JDBC module (which depends on java module ), so I can not use this terminal option .
So how can java heap size be adjusted in my case?
source
share