Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Apache/PHP crash on concurrent calls for the same page


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Jul 1, 2015 3:00 PM Last Post By: Justin Wheelock Threads: [ Previous | Next ]
Justin Wheelock

Posts: 2
Registered: 5/25/13
Apache/PHP crash on concurrent calls for the same page  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 14, 2015 12:15 PM
Hey, I've come across a strange problem with HTML5 Builder output and/or hosting. We're making a web app using the server mobile page templates in H5B, but have discovered that if two connections to the server request the same page at about the same time, Apache crashes out with some relatively generic error message.

I can replicate this even with the most basic project: create a new server mobile page in a new project, drop in a MButton and MLabel onto the form (or leave it completely blank, same result), and don't even write any PHP code. Then if I run it just like that, and open the page in Firefox and Chrome, they both load fine. But then refresh both of them within about 1 second, and Apache crashes:

http://imgur.com/Pin133r

In the Apache error logs, this comes up as "Parent: child process exited with status 3221225477" and then it looks like the host restarting.

[Wed Jan 14 14:24:07 2015] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Wed Jan 14 14:24:08 2015] [notice] Apache/2.2.22 (Win32) PHP/5.3.6 configured -- resuming normal operations
[Wed Jan 14 14:24:08 2015] [notice] Server built: Jan 28 2012 11:16:39
[Wed Jan 14 14:24:08 2015] [notice] Parent: Created child process 7940
[Wed Jan 14 14:24:09 2015] [notice] Child 7940: Child process is running
[Wed Jan 14 14:24:09 2015] [notice] Child 7940: Acquired the start mutex.
[Wed Jan 14 14:24:09 2015] [notice] Child 7940: Starting 64 worker threads.
[Wed Jan 14 14:24:09 2015] [notice] Child 7940: Starting thread to listen on port 3573.

I'm currently using RAD Studio XE5's H5B install, with PHP version 5.3.6 and Apache 2.2.22 (which came in the install, and I haven't changed anything to my knowledge). Another developer has set up the same environment (PHP 5.3.6 & Apache 2.2.22, without H5B IDE) to deploy the output, and has the same problem with concurrent connections.

Has anyone seen this before or have any ideas?
Justin Wheelock

Posts: 2
Registered: 5/25/13
Re: Apache/PHP crash on concurrent calls for the same page  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 1, 2015 3:00 PM   in response to: Justin Wheelock in response to: Justin Wheelock
So this turned out to be a problem with the versions of PHP and/or apache that ship with H5B. You can fix the concurrency problem by installing your own recent versions, although then you get spammed with warnings as their [wiki says|http://docwiki.embarcadero.com/HTML5_Builder/en/Frequently_Encountered_Problems] . So you have to turn off PHP warnings if you don't feel like debugging RPCL source folder for modern PHP versions.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02