Jenkins.NET
Jenkins.NET copied to clipboard
High Memory usage due to Jenkins Client
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 ?
@petelopez @null511 Waiting for your quick reply as i need to solve high memory usage quickly on PROD