I have changed the values in limits.h for open files from 1024 to 2048. Now for this to take effect, I found that the kernel has to be recompiled.
When I give make config i get the following error
make: *** No rule to make target `config'. Stop.
How to recompile the kernel for this limit increase? (i do not want explanation on increasing soft limit in file-max)