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

Multiple mysql "active" connections #1201

Closed
lcnvdl opened this issue Jan 12, 2023 · 2 comments
Closed

Multiple mysql "active" connections #1201

lcnvdl opened this issue Jan 12, 2023 · 2 comments
Labels

Comments

@lcnvdl
Copy link
Contributor

lcnvdl commented Jan 12, 2023

Version of FoalTS: 2.9.0

image

Hi! I've been testing my foal-ts microservices on a kind of "production" environment. I'm connecting each service with a MySQL database.

The problem is the next: There are lots of open connections to the database (now I have 57 connections after reboot the server), when in reality few services (7) are running.

I'm using FoalTS with Typeorm.

Thanks in advance.

@lcnvdl lcnvdl added the bug label Jan 12, 2023
@LoicPoullain
Copy link
Member

I feel like connections are not closed when the server shuts down. Maybe the solution would be to add something like process.on('exit', () => myConnection.close()) ?

@LoicPoullain
Copy link
Member

I'm closing this issue as there as has been no activity since the last message. Feel free to comment back if you still need help on this. 👍

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

2 participants