Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2013, 09:46 AM
Linuxhippy Linuxhippy is offline
Junior Member
 
Join Date: Jun 2013
Posts: 2
Default Long running CLI scripts abort with "QuercusRuntimeException: script timed out"

Hi,

I am using Quercus in CLI mode für a long-running script, however after a short period of time Quercus aborts execution, reporting the script timed out.

I've already tried without success to manually modify the parameter specifying the max execution time:
Code:
ini_set("max_execution_time", 0);
A similar issue seems to have existed in earlier versions of Quercus: http://bugs.caucho.com/view.php?id=2554
Any idea how solve this issue?

Thank you in advance, Clemens

Code:
 "main" com.caucho.quercus.QuercusRuntimeException: script timed out
	at com.caucho.quercus.env.Env.checkTimeout(Env.java:1294)
	at com.caucho.quercus.expr.CallExpr.evalImpl(CallExpr.java:212)
	at com.caucho.quercus.expr.CallExpr.eval(CallExpr.java:141)
	at com.caucho.quercus.expr.Expr.evalTop(Expr.java:540)
	at com.caucho.quercus.statement.ExprStatement.execute(ExprStatement.java:67)
	at com.caucho.quercus.statement.BlockStatement.execute(BlockStatement.java:105)
	at com.caucho.quercus.statement.TryStatement.execute(TryStatement.java:140)
	at com.caucho.quercus.statement.WhileStatement.execute(WhileStatement.java:75)
	at com.caucho.quercus.statement.BlockStatement.execute(BlockStatement.java:105)
	at com.caucho.quercus.program.Function.callImpl(Function.java:432)
	at com.caucho.quercus.program.Function.call(Function.java:345)
	at com.caucho.quercus.expr.CallExpr.evalImpl(CallExpr.java:228)
	at com.caucho.quercus.expr.CallExpr.eval(CallExpr.java:141)
	at com.caucho.quercus.expr.Expr.evalTop(Expr.java:540)
	at com.caucho.quercus.statement.ExprStatement.execute(ExprStatement.java:67)
	at com.caucho.quercus.statement.BlockStatement.execute(BlockStatement.java:105)
	at com.caucho.quercus.program.QuercusProgram.execute(QuercusProgram.java:414)
	at com.caucho.quercus.page.InterpretedPage.execute(InterpretedPage.java:90)
	at com.caucho.quercus.env.Env.executePageTop(Env.java:4309)
	at com.caucho.quercus.env.Env.executeTop(Env.java:4254)
	at com.caucho.quercus.env.Env.execute(Env.java:4229)
	at com.caucho.quercus.Quercus.execute(Quercus.java:200)
	at com.caucho.quercus.Quercus.execute(Quercus.java:175)
	at com.caucho.quercus.CliQuercus.main(CliQuercus.java:64)
Caused by: com.caucho.quercus.QuercusExecutionException: com.caucho.quercus.QuercusRuntimeException script timed out
	at com.caucho.quercus.env.Env.checkTimeout(Env.java:1294)
	at com.caucho.quercus.expr.CallExpr.evalImpl(CallExpr.java:212)
	at com.caucho.quercus.expr.CallExpr.eval(CallExpr.java:141)
	at com.caucho.quercus.expr.Expr.evalTop(Expr.java:540)
	at com.caucho.quercus.statement.ExprStatement.execute(ExprStatement.java:67)
	at com.caucho.quercus.statement.BlockStatement.execute(BlockStatement.java:105)
	at com.caucho.quercus.statement.TryStatement.execute(TryStatement.java:140)
	at com.caucho.quercus.statement.WhileStatement.execute(WhileStatement.java:75)
	at .createPostgresConnectionAndListen(/khbldb/typo3sync/TypoSync.php:146)
Reply With Quote
  #2  
Old 07-05-2013, 09:54 AM
Linuxhippy Linuxhippy is offline
Junior Member
 
Join Date: Jun 2013
Posts: 2
Default

Found a solution: Instead of specifying QuercusCli as main-class, I now specify com.caucho.quercus.Quercus - which allows setting config-parameters using the command line.

Therefor I now use the following command-line command to execute my long-running php script:

Code:
java -cp "*.jar" com.caucho.quercus.Quercus -d max_execution_time=2147483648 -f script.php
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:50 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.