LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-14-2007, 04:04 PM   #1
nkoplm
Member
 
Registered: May 2005
Distribution: Fedora
Posts: 92

Rep: Reputation: 15
my webserver is slow... but not.


I have a home server running in my basement: apache 2.x, FC5.

When I access www.mywebsite.com from the web, it always loads slowly, but the thing is, it does not seem to just be a slow connection... I'm not really sure what is going on.

My site has a good number of thumbnails and images, and when they load they download fast, but they download in groups. I will have 5 to 10 images download in less than a second, then there will be a 2 or three second gap, then I will get another 5 to 10 images in under a second. then more lag... and so on. it takes 15 or 20 seconds for my small site to load

I've tried the usual suspects like moving to a static page from the dynamic php/sql one, optomizing the image size in photoshop, etc, but i think my connection settings need some tweaking or something.

what can i do to speed up the loading of my site?
help!

Last edited by nkoplm; 04-14-2007 at 04:08 PM.
 
Old 04-14-2007, 05:06 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
If you are using Firefox:

Increase your cache size. Go to menu Edit->Preferences, then click on the Advanced button at the top, then click on the Network tab. Set the cache size to 500MB. This prevents periodic stalling, as Firefox's cache garbage collection appears brain damaged.

To keep the cache under control, click on the Privacy button at the top of the Preferences dialog, then check "Always clear my private data when I close Firefox" and uncheck "Ask me before clearing private data". Then click the Settings button, and make sure everything except Cookies and Saved Passwords is checked. Click the OK button and then the Close button.

To further speed up browsing, enter "about:config" in the web page address, and hit enter. In the Filter line at the top, enter "pipe" and hit enter. Double-click on "network.http.pipelining" to set it to "true". Double-click on "network http.pipelining.maxrequests" and set the value to 64. Click the OK button, and then close all web browser windows. This will allow Firefox to make multiple requests per connection to the web server, instead of sending them one at a time.

The changes will take effect the next time you start Firefox.
 
Old 04-14-2007, 05:06 PM   #3
anon104
Member
 
Registered: Apr 2007
Posts: 31

Rep: Reputation: 15
First, see if it is a connection problem or not. If you can, access the page from the local intranet. If it loads slow, then probably it's your computer. Dude, are you sure your 80 and 8080 ports are open for mapping? Again, if you're using an ADSL connection, then the download/upload ratio is very big, this means you have a low upload speed. Try to run as few background tasks and daemons as you can. How about running it without the X server started?
 
  


Reply



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
Suse 9.2 & SATA - Slow, Slow, Slow jess1975 SUSE / openSUSE 6 01-28-2007 12:17 PM
New Fedora Internet connection slow slow slow matrim Fedora 9 07-29-2005 01:39 PM
Webserver Wireless SLOW! Gear_freak2000 Linux - Newbie 1 02-09-2004 09:12 AM
webserver is very slow. why? afrodocter Linux - Networking 8 12-15-2003 10:43 PM
Can't see WebServer from outside... Can see WebServer locally as http://localhost friddick Linux - Networking 13 08-19-2003 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:43 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