Skip to content

High Memory usage due to Jenkins Client  #45

@robinbanga

Description

@robinbanga

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions