Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hi I have weird problem with one of my applications (servers ), its suddenly starts to read socket and before it written back, the connection is closed this is what I see in my logs. Is there any tool in Linux centos that let me see what is happening in this time frame some tools to debug the network ?

share|improve this question
add comment

2 Answers

Use tcpdump or wireshark. tcpdump is a common packet analyzer that runs under the command line. Wirehark is GUI application.

Also you can use strace to trace system call.

share|improve this answer
add comment

Along with wireshark and tcpdump, you can also log everything through iptables. Depending on how your firewall is set up, a log rule would look something like "-A INPUT -j LOG"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.