On-Rev / iRev: Maximum Script Execution Time

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dickey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 115
Joined: Wed Apr 08, 2009 11:54 pm

On-Rev / iRev: Maximum Script Execution Time

Post by dickey » Wed Feb 03, 2010 6:40 am

Hello All,

1. Is there a maximum execution time pre-configured in On-Rev for iRev scripts?

2. Is there a way to set the maximum execution time of an iRev script? Similar perhaps to the way it is done in PHP [eg. set_time_limit(0); ]

Any assistance, greatly appreciated.

Kind regards, Andrew

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Re: On-Rev / iRev: Maximum Script Execution Time

Post by Janschenkel » Wed Feb 03, 2010 4:57 pm

You should probably post this question on the dedicated On-Rev forum, rather than this generic forum.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

dickey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 115
Joined: Wed Apr 08, 2009 11:54 pm

Re: On-Rev / iRev: Maximum Script Execution Time

Post by dickey » Wed Feb 03, 2010 9:14 pm

Jan,

Just won a Coke for betting a colleague, that the first reply to this post would inform me that it is posted in the wrong place. A little unfair, but thanks (sincerely).

You are absolutely right, I apologise, and I have duplicated this post @ http://forums.on-rev.com/viewtopic.php?f=3&t=394.

I do however find the on-rev forum akin to a 'sleepy country town' compared with the 'big city' of these forums, and I equally find it more than a little weird that the On-Rev forum should not naturally fall within the structure of the main RunRev forum. It might create greater awareness of On-Rev for newbies stumbling upon Rev for the first time.

I am sure the Enterprise Users will one day experience some burnout from being compelled to watch two forums (runrev, on-rev), and two lists (use and for Enterprise customers improve). If Rev is say one of five tools you use, it can be time consuming. For the more experienced such as yourself, my guess is that there isn't much time in your world to keep tabs on the on-rev forum.

Perhaps I have it all wrong. Jan, thanks for posting.

Kind regards, Andrew

oliverk
Site Admin
Site Admin
Posts: 53
Joined: Mon Feb 27, 2006 2:16 pm

Re: On-Rev / iRev: Maximum Script Execution Time

Post by oliverk » Thu Feb 04, 2010 11:59 am

Hi Andrew,

iRev is set to allow 30 seconds execution time and 64mb memory. At the moment this can't be configured.

The execution is measured using CPU time, so in real-time its likely to be quite a bit longer than 30 seconds, depending on how CPU-intensive your code is.

I think the default apache timeOut is around 300 seconds, so its possible that apache may timeOut before iRev does.

Hope this is some help

Regards
Oliver
Oliver Kenyon
Software Developer
Runtime Revolution

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: On-Rev / iRev: Maximum Script Execution Time

Post by FourthWorld » Mon Aug 09, 2010 10:15 pm

Oliver referred only to "iRev" without specifying whether he meant on-rev.com or the RevServer engine, which has contributed to some misunderstandings related to his post. Since Oliver is no longer with RunRev, let me briefly clarify this in his absence:

Subsequent discussion on the use-rev list has confirmed that these limits only apply to the shared-hosting service at on-rev.com, as are common on such services and usually apply to all processes including CGIs, PHP, MySQL, and anything else running on the account.

30 seconds is a very long time for a server process to be running, and 64 MBs is a tremendous amount of memory to use on a shared system, so as with most shared-hosting services one can expect relatively few users to be affected by these limits.

For those who need to run more resource-intensive processes, the RevServer engine can be used on any dedicated host without such limits. Benchmarks show the performance of the RevServer engine to be on par with PHP in similar configurations, which is to be expected given the long history of similarly good performance from the older Rev CGI engine so many have been using reliably for more than a decade.

Andre Garzia, one of the more experienced server admins in the Rev community, has put together some notes on using server processes effectively which should alleviate the implications of those types of common limits even on many shared-hosting configurations:

"Spreading the load or why wise developers use asynchronous workflows"
http://andregarzia.com/async.irev
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply