synopse / mORMot2

OpenSource RESTful ORM/SOA/MVC Framework for Delphi and FreePascal
https://synopse.info
Other
485 stars 122 forks source link

Very high CPU consumption in 2.1.5808 #218

Closed avavdoshin closed 10 months ago

avavdoshin commented 10 months ago

Hello, Arnaud.

I update mormot from 2.1.5794 to 2.1.5808 for my server app (fpc 3.3.1 / win64) and CPU consumption for server app is 25-30% after any client connected The same project, but mormot 2.1.5794 - server app CPU consumption is about 3-6%

Can you please check what is broken with update?

synopse commented 10 months ago

I am currently fixing this issue.

See https://synopse.info/forum/viewtopic.php?pid=40273#p40273

avavdoshin commented 10 months ago

Thank you. I'll be waiting

synopse commented 10 months ago

Please try with the latest commits.

Note that https://github.com/synopse/mORMot2/commit/060d5be0 is also critical to include: it avoids a rare - but observed - race condition which could exhaust all working threads of the async server. Seems pretty stable now.

See https://synopse.info/forum/viewtopic.php?pid=40277#p40277

avavdoshin commented 10 months ago

Fixed completely with 2.1.5812. Thank you!