Jump to content

Recommended Posts

HELP! I have been getting over 11,000 file requests per hour, that means Apache is working super hard on my shared server :( my home page used to have 69 connections on one load, I don't know how though, I did remove some images to bring that count down.

 

What can I do?

Link to comment
https://forums.phpfreaks.com/topic/149300-too-many-apache-connections/
Share on other sites

What's the big deal? I thought you had "unlimited"...

 

That was bandwidth... ;)

 

But... If I upgrade to a Private server, I get Unlimited Connections (Or what every Apache can handle).

 

And so far for 5 days

I have used this much: 508012.864 MB 

This much per day: 101602.573 MB 

And estimate of this much at the end of the month: 3149679.757 MB 

There is no such thing as unlimited anything, and anyone who claims to offer unlimited anything are overselling by the definition that overselling constitutes selling more than you have.

 

Let x be DreamHost's hard disk capacity/bandwidth/requests, and let y be the amount they are selling. To satisfy the "not overselling condition" then [tex]x\geq y[/tex]

[tex]\forall{x\in\mathbb{R}}, x<\infty[/tex]

[tex]y = \infty \Rightarrow x < y[/tex]

[tex]\therefore[/tex] DreamHost is overselling. QED.

 

Anyone who thinks otherwise fails at math.

 

I've said it before, and now I'll say it again. Do business with an honest host that makes it clear exactly how much you are and are not allowed to use.

But I love my host.

 

They are cheap, and I get lots of stuff.

 

I can:

 

- Modify my PHP to have custom PHP

- Get lots of bandwidth

- Get lots of file space

- Allowed to have a file sharing site (they said so)

- Install stuff

- Run crons at most every minute

- Lots more...

but in anycase, the problem sounds like you need to think about the site design.. do you even have cacheing ?

 

I want to, But I don't know how to add it.

 

And the home page rarely gets accessed (compared to: "/guest_images/.....").

 

It is access from all my saved images.

 

I have had 150,000 requests from there in 14 hours.

Shared hosting is meant for small sites. Any image hosting site is going to need space and bandwidth and connections to beat.

 

You are going to have to dish out money or monitor the images dished out. If you want the site to pay, add ad's and or ask for donations.

Here is what I have for cache control:

 

<FilesMatch "\.(gif|jpeg|jpg|png|php)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>

 

 

Using cache-control, will that not make a connection to the server/Apache?

 

Is that good?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.