project-error / pefcl

pefcl (PE-Financial) is a financial banking resource for FiveM written in TypeScript and React.
Other
61 stars 66 forks source link

Wierd error #122

Open Mat40 opened 1 year ago

Mat40 commented 1 year ago

Hi i have sometimes a wierd error, the script start normaly but after X minutes/hours script broke and i have this error image image

jellyton255 commented 1 year ago

Confirming this issue, it's incredibly annoying, it completely breaks the system and there are no obvious reasons for it occurring.

Mat40 commented 1 year ago

I have solve this problem by download source code then go to src>server>utils>pool.ts change from pool: { max: 5, min: 0, acquire: 30000, idle: 60000, }, to pool: { max: 350, min: 0, acquire: 220000, idle: 60000, },

And after this i have increased the connection setting on MariaDB as per below which I believe is excessively high but error never occur. Follow this link

max_user_connections=400 max_connections=800

mikkel20088 commented 1 year ago

I'm now also having this issue, now trying to build my own using Mat's method