Feedback
Did this article resolve your question/issue?

   

Article

SequeLink JDBC Socket error "java.lang.OutOfMemoryError: Java heap space"

Information

 
TitleSequeLink JDBC Socket error "java.lang.OutOfMemoryError: Java heap space"
URL Namesequelink-jdbc-socket-error-java-lang-outofmemoryerror-java-heap-space
Article Number000111544
EnvironmentProduct: SequeLink JDBC Socket Server
Version: 6.0
OS: All supported platforms
Question/Problem Description
SequeLink JDBC socket runs out of Java heap space when a large number of records are returned through the service.
The machine has a large amount of memory.
Steps to Reproduce
Clarifying Information
Error Message[DataDirect][ODBC SequeLink driver][ODBC2JDBC][ODBC Odbc2Jdbc driver][backenddriver]java.lang.OutOfMemoryError: Java heap space

The socket server log shows:
SWSOC_TypeInfoArray_Create: SQLFetch returned -1
SWANDB_Logon : TypeInfoArray_Create failed
socsrv.swsoc.12378.Internal error, fatal server error detected.
Defect Number
Enhancement Number
Cause
The application was bringing back all of the data at once, and the 32-bit JDBC socket server was running out of memory.
Resolution
Set SL_JAVA_OPTIONS=-Xms1024m -Xmx3072m in the Socket Service ServiceEnvironmentVariable settings.
If that does not resolve the error, configure the application to return the rows in blocks.
Workaround
Notes
It may be possible to use OpenAccess in third party mode which requires a small amount of code to be built.  (https://media.datadirect.com/download/docs/openaccess/alloa/help.htm#page/sqlengineguide%2Foverview-of-the-third-party-sql-engine-api.html)
Using the OpenAccess product may involve more cost.
Last Modified Date12/10/2018 7:07 PM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.