Zubrag.com
January 17, 2018, 08:17:25 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Problems with load stability and large images  (Read 12632 times)
kingoffa21
Newbie
*
Posts: 2


« on: June 29, 2007, 01:28:29 PM »

I've incorporated your script into my search results, it works great most of the time. I run into problems with iecapt.exe crashing under normal load (10 image requests a second) this will eventually cause the cease of all thumbnail operations, if I manually end the stalled iecapt tasks while the server is being hammered it will continue to function without fail, I would like to know how to kill a stalled iecapt, or even just put a max execution time limit on it of 30 secs or less.
I would also like to know how to load a "image not available" image for requests taking longer than 5 secs and for requests that fail thumbnail generation or delivery.

Thanks for your help. This is a great script I hope to be using it in prime time very soon.
-Jay

Logged
zubrag
Administrator
Hero Member
*****
Posts: 785


WWW
« Reply #1 on: June 29, 2007, 03:21:31 PM »

Interesting questions. Doubt it is possible to set timeout for external programs from php. Will try and post update later.
Logged
kingoffa21
Newbie
*
Posts: 2


« Reply #2 on: June 30, 2007, 03:54:53 PM »

I found a python script called timed_run.py that has to be used in cygwin, it looks like it could call the iecapt.exe and then end it if it dosent complete in 30 secs.
can you help me implement this?
thanks,
Jay
Logged
zubrag
Administrator
Hero Member
*****
Posts: 785


WWW
« Reply #3 on: July 02, 2007, 07:40:04 AM »

IECapt uses Internet Explorer to capture a web page. I believe we can achieve what you need by setting IE time out (did not have time to try yet).

Default timeout in IE is about 5 minutes. To alter the timeout use registry editor.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

On the Edit menu, Add Value name ReceiveTimeout, as a type REG_DWORD. In the DWORD Editor, set the Decimal Radix. Enter the timeout in milliseconds.

Example: To set a 6 minute timeout, enter 360000 (6 minutes = 6 * 60 Seconds =  6 * 60 * 1000 Milliseconds).

Note: you will most likely need to shutdown and restart computer for this change to take effect.
Logged
PERSIAN
Newbie
*
Posts: 7


« Reply #4 on: December 25, 2008, 11:09:26 AM »

......
I would also like to know how to load a "image not available" image for requests taking longer than 5 secs and for requests that fail thumbnail generation or delivery.
......

try to change this line:if (!file_exists($cached_filename)) {
  die("Thumbnail Generation Error. Thumbnail not created.");
}


to:
if (!file_exists($cached_filename)) {
  die("<img src=\"your_image.gif\" width=\"100\" height=\"30\">");
}


or if you use database type juse use if (!file_exists

 Roll Eyes
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC