What kind of file are you uploading and what are you doing with it?
Dec 26, 2022
6
Level 1
100CPU usage AFTER file uploaded with Octane
What's the problem:
I'm using laravel/framework 9.19 + octane 1.3 + swoole 4.8.2 for my application.
When I upload a large file, two PHP processes increase the CPU usage to 100%, and it won't decrease after the file upload is completely finished, unless I restart the octane service.
I used chunked upload and merge in the process above, the total size of those files are almost between 5m and 10m.
What I've done for it:
- barryvdh answered a farmiliar question long time ago, that's because octane writes every thing using debug level
SWOOLE_LOG_INFOunderlocalenv. I change that toSWOOLE_LOG_ERRORin config/octane.php and there's no more increase toswoole_http.log, but the CPU usage still up to 100%.
Please or to participate in this conversation.