Open bubnenkoff opened 3 years ago
../../runtime/vm/thread_pool.cc: 299: error: Could not start worker thread: result = 22.
Does your application use multiple isolates for handling the requests? I was wondering if the app ended up creating too many threads and at this point has run out of resources to create more threads.
Only if pg_pool start them, i dont think that dart express do it.
Пн, 2 авг. 2021 г. в 21:24, Siva @.***>:
../../runtime/vm/thread_pool.cc: 299: error: Could not start worker thread: result = 22.
Does your application use multiple isolates for handling the requests? I was wondering if the app ended up creating too many threads and at this point has run out of resources to create more threads.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dart-lang/sdk/issues/46787#issuecomment-891238133, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRWNFVXB5RMTRL5TC3KDX3T23PHPANCNFSM5BNFXRTQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
Can you check number of threads being used by the dart server as it is running? (if on Linux you can use top
, on Windows - Resource Monitor
) See if it grows over time?
I am seeing only 4 instances of dart after 4 hours of work:
@bubnenkoff it would be interesting to see number of threads created by a dart process, because the error you saw might indicate that dart process created/accumulated too many of them.
Resource Monitor(normally %systemroot%\system32\resmon.exe
) should show that:
Currently (after ~3 hours of working) it's seems that not too much:
@bubnenkoff can you also check memory usage and handle count numbers? Additionally I'd suggest to trace the application using procmon
(https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) focusing on thread creation events to see if you can glimps why underlying CreateThread
fails.
I'm also facing this on a specific Windows device. When it's running the compile command, you can see the sharp increase with the memory usage by a single dart.exe
.
Platform and version: Windows 10 19042. Dart: 2.15.1 (stable).
I'm also facing this on a specific Windows device. When it's running the compile command, you can see the sharp increase with the memory usage by a single
dart.exe
.Platform and version: Windows 10 19042. Dart: 2.15.1 (stable). Hi team,
Is there any update regarding this issue? currently Im also facing this issue.
FLUTTER STABLE : 3.10.6 DART : 3.0.6
We have not been able to reproduce this issue or understand it's underlying cause - though we suspect it is an OOM situation.
If you are experiencing the issue consider helping us by recording a procmon trace and seeing if there any more information on the CreateThread
failure in the trace.
The server is getting SQL commands to handler and run the queries:
deps:
The server getting sql update commands and execute complete them. About 60 000 per hour. After few hours of working I am getting this crush. Same was on Dart 2.13.
https://github.com/dart-lang/sdk/issues/37155