We are using this with a setting of offload-threads = 2
Basically for each worker, there are also two extra threads that will server static files for you. Each of these threads can handle multiple requests simulataneously (ie. serving files does not block).
I'm guessing the most effective way to optimize css/js etc would be doing the following instead of trying to increase the RAM/ other server resource allocation.
- don't serve standard library stuff yourself (eg: jquery)
- put all your own js into a single js file that will be minified, served once and cached (instead of having multiple requests to many static resources)
If you are using django, check out django-compressor for a magic way to do this!