SAP / node-rfc

Asynchronous, non-blocking SAP NW RFC SDK bindings for Node.js
Apache License 2.0
249 stars 73 forks source link

Node Js server crashes after a few RFC calls #326

Open mindlogical opened 1 month ago

mindlogical commented 1 month ago

Hi @bsrdjan
After multiple RFC calls the node server crashes automatically without throwing any error. I am using ubuntu 20.04 and the SDK is Linux on X86_64 64 bit with node version 16.10.0 and node-rfc 2.7.1 on the server and in my local environment I am using windows, node version 16.10.0 and node-rfc 2.7.1.

I have tried the remedies mentioned in the posts https://github.com/SAP/node-rfc/issues/189 and https://github.com/SAP/node-rfc/issues/152 but my issue remains as such.-

I am using the pool to acquire connection:- this.pool = await new noderfc.Pool({ connectionParameters: connParams, clientOptions: {stateless:true}, // optional poolOptions: { low:50, high:1200 }, // optional }); this.client = await this.pool.acquire();

and also closing them after rfc calls using

const res = await this.client.call('RFC_NAME',{ID:userid},{timeout:20});

await this.pool.release(this.client);

Could you please suggest me if I should do anything differently to fix the issue.