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

Unreleased Timer Threads in File Connector Leading to High CPU Usage #4070

Open
sajith-madhusanka opened this issue Mar 7, 2025 · 0 comments
Labels

Comments

@sajith-madhusanka
Copy link

Description

The Timer threads created via the file lock mechanism of the file connector are not canceled upon undeploying the Carbon application. Instead, a new Timer thread is created each time the same Carbon application with the file connector configuration is deployed. Since a file lock timer thread is created per file connector configuration, this behavior leads to the accumulation of abandoned Timer threads, causing the thread count to increase and ultimately resulting in high CPU usage.

Steps to Reproduce

  • Deploy a Carbon application that uses file operations.
  • Invoke the service/API to trigger the file operation (need to trigger the file operation to create the file lock object).
  • Capture a thread dump and check for timer threads.
  • Redeploy the same Carbon application and invoke the service/API again.
  • Capture another thread dump and observe that a new timer thread is created without removing the older one.
  • Repeat the process multiple times and confirm that new timer threads continue to be created.

Version

4.1.0

Environment Details (with versions)

No response

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

No branches or pull requests

1 participant