2020年12月30日星期三

Is there a limit to the processing in which the event handler runs concurrently?

I am using NET CORE 3.1 and run a separate single-ton service in code.
If MQTT data occurs in the event handler when the service runs, registered an event that performs an action.

There is no problem with approximately 700 data per second.
However, as more than 700 cases of data occur, the memory usage gradually increases and the application shuts down.
(When the system memory limit is reached after approximately 2 to 3 hours. CPU utilization at this point 40-70%)

A memory leak is suspected, but it is still being processed even after no data has been generated.
If you stop generating data until all of the data is processed,
memory usage will gradually decrease and return to similarity to when the application first ran.

What I suspect is that there is a limit to the response in the event of an incident.
This is because when 5,000 data occurs, CPU utilization is not 100% and cumulative events are executed even if no event has occurred.

Is there a solution that handles a lot of data simultaneously in one event handler?

https://stackoverflow.com/questions/65516710/is-there-a-limit-to-the-processing-in-which-the-event-handler-runs-concurrently December 31, 2020 at 12:40PM

没有评论:

发表评论