friends-of-reactphp / mysql

Async MySQL database client for ReactPHP.
MIT License
331 stars 66 forks source link

Memory leaks on a huge amount of requests #192

Open Ispolin08 opened 4 months ago

Ispolin08 commented 4 months ago

Hi. I have around 500 coroutines which is performing INSERT sqls around 200qps. I have memory leak in this function. If I comment the query call everything became ok. I am new in async stuff, could you give me some advice how to fix it?

I don't need to use any then and etc. Just parrallel inserts. Unsets and gc already done but didn't help.

Thanks a lot!

yadaiio commented 4 months ago

Thanks @Ispolin08 for bringing this up, definitely an interesting one.

As I talked with @SimonFrings about your question, there are no known memory leaks in our project. If you think you found one anyway, we need more information in order to confirm this. Can you share some of your output that makes you believe this is a memory leak and maybe the part of your code where this occurs. It would also be helpful to have some additional tests to reproduce this behavior. Is this something you can look into?

FYI: There are similar questions asked in #179 or #173.