Skip to content

grpc-js version 1.12.2, there is a phenomenon of memory growth after use #2870

Open
@moumou9215

Description

Problem description

Update to [email protected] Version, experiencing continuous memory growth issue

Reproduction steps

nodejs:
const grpc = require('@grpc/grpc-js');
const protoLoader = require('@grpc/proto-loader');

const packageDefinition = protoLoader.loadSync(
proto文件路径,
{
keepCase: true,
longs: String,
enums: String,
defaults: true,
oneofs: true,
},
);
const dataService = grpc.loadPackageDefinition(packageDefinition);

// The testProto() access is called in real-time and requests every 3 seconds
export const testProto= () => {
const grpcOptions = {};
const client = new dataService.DataMessage(URL, grpc.credentials.createInsecure());
return new Promise((resolve, reject) => {
client.getInfo(grpcOptions, (err, output) => {
if (err) {
reject(err);
} else {
resolve(output);
}
});
});
};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions