Resource Load Tips and Tricks
- Redirect dynamic page to static page if resource issues arise from high traffic to a single Webpage
- sar -q
- top -c
- netstat -antp
- lsof -itcp
- lsof -i :80
When you see the PID that is connecting to a remote port 80 rather than accepting a connection to local port 80, use lsof -p on that pid number to find the working directory of it.
Security
Check if we support insecure SSLv2:
openssl s_client -connect 127.0.0.1:443 -ssl2
Check for outbound connections to remote port 80
netstat -atnp |awk '$5 ~ /80/ {print $0}'
The script above this line uses regex to search for "80" within the 5th column of the `netstat -atnp` command output
netstat -atnp |awk '$5 ~ /80$/ {print $0}'
Will do the same, making sure the string search looks for "80" at the end of a string
netstat -atnp |awk '$5 ~ /:80$/ {print $0}'
Will do the same, making sure the string search looks for "80" at the end of a string AND is preceded by a colon.