It is creating 8K hash table for each queue. Since we have 4000 queues,it used 32MB. I wonder why the current code needs 1024 hash buckets, when maximum requests are only 256. And also, since you are makingrequest allocation dynamic, can you change this too ? Any issues here ?