Jenkins.NET icon indicating copy to clipboard operation
Jenkins.NET copied to clipboard

High Memory usage due to Jenkins Client

Open robinbanga opened this issue 3 years ago • 1 comments

Hi Team

Thanks for creating such a useful library which was easily integrated with .NET code..

I am using it however post PRODUCTION deployment i can see high memory usage on servers. I am having different - different Base URL based on job name and creating client every time when my code is getting invoked.

var client = new JenkinsClient { BaseUrl = jenkinsBaseUrl, UserName = username, ApiToken = token };

I can't make it static as i create BaseURL dynamically and each client can have different base url.

What is the best practice here for better memory utilization , do i nullify this object in finally block ?

robinbanga avatar Aug 11 '21 18:08 robinbanga

@petelopez @null511 Waiting for your quick reply as i need to solve high memory usage quickly on PROD

robinbanga avatar Aug 11 '21 18:08 robinbanga