View Full Version : QuercusRuntimeException script timed out.

08-10-2009, 08:14 PM
I am working on a little web app that uses Resin. It consists of a simple php front-end that passes information to a java backend and then waits for the java to return an array of values. Generally, speaking this works well. The problem that I am running into is that some of the backend operations can take a very long time depending on the input. As such the script appears to time out when longer operations are run. The error I get is: 500 Servlet Exception [show] com.caucho.quercus.QuercusExecutionException: com.caucho.quercus.QuercusRuntimeException script timed out.

What can I do to extend the timeout time or keep it from timing out? Thanks.

08-10-2009, 09:34 PM
There's a php.ini value called "max_execution_time" that controls how long the script can run before it times out. The default is 10 minutes.

In your script you can all the ini_set like

ini_set("max_execution_time", 10 * 60);