LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-04-2005, 01:01 AM   #1
ovrload
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
TX bytes vs. httpd bytes


I'm getting a consistent disparity between the total bytes sent by Apache vs. the number of tx bytes reported by ifconfig. On one instance, httpd logs summed 1.7 GB delivered, while ifconfig tx bytes showed an increase of only 371MB. I realize the tx byte counters are 32-bits and wrap frequently but checking again on other days it's no different.

Compression by apache is also not the case. Also, adding just the 200 codes alone (certain deliveries) also add up to far more than what ifconfig reports. Taking snapshots of /proc/net/dev show the same as ifconfig. Any insight appreciated.

Oh, some info: CentOS 4.1, httpd 2.0.52, all traffic on eth0, nothing unusual.
 
Old 10-04-2005, 12:43 PM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Might Apache also be including byted through the loopback device?
 
Old 10-04-2005, 02:53 PM   #3
ovrload
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Tx bytes on lo: are very low, that's not it either. I think Apache is correct because I can verify files sizes that were served. Tx bytes to the kernel obviously isn't the same as total bytes going out the nic. The question lingers.
 
Old 10-12-2005, 05:19 PM   #4
ovrload
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Watching bytes counts for several days and seeing the same results, I've reached the conclusion that my server's output is being cached downstream.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
synaptic bytes mercutio Linux - Software 9 02-10-2006 05:51 PM
[C++] bytes streams Ossar Programming 1 06-17-2005 03:56 PM
How to retrieve bytes sent AzidStar Linux - Networking 5 03-01-2005 04:25 AM
extracting x bytes keyops Programming 4 05-30-2004 05:30 PM
1 block = ? bytes captainstorm Linux - Newbie 2 07-08-2003 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration