Commands to check Resource usage on Linux
-- Check memory

free -m

cat /proc/meminfo

vmstat -s

top

-- Check Number of CPUs
cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l