There may be several reasons for this behavior: If this web server processes requests from the external network, then with the increase in the amount of traffic, the load could increase, which led to an increase in the server response time. If your scripts use calls to external resources, then in this case the response time of your server may increase due to the low response speed of the external resource.
Improve this answer. AlexAvardo AlexAvardo 5 5 bronze badges. TCooper TCooper 3 3 bronze badges. The fact that it makes a whole minute makes me think the other tasks are rather slow.
We had almost this exact same issue last year. Raising the max children will only offset the problem to a later date. MonkeyZeus MonkeyZeus 1 1 silver badge 11 11 bronze badges. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta.
Now live: A fully responsive profile. Linked This is something I've always wondered: Why is PHP slower than Java or C , if all 3 of these languages get compiled down to bytecode and then executed from there?
I know that normally PHP recompiles each file with each request, but even when you bring APC a bytecode cache into the picture, the performance is nowhere near that of Java or C although APC greatly improves it. Edit: I'm not even talking about these languages on the web level. I am talking about the comparison of them when they're number crunching. Not even including startup time or anything like that.
Also, I am not making some kind of decision based on the replies here. PHP is my language of choice; I was simply curious about its design. Another big reason is PHP's dynamic typing. A dynamically typed language is always going to be slower than a statically typed language, because variable types are checked at run-time instead of compile-time. As a result, statically typed languages like C and Java are going to be significantly faster at run-time, though they typically have to be compiled ahead of time.
I'm guessing you are a little bit into the comparing of apples and oranges here - assuming that you are using all these languages to create web applications there is quite a bit more to it than just the language. And lots of the time it is the database that is slowing you down ;-. I would never suggest choosing one of these languages over the other on the basis of a speed argument. JIT compilation compiles the bytecodes down to native code that runs directly on the processor. Another idea might be that C and JAVA compilers can do some heavy optimisations at compile time -- on the other side, as PHP scripts are compiled at least, if you don't "cheat" with an opcode cache each time a page is called, the compilation phase has to be real quick ; which means it's not possible to spend much time optimizing.
One important thing, also, is that PHP is quite easy to scale : just add a couple of web servers, and voila! The problem you often meet when going from 1 to several servers is with sessions -- store those in DB or memcached very easy , and problem solved! As a sidenote : I would not recommend choosing a technology because there is a couple of percent difference of speed on some benchmark : there are far more important factors, like how well your team know each technology -- or, even, the algorithms you are going to use!
There is no way an interpreted language can be faster than a compiled language or even a JIT language under trivial conditions. Unless your test program consists of printing out "Hello Worlds" if you are concerned about speed, stick with C or Java. Depends on what you want to do. In some cases, PHP is definitely faster. Java or C might be slower in those cases though I didn't benchmark. I don't think they are comparable in a general manner. I think you need to take a task, which you could be accomplished with those three programming languages, and then compare that.
That is basically always what you should do when choosing a programming language; find the one that fits the task. Don't shape the task until it fits the programming language. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. You can browse through each function call via less as well. Run command:. Navigating the code few lines above, you can locate the actual URL being invoked:.
A Google search away, is the answer to your query :. WordPress checks whether your browser is up-to-date, and displays a notice if it is not i. Specific to this case, it is a WordPress behavior which calls its own API to check if your browser is up-to-date. Aside from slow curl function calls to remote services a. Typical mistake is running website cron tasks via curl invocation in crontab.
Simply rewrite cron to launch php interpreter directly, with argument set to the location of the cron file:. This site uses Akismet to reduce spam.
0コメント