[users@httpd] Random latency in reentrant calls (Bug 57916)

2015-05-12 Thread Luc Andre
This issue was first submitted as a bug report but I was advised to use this mailing list instead. The problem occurs with an 'out of the box' configuration (tested on debian and windows) Our php web site requires sometimes a reentrant call (i.e. it calls file_get_contents(http://127.0.0.1/reentr

Re: [users@httpd] Random latency in reentrant calls (Bug 57916)

2015-05-12 Thread Dr James Smith
You are probably hitting child spin up issues... Out of the box apache uses a process per apache child... There is an overhead/delay when a child is initially spun up, and that is what you are possibly seeing... nginx works a different way - and can cope with a moderate number of "light" requ

Re: [users@httpd] Random latency in reentrant calls (Bug 57916)

2015-05-12 Thread Luc Andre
Thanks for your reply. We did a test on a powerful server with StartServers 20 MinSpareServers 5 MaxSpareServers 20 And we still have the issue... As you pointed out the logging happens after the request and we get the time at the beginning of the php script to m

Re: [users@httpd] mod_authz_dbd regression in apache 2.4.12?

2015-05-12 Thread Yann Ylavic
Hello Michel, On Mon, May 11, 2015 at 10:54 PM, Michel Stam wrote: > > I was tinkering over the weekend with mod_authz_dbd and mysql, and i could > not get a RequireAny/RequireAll to match on multiple Require dbd-group > statements. It would always match only the last result from the query, but

[users@httpd] Redirection single pages from subdomain to another subdomain htaccess

2015-05-12 Thread Michele Braccini
I'm working with a Wordpress Installation (WPML with 3rd level domain es.site.com, fr.site. com, en.site.com ) on LAMP. I need to redirect many pages from subdomain to a new subdomain (with .htaccess) Example: esp.site.com/oldpage -> es.site.com/newpage (different subdomain and different page na

Re: [users@httpd] Random latency in reentrant calls (Bug 57916)

2015-05-12 Thread Yann Ylavic
Hi Luc, can you please provide the corresponding error log (level debug)? There may be higher (overall) times spent, but still difference for the same % of requests. Regards, Yann. On Tue, May 12, 2015 at 10:03 AM, Luc Andre wrote: > Thanks for your reply. > > We did a test on a powerful serv

Re: [users@httpd] Random latency in reentrant calls (Bug 57916)

2015-05-12 Thread Rainer Canavan
2015-05-12 10:03 GMT+02:00 Luc Andre : > Thanks for your reply. > > We did a test on a powerful server with > > StartServers 20 > MinSpareServers 5 > MaxSpareServers 20 > > And we still have the issue... > To ensure that you don't hit the child spin up issue, you'l

Re: [users@httpd] Random latency in reentrant calls (Bug 57916)

2015-05-12 Thread Luc Andre
php_sapi_name: apache2handler Server MPM: prefork I tried StartServers 20 MinSpareServers 20 MaxSpareServers 20 And after restarting apache still have the issue but only after waiting about a minute between 2 tries. Then I did a "ps -ef | grep apache" and I

Re: [users@httpd] Random latency in reentrant calls (Bug 57916)

2015-05-12 Thread Luc Andre
My mistake, apache2.conf is overridden by /mods-enabled/mpm_prefork.conf sorry about that... On Tue, May 12, 2015 at 12:03 PM, Luc Andre wrote: > php_sapi_name: apache2handler > > > Server MPM: prefork > > I tried > > StartServers 20 > MinSpareServers 20 > Max

Re: [users@httpd] Random latency in reentrant calls (Bug 57916)

2015-05-12 Thread Yann Ylavic
So is it working as expected now? On Tue, May 12, 2015 at 12:07 PM, Luc Andre wrote: > My mistake, apache2.conf is overridden by /mods-enabled/mpm_prefork.conf > > sorry about that... > > > > > On Tue, May 12, 2015 at 12:03 PM, Luc Andre wrote: >> >> php_sapi_name: apache2handler >> >> >> Serve

Re: [users@httpd] Random latency in reentrant calls (Bug 57916)

2015-05-12 Thread Luc Andre
Yes, but I'm still very surprised that spinning a new process can take up to 2 seconds on a powerful server :-( On Tue, May 12, 2015 at 12:26 PM, Yann Ylavic wrote: > So is it working as expected now? > > On Tue, May 12, 2015 at 12:07 PM, Luc Andre wrote: > > My mistake, apache2.conf is overrid

AW: [users@httpd] Random latency in reentrant calls (Bug 57916) [wd-vc]

2015-05-12 Thread Bremser, Kurt (AMOS Austria GmbH)
Maybe it's a storage problem when paging space is allocated? Kurt Bremser AMOS Austria Newton was wrong. There is no gravity. The Earth sucks. Von: Luc Andre [landre3...@gmail.com] Gesendet: Dienstag, 12. Mai 2015 12:28 An: users@httpd.apache.org Betreff: Re: [use

Re: [users@httpd] Random latency in reentrant calls (Bug 57916)

2015-05-12 Thread Yann Ylavic
It's not the spawn per se that takes 2 seconds, but either the time to wait for a child process to accept the new connection (if all the children are busy and the max is reached), or the children maintenance code that sleeps (1 second) between loops (still creating children at once, exponentially,

Re: [users@httpd] mod_authz_dbd regression in apache 2.4.12?

2015-05-12 Thread Michel Stam
Hey Yann, You're welcome; would you mind cc'ing me on the devel mail? Cheers, Michel Stam > On 12 May 2015, at 10:09, Yann Ylavic wrote: > > Hello Michel, > >> On Mon, May 11, 2015 at 10:54 PM, Michel Stam wrote: >> >> I was tinkering over the weekend with mod_authz_dbd and mysql, and i c

[users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Rose, John B
Red Hat 7 Apache 2.4 We are using name based virtual hosts SSL configuration. Which is working except not for one of our ServerAlias that goes thru a load balancer Not using SSL works fine. We can access all these via the browser ... http://baseserver.sub.abc.com http://first.sub.abc.com http:

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Rich Bowen
On 05/12/2015 10:40 AM, Rose, John B wrote: Red Hat 7 Apache 2.4 We are using name based virtual hosts SSL configuration. Which is working except not for one of our ServerAlias that goes thru a load balancer Not using SSL works fine. We can access all these via the browser … http://baseserv

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Rose, John B
In Firefox we get the spinning "ConnectingÅ " indicator in the tab, and it never advances any further. On 5/12/15 11:27 AM, "Rich Bowen" wrote: > > >On 05/12/2015 10:40 AM, Rose, John B wrote: >> Red Hat 7 Apache 2.4 >> >> We are using name based virtual hosts SSL configuration. >> >> Which is wo

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Jack Swan
Occasionally we've had the spinning connecting problem here during some of our development. You might try clearing/deleting any certificates for that particular host in Firefox. Tools->Options - Advanced. Select View Certificates and delete/distruct the certs for that host. Maybe that'll wor

[users@httpd] Help - 2.2 to 2.4 migration onto new server failing

2015-05-12 Thread Jim Walls
Help! I have been running Apache 2.2 for quite a few years on an old Windows 2000 Server that recently died. I have a new Windows 2012 R2 server and trying to get Apache loaded on the new server. It seemed like a good opportunity to upgrade from 2.2 to 2.4 in the process so that is what I in

Re: [users@httpd] Help - 2.2 to 2.4 migration onto new server failing

2015-05-12 Thread Yehuda Katz
Which distribution are you using (a.k.a. where did you download from)? Is there anything in the apache error log? The first thing that comes to mind is make sure IIS is not running. - Y On Tue, May 12, 2015 at 12:55 PM, Jim Walls wrote: > Help! I have been running Apache 2.2 for quite a few

Re: [users@httpd] Help - 2.2 to 2.4 migration onto new server failing

2015-05-12 Thread Jim Walls
Binaries downloaded from: http://www.apachelounge.com/download/ Version 2.4 12 Windows 64 bit version (yes, I am running a 64 bit computer and OS. There is nothing at all in the Apache log except the original install log entry. I assume because the service never starts. IIS is NOT runn

Re: [users@httpd] Help - 2.2 to 2.4 migration onto new server failing

2015-05-12 Thread Yehuda Katz
Can you run httpd from the command line instead of as a service? - Y On Tue, May 12, 2015 at 2:25 PM, Jim Walls wrote: > Binaries downloaded from: > http://www.apachelounge.com/download/ > Version 2.4 12 Windows 64 bit version (yes, I am running a 64 bit computer > and OS. > > There is nothing

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Rose, John B
We gave that a try based on your recommendation, but it did not change the result. We are still looking for an answer. Thanks On 5/12/15 12:03 PM, "Jack Swan" wrote: > >Occasionally we've had the spinning connecting problem here during some >of our development. >You might try clearing/deleting

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Yann Ylavic
Probably a silly question, but, is first.abc.com accessible (dns, route, ...) from the client host? Regards, Yann. On Tue, May 12, 2015 at 9:12 PM, Rose, John B wrote: > We gave that a try based on your recommendation, but it did not change the > result. > > We are still looking for an answer. >

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Rose, John B
Yann All efforts appreciated. First.abc.com goes thru a load balancer http://first.abc.com Works fine. https://first.abc.com does not If I understand your question correctly. John On 5/12/15 3:40 PM, "Yann Ylavic" wrote: >Probably a silly question, but, is first.abc.com accessible (dn

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Yann Ylavic
Can you see the connection arrive, somehow timeout, and finally be logged on the Apache server? On Tue, May 12, 2015 at 9:53 PM, Rose, John B wrote: > Yann > > All efforts appreciated. > > First.abc.com goes thru a load balancer > > http://first.abc.com > > Works fine. > > https://first.abc.com >

Re: [users@httpd] Help - 2.2 to 2.4 migration onto new server failing

2015-05-12 Thread Jim Walls
Thank you for that suggestion. I had not tried running it except as a service, so I tried it remotely a moment ago. It did not do anything at all, and there was nothing in either the Windows logs or not Apache log. Since I have the server desktop in front of me, I will give the specific er

Re: [users@httpd] Help - 2.2 to 2.4 migration onto new server failing

2015-05-12 Thread Yehuda Katz
When you run httpd on the command line, there is no output. Start httpd on the command line and wait a minute to make sure it is done starting up, then open a browser to localhost and see if a page comes up. I have seen the "Incorrect function" error in two cases: 1. The port is already in use. Tr

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Rose, John B
It is not generating an entry in the Apache log files. Unless we have missed it. But we believe have looked thru them thoroughly. On 5/12/15 4:01 PM, "Yann Ylavic" wrote: >Can you see the connection arrive, somehow timeout, and finally be >logged on the Apache server? > >On Tue, May 12, 2015 at

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Yann Ylavic
Can't it be that the LB does not let the connection pass through? If the LB is not an SSL end point, it may block based on the Server Name Indication (SNI)? On the httpd side, maybe you could look at the network level if the connection with the client is established (netstat, tcpdump, ...). On Tue

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Rose, John B
It could be. We will check that next. SSL does not terminate at the LB. It terminates at the server. Or is supposed to. We don't have access to the LB config, so will have to ask those folks tomorrow. We will check netstat now. thanks On 5/12/15 5:13 PM, "Yann Ylavic" wrote: >Can't it be tha

Re: [users@httpd] Help - 2.2 to 2.4 migration onto new server failing

2015-05-12 Thread Jim Walls
Second reply to this suggestion. The first time I tried it not as a service, I did it from Windows Explorer, and nothing happened. I tried it again (as you suggested) from a command prompt. This time I got an error message that told me what was going on. The error message (and I'm not goi

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Rose, John B
We checked netstat -an while attempting the https thru the browser. It seems to be getting to the server. tcp0 0 xxx.xxx.xxx.xxx:443 yyy.yyy.yyy.yyy:35948 TIME_WAIT tcp0 0 xxx.xxx.xxx.xxx:443 yyy.yyy.yyy.yyy:36375 FIN_WAIT2 Etc. On 5/12/15 5:13 PM, "Yann Ylavi

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Eric Covener
On Tue, May 12, 2015 at 10:40 AM, Rose, John B wrote: > > and > Try using *:443 in the VirtualHost tag exclusively? - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h..

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Rose, John B
I may should have worded that we have tried each one of these individually. Not all at the same time. Have tried these .. and and On 5/12/15 5:37 PM, "Eric Covener" wrote: >On Tue, May 12, 2015 at 10:40 AM, Rose, John B wrote: >> >> and >> > > >Try using *:443 in t

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Yann Ylavic
You should then see "activity" with LogLevel debug, where does this leads? (Note regarding *:443, you indicated *.443 -with a dot- in the original message, was that a typo?) On Tue, May 12, 2015 at 11:32 PM, Rose, John B wrote: > We checked netstat -an while attempting the https thru the browser

Re: [users@httpd] SSL not working for ServerAlias through load balancer

2015-05-12 Thread Rose, John B
We will check in the morning. I am not sure about the typo, I cannot access it at the moment. Thanks again for your efforts. Sent from my iPad > On May 12, 2015, at 5:52 PM, Yann Ylavic wrote: > > You should then see "activity" with LogLevel debug, where does this leads? > > (Note regarding