High cpu usage when using 30+ threads
alphacasters last edited by
I have created a small twitch viewer bot which I have been working on for a few days now.
Everything works pretty good now, except for when using high number of threads it will eat CPU like crazy!
Processor Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz, 4001 Mhz, 4 Core(s), 8 Logical Processor(s)
Installed Physical Memory (RAM) 32.0 GB
I seen where using http client you can run up to 2k threads very efficiently.
So main question is would loading the twitch video player in HTML which requires FLASH actually work?
And also if it would not work is there anyway to decrease the CPU usage on the original script I made?
NickyOktavian last edited by
@alphacasters With browser it will usage CPU just like if you open 30 different browser on one machine or 30 firefox profile,. That why if just http client can handle up to 2k thread because without interface :)
Try to deny jpg,jpeg etc but HTML5 player or flash still fine.
Hope it will help you,
alphacasters last edited by alphacasters
Thank you for the reply!
Now I just have to figure out how to deny the jpegs and such I haven't found it yet :p
EDIT: FOUND IT :)
Antonio last edited by
How to optimize script - http://wiki.bablosoft.com/doku.php?id=how_to_optimize_script