This is all premature - SilverStripe simply should not be hitting your
server that hard.

Yes, the /assets/ folder should be writeable as well. SilverStripe
puts combined CSS and JavaScript files here. This has been identified
as a problem before (see 
http://silverstripe.org/general-questions/show/270501?start=8).

Regards

Hamish

On Aug 19, 10:01 pm, Adi <[email protected]> wrote:
> Pete, I just noticed the settings given there is what you already use. My
> bad.
>
> I think you would just need to lower down the values where you can balance
> CPU consumption and performance.
>
> I would say go ahead with these settings (under<IfModule prefork.c>) and see
> how the performance is, if you see a performance degradation increase the
> values closer to mediatemple recommended values incrementally.
>
> StartServers          5
> MinSpareServers       5
> MaxSpareServers      10
> MaxClients          30
> MaxRequestsPerChild   2000
>
> Also change these values
> Timeout 45
> KeepAlive On
> MaxKeepAliveRequests 200
> KeepAliveTimeout 3
>
> This will make sure that all client are served even if there is a delay
> sometimes. You should also use APC if you are not already using it.
>
>
>
> On Thu, Aug 19, 2010 at 3:15 PM, Adi <[email protected]> wrote:
>
> > Pete, a quick search revealed a mediatemple how to:
>
> >http://kb.mediatemple.net/questions/246/%28dv%29+HOWTO%3A+Basic+Apach...
>
> > If you scroll down you would find some tips to change the apache cofigs as
> > per your server type. Changing the configuration should not impact the
> > normal user at all in my view but if it does you would probably have to look
> > at putting nginx infront of apache at a later stage. But for now try
> > changing the configurations a bit as specfied by mediatemple, it should work
> > 99% of the times.
>
> > Thanks,
> > Adi
>
> > On Thu, Aug 19, 2010 at 2:58 PM, Pete Graham <[email protected]>wrote:
>
> >> Hi Adi,
>
> >> These are my current settings in httpd.conf which Media Temple
> >> recommended, would you say there inappropriate for this type of
> >> server/site?
>
> >> KeepAlive Off
>
> >> <IfModule prefork.c>
> >> StartServers 20
> >> MinSpareServers 20
> >> MaxSpareServers 50
> >> ServerLimit 500
> >> MaxClients 500
> >> MaxRequestsPerChild  4000
> >> </IfModule>
>
> >> <IfModule worker.c>
> >> StartServers 20
> >> MaxClients 500
> >> MinSpareThreads     25
> >> MaxSpareThreads     75
> >> ThreadsPerChild     25
> >> MaxRequestsPerChild  0
> >> </IfModule>
>
> >> From my understanding (correct me if I'm wrong) if I reduce these
> >> values then if the server gets many concurrent requests some users
> >> wont be served the page they requested.
>
> >> Thanks again,
> >> Pete
>
> >> On 19 August 2010 10:15, Adi <[email protected]> wrote:
> >> > Its pretty much a apache configuration issue then.
>
> >> > Look in your apache configuration file (httpd.conf in your case) and go
> >> down
> >> > change (backup current settings first) the following settings
>
> >> > StartServers          5
> >> > MinSpareServers       5
> >> > MaxSpareServers      10
> >> > MaxClients          30
> >> > MaxRequestsPerChild   2000
>
> >> > Then restart apache and watch top to see if everything is working fine.
> >> I am
> >> > pretty certain it would though if you still see issues revert to earlier
> >> > settings and message back here with those settings.
>
> >> > Thanks,
> >> > Adi
>
> >> > On Thu, Aug 19, 2010 at 2:34 PM, Pete Graham <[email protected]>
> >> wrote:
>
> >> >> Hi, thanks for all your help so far.
>
> >> >> Hamish, I've checked the permissions on the assets folder
> >> >> "assets/Uploads" is writable by apache, should "assets" be writable
> >> >> also?
> >> >> I've been looking in the error logs, it seems to contain mainly "File
> >> >> not found" errors for missing graphics and some php notices for
> >> >> variables missing in wordpress views (the site has a wordpress and
> >> >> silverstripe installation the client wants to move to just
> >> >> silverstripe), I wouldn't expect these to cause the server any
> >> >> significant issues.
>
> >> >> Adi, this is the type of server we're using
> >> >>http://mediatemple.net/webhosting/nitro/(client chose the hosting,
> >> >> personally I don't rate Media Temple). Restarting Apache does fix the
> >> >> problem.
>
> >> >> Pete
>
> >> >> On 19 August 2010 09:32, Adi <[email protected]> wrote:
> >> >> > Are you running on a VPS or dedicated server? This seems like a
> >> apache
> >> >> > configuration issue.
>
> >> >> > If you can confirm I think i can point you to some more information.
> >> >> > Also you should see if restarting apache fixes this porblem
>
> >> >> > -
> >> >> > Adi
>
> >> >> > On 8/18/10, Pete Graham <[email protected]> wrote:
> >> >> >> Hi everybody,
>
> >> >> >> I have a live SilverStripe site that I'm experiencing major problems
> >> >> >> with. After the site has been running for a while it starts spawning
> >> >> >> multiple httpd processes, some taking up huge percentages of the CPU
> >> >> >> (these can be seen using top). The site progressively become more
> >> and
> >> >> >> more unresponsive returning 500 errors for requests.
>
> >> >> >> At first I thought this was most likely to be an server
> >> >> >> misconfiguration, but the apache setup seems fine. Strangely I've
> >> >> >> noticed that running ?flush=1 on the site gets rid off the spawned
> >> >> >> httpd processes and the servers response time returns to expected
> >> >> >> levels.
>
> >> >> >> Does anyone have suggestions about what exactly is happening here?
> >> >> >> This suggests to me that something is going wrong with the
> >> >> >> Silverstripe caching process. Does flush=1 clear just the cached php
> >> >> >> files or does it perform other tasks also?
>
> >> >> >> The site has low to medium traffic and is on fairly hefty dedicated
> >> >> >> server so should be able to handle the load easily.
>
> >> >> >> Any assistance would be greatly appreciated.
> >> >> >> Pete
>
> >> >> >> --
> >> >> >> NZ PHP Users Group:http://groups.google.com/group/nzphpug
> >> >> >> To post, send email to [email protected]
> >> >> >> To unsubscribe, send email to
> >> >> >> [email protected]<nzphpug%[email protected]
> >> >> >>  >
>
> >> >> > --
> >> >> > NZ PHP Users Group:http://groups.google.com/group/nzphpug
> >> >> > To post, send email to [email protected]
> >> >> > To unsubscribe, send email to
> >> >> > [email protected]<nzphpug%[email protected]
> >> >> >  >
>
> >> >> --
> >> >> NZ PHP Users Group:http://groups.google.com/group/nzphpug
> >> >> To post, send email to [email protected]
> >> >> To unsubscribe, send email to
> >> >> [email protected]<nzphpug%[email protected]
> >> >>  >
>
> >> > --
> >> > NZ PHP Users Group:http://groups.google.com/group/nzphpug
> >> > To post, send email to [email protected]
> >> > To unsubscribe, send email to
> >> > [email protected]<nzphpug%[email protected]
> >> >  >
>
> >> --
> >> NZ PHP Users Group:http://groups.google.com/group/nzphpug
> >> To post, send email to [email protected]
> >> To unsubscribe, send email to
> >> [email protected]<nzphpug%[email protected]
> >>  >

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to