Stack overflow errors on remote connectors (Data Virtualization)
You get a stack overflow error when browsing data on a remote data source.
Symptoms
You are browsing files on a remote data source and you get the following error:Java exception: ':java.lang.StackOverflowError'.Causes
You are browsing a large directory on a remote data source, which causes stack overflow errors.Resolving the problem
To solve this issue, increase the Java stack size per thread on the remote connector:
- Linux® and Mac systems:
- Add the following line to dv_endpoint.sh script
that you use to install the remote connector. Add the line after the START_PORT
definition line.
export JAVA_OPTS="-Xms256m -Xss4m"For more information on the dv_endpoint.sh script, see Installing a remote connector.
- Run the following command to stop the remote
connector:
./sysroot/killGaianServers.sh - Run the following command to start the remote
connector:
nohup ./datavirtualization_start.sh
The remote connector now runs with a 4M stack size per thread.
- Add the following line to dv_endpoint.sh script
that you use to install the remote connector. Add the line after the START_PORT
definition line.
- Microsoft Windows:
- Add the following line to dv_endpoint.bat script that you use to install
the remote connector. Add the line after the START_PORT definition
line.
set JAVA_OPTS=-Xms256m -Xss4mFor more information on the dv_endpoint script, see Installing a remote connector.
- Stop the remote connector by closing the command console on Windows.
- Run the dv_endpoint.bat file to start the remote connector.
- Add the following line to dv_endpoint.bat script that you use to install
the remote connector. Add the line after the START_PORT definition
line.