Koozali.org: home of the SME Server

Apache on SME 5.6

Syl20

Apache on SME 5.6
« on: September 08, 2003, 06:50:04 PM »
Hello,

We did our migration from IIS to Apache on SME 5.6 U4 over the weekend. I thought it would b as fast or even faster, we run on brand new dell blade 3.0Gz 512 RAM. Is there someone who can recommend me some tuning so we can handle our very busy site.

Thanx a lot in advance

Dan Brown

Re: Apache on SME 5.6
« Reply #1 on: September 08, 2003, 07:20:16 PM »
Well, I don't know much about performance tuning, but you haven't given much information to work with.  Are you seeing poor performance?  In what way, and by what metric?  What type of pages are you serving?

Syl20

Re: Apache on SME 5.6
« Reply #2 on: September 08, 2003, 08:43:36 PM »
We at Kitco.com, are hosting static pages and perl scripts, we got an average of 400000 hits an hour in peak time. Sunday night, I increase

/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/45Limits to MaxClients 250 MaxRequessPerChild 200
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/45ServerPool
to MinSpareServers 50 MaxSpareServers 400 and StartServers 80

it was running smooth till the peak of this morning

This morning I had feel the heat, our response time was poor almost 15 second before having a static page.Unfortunately for me, I had to switch it back to IIS cause I had failed to make it work.

I will have to think about what I did wrong

It a sad day for me

Guck Puppy

Re: Apache on SME 5.6
« Reply #3 on: September 08, 2003, 10:02:41 PM »
Would installing mod_perl be of use? Save you having to start a new perl interpreter for each script eh?

G

Syl20

Re: Apache on SME 5.6
« Reply #4 on: September 08, 2003, 11:11:19 PM »
Yes mod_perl is in our plan and It's gonna accelerate our perl stuff,

But at the moment I try to get back on e-smith with what was working well yesterday night. All page load without error and was fast

Under peak time, it rush

400000 hits an hour / 3.0G0 Bandwith


under tail -f /var/log/httpd/error_log I see nothing special except SUexec message once in a while

under tail -f /var/log/httpd/access_log it fly

top show 96% availability and a bunch of httpd process

The server seems like sleeping , and as soon as I switch back to IIS :-(
all the web site run smooth

Thanx for the suggestion of mod_perl, I really want to make it work faster than our IIS box

What the hell...

Paul T.C.Fung

Re: Apache on SME 5.6
« Reply #5 on: September 08, 2003, 11:33:49 PM »
I have the same experiance to work on teh SME 5.5 version. I guess it may be the "KeepALice" problem I have ran into last time.

Try to turn it off in "/etc/e-smith/templates/etc/httpd/conf/httpd.conf/45KeepAlice"

Also, it may have some relation with the MySQL process ikf it is involved.

I have a server having 2,090,000 hits per day and it run smooth.  Just having some Log file problem, and after I have change the setting to rotetelog once 2 days a time it keep the good work running well.

Hope this will help.

Best Regards,

Paul T.C.Fung

Ergin

Re: Apache on SME 5.6
« Reply #6 on: September 10, 2003, 01:25:24 AM »
Check out the following link

http://phplens.com/lens/php-book/optimizing-debugging-php.php

You will find tuning info about Apache & PHP.

Syl20

Re: Apache on SME 5.6
« Reply #7 on: September 11, 2003, 04:38:13 AM »
Thank you for all your suggestions,

Unfortunately I still need help as our site remain on IIS till I can fix our isssue.

We are using SME 5.6U4 on Dell Poweredge Blade

what I do not understand actually is why cant I acces our web site even by the IP address, it ping it but the requested url could not be retreived.  Internally by using the address IP, i can see the site OK, but externally, I cant get the site at all, before it was slow, now it's worse

I test the cable and the ip with a second blade on red hat and it work fine, no ip conflict and no firewall issue ahead. I thought the dual ethenet pci-x card was faulting but even with Intel Pro100+ I get the same result. It's strange. I updated to 6.0 beta 3 and no difference I can get from internal IP addres but not from external IP address, I use some contribs like service, monitor, freetds(connect to mssql DB), dev-tools from contribs, that's about it.

Also, after I try the internal ip for the site, and got there succesfully, I went to see what's in the httpd/error.log
I can see these following message:  

[notice] Accept mutex: sysvsem (Default: sysvsem)
[notice] Cought SIGTERM, shutting down
[notice] Apache configured -- resiming normal operation
[notice] suEXEC mechanism enable (wrapper:/usr/sbin/suexec)



Help would be very appreciate.

Thanx a lot for your precious time

Syl20

Re: Apache on SME 5.6
« Reply #8 on: September 11, 2003, 05:01:12 AM »
Just want to confirm this

I can ping www.google,ca from the command line.
My domain is xxx.com point to an ibay accessible from the entire internet no password, cgi is enable, All look good in hostname and addresse

I have those entry in custom template

50DirectoryIndex00 = Index.html ....html ...shtml...cgi.. Index.pl
80AddHandler15  = Addhandler cgi-scripts = .pl
80AddHandler20  = Addhandler Server-parsed = .html
80AddHandler15  = Addhandler Server-parsed = .stm

also I had ExecCGI in the template 90e-smithAccess10primary as we have some script there, and a special scriptaliases under 93Scriptalias01

then
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
service httpd restart

I can see them ok in the /etc/httpd/conf/httpd.conf

Thanx

Paul T.C.Fung

Re: Apache on SME 5.6
« Reply #9 on: September 11, 2003, 08:43:03 AM »
What is the result if you issue the commange "Service httpd status" ??

I guess the httpd is down......  I have a case like this before.....

And even s few time just have the httpd-admin down and all other service running fine.....

Best Regards,

Paul T.C.Fung

Syl20

Re: Apache on SME 5.6
« Reply #10 on: September 12, 2003, 08:24:24 PM »
Paul T.C.Fung wrote:
>
> I have the same experiance to work on teh SME 5.5 version. I
> guess it may be the "KeepALice" problem I have ran into last
> time.
>
> Try to turn it off in
> "/etc/e-smith/templates/etc/httpd/conf/httpd.conf/45KeepAlice"
>
> Also, it may have some relation with the MySQL process ikf it
> is involved.
>
> I have a server having 2,090,000 hits per day and it run
> smooth.  Just having some Log file problem, and after I have
> change the setting to rotetelog once 2 days a time it keep
> the good work running well.
>
> Hope this will help.
>
> Best Regards,
>
> Paul T.C.Fung

Dear Paul,

I turn off KeepAlive
Did you have to increase 45ServerPool or 45Limits

I have try with MaxClients up to 256 and MaxReaquestChild up to 400 and it did not survive our morning peak time. Around 8h30, I can see our IIS server handling more than 9000 connections at the time.

Could an Apache Guru help me understanding what is going on and offer a suggestion to handle very big load on Zeon 3.0Ghz and 1 Go of Ram Dell blade.

Thank you