LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2006, 12:35 PM   #1
mutsu
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Rep: Reputation: 0
apache server slow with images issue?


hi,

just curious about my apache webserver.
my setup is on slack10.
apache is configured for virtualhosting of 2 sites:

1)a registered domain name from yahoo but redirected to zoneedit to handle the dynamic ip from isp so i can host it on my linuxbox.

2)a domain name from dyndns configured to the dynamic ip from my isp
so i can host it on my linux box.

my isp does not block port80 but the residential cable internet line has a slower upload speed compare to the download speed.

i've also optimized my images in photoshop imageready so the download is reasonable.

my question is could improper configuration of httpd.conf cause this slow response time, unreasonably slow?

thanks,
mutsu
 
Old 08-07-2006, 01:26 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
First, make sure the delay is indeed coming from your Slackware Apache server. Load a page and then look at Apache's access_log and verify that all the REQUESTS are coming in in a timely manner. Your slowness could be because the requests are being delayed, which would have nothing to do with Apache. It can only deliver something quickly if it's ASKED quickly!

e.g., here is a snippet from my access_log. You can see the request for the initial page immediately followed by some requests for a few GIF's. Notice all the timestamps from the logfile are identical (meaning there was no delay in the REQUEST end of things).
Code:
127.0.0.1 - - [07/Aug/2006:12:18:27 -0600] "GET / HTTP/1.1" 200 4743
127.0.0.1 - - [07/Aug/2006:12:18:27 -0600] "GET /gifs/bkg-green.gif HTTP/1.1" 200 740
127.0.0.1 - - [07/Aug/2006:12:18:27 -0600] "GET /gifs/bb.gif HTTP/1.1" 200 1122
127.0.0.1 - - [07/Aug/2006:12:18:27 -0600] "GET /gifs/bbnav1.gif HTTP/1.1" 200 535
127.0.0.1 - - [07/Aug/2006:12:18:27 -0600] "GET /gifs/bbnav2.gif HTTP/1.1" 200 458
127.0.0.1 - - [07/Aug/2006:12:18:27 -0600] "GET /gifs/bbnav4.gif HTTP/1.1" 200 295
127.0.0.1 - - [07/Aug/2006:12:18:27 -0600] "GET /gifs/bbnav3.gif HTTP/1.1" 200 522
127.0.0.1 - - [07/Aug/2006:12:18:27 -0600] "GET /gifs/green.gif HTTP/1.1" 200 138
...
 
Old 08-14-2006, 12:38 AM   #3
mutsu
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Original Poster
Rep: Reputation: 0
haertig,

i just checked the log files and the time stamp showed large time difference between each sucessive file loads?

there are delays between request so it not caused by apache but something else?

if it's my isp, i see why they don't bother to block port80 cause it dirt slow on a residential line....

thanks
mutsu
 
Old 08-15-2006, 04:36 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Sorry, I lost track of this thread and didn't see your response from two days ago until just now.

If the requests are coming in to you delayed, it's not your webserver that's at fault. It could be your ISP, or it could be the connecting person's ISP, or it could be the connecting person's local computer, or it could be general network problems somewhere out there in the Internet. Who knows.

Your Apache installation can only serve up webpages as fast as it is asked for them. The only scenerio I can imagine whereby your Apache might be part of the problem is if your poor webserver machine is so loaded down that it can't even get around to logging the incoming requests in a timely manner. But I think you'd know if that was happening. You'd probably be typing things on your keyboard and noticing several seconds of delay before they were echoed to your screen. It would be dreadfully obvious that something really bad was going on with your machine.
 
  


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
apache slow, only fast when i check "Use a proxy server.... sabre81 Linux - Networking 1 08-05-2005 07:41 AM
Complex issue regarding ISO linux and drive images Javahulk Linux - Software 0 04-15-2005 04:24 PM
Slow loading of vBulletin images TheOneKEA LQ Suggestions & Feedback 2 03-15-2004 07:59 AM
no images on apache.. Keiseren Mandriva 0 03-08-2004 09:12 AM
apache loading images very slow ryanl Linux - Software 0 07-04-2003 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:12 AM.

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