>> when I checked info command it still shows "used_memory_rss:
3319943168".
Well this is just the way most memory allocators work. Redis frees the memory,
but the memory allocator does not give the memory back to the system, that's why
the RSS remains high.
>> 1. If such a client disconnects its socket connection, Will it clean the redis-memory(Output buffer) then?
Yes ... but this is probably unrelated to your problem.
>> 2. Can we know the port number of such a client??
You can use the CLIENT LIST command for that.
>> 3. Also Can we flush client output buffer somehow??
Without closing the connection, I think it is not possible.
But again, this is probably unrelated to your problem.
Regards,
Didier.