Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible memory leak with latest release 1.0.9 #97

Open
abhansh-highlevel opened this issue Dec 16, 2024 · 1 comment
Open

Possible memory leak with latest release 1.0.9 #97

abhansh-highlevel opened this issue Dec 16, 2024 · 1 comment

Comments

@abhansh-highlevel
Copy link

We recently upgraded our authorizenet package from 1.0.8 to 1.0.9 due to getting empty undefined response in certain scenarios while attempting to charge a card.
Since we've updated the package we are having a memory leak in our services, where we are seeing a constant increase in memory until the service reaches the memory limit and crashes.

@nitin-ghl
Copy link

nitin-ghl commented Dec 17, 2024

We performed load testing on both Version 1.0.8 and Version 1.0.9 with 2,000 requests in a 5-minute span. The API tested was APIControllers.CreateTransactionController(createRequest.getJSON()) and below are the results

Base memory - 300MB

  • Version 1.0.9 - Initially, the memory usage spiked from 300MB to 1.4GB while processing the 2000 requests. After processing all the requests, the memory remained at 1.4GB and did not go down

  • Version 1.0.8 : Initially, the memory usage spiked from 300MB to 450MB while processing the 2000 requests. Once the requests were processed, the memory came down to 300MB

  • The first two lines in the below graph indicates the memory usage in 1.0.9 and the last line in the graph indicates the memory usage in version 1.0.8

image

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

No branches or pull requests

2 participants