Closed kansasturnpike closed 2 weeks ago
Here are the ODBC Trace logs if you want to review them 2024-11-13_odbc.log.gz
I believe I understand what is going on now. The cause of the heap memory issue was caused by the response payload being so large that it was filling up the memory. The reason for the immediate return when the timeout was set is because DB2 estimates the response time of a query and if that response is likely to exceed the limit set it throws an error immediately.
Describe your system
odbc
Package Version: 2.3.9Describe the bug Long-running requests cause container memory to increase until no more allocated memory is available and node throws memory error.
Expected behavior Memory should remain consistent and not increase until the query is returned from the DB.
To Reproduce Steps to reproduce the behavior:
Code ODBC service file:
Memory Error from console:
Additional context I have tried adding the
timeout
option to.query
, but that doesn't seem to be working as expected either. When adding{ timeout: 90 }
for a 90 second timeout, it kills the request almost immediately with an error message of:unixODBC info:
Docker Image Config: