Error:
root@server [~]# iptables -I INPUT -s <IP> -j DROP
iptables: Memory allocation problem

Sol:
If the failcnt value of numiptent in /proc/user_beancounters is greater than zero, increase the limit using:

vzctl set VPS_ID --numiptent NEW_BARRIER:NEW_LIMIT --save