setMaxScriptsOnStack
void session.setMaxScriptsOnStack ( int maxScriptsOnStack ) (enterprise edition only)
Description
Get the total number of scripts that can be running concurrently. Default value for maxScriptsOnStack is 50.
Parameters
- maxScriptsOnStack Number of scripts to be allowed to run concurrently, as an integer.
Return Values
Returns void.
Change Log
Version | Description |
---|---|
5.0 | Added for enterprise edition. |
Before you start upping the value of the number of scripts that can be on the stack you should make sure that your scrape is not eating more then it should. One thing to consider is recursion instead of iterating. This is discussed in more details on our blog or in the Tips, Tricks, and Samples section of this site.
Examples
Allocate More Resources to Scrape
// Allow for 100 scripts (instead of 50)
session.setMaxScriptsOnStack(100);
session.setMaxScriptsOnStack(100);
See Also
- getMaxScriptsOnStack() [session] - Gets the maximum number of scripts allowed on the stack
- getNumScriptsOnStack() [session] - Gets the number of scripts currently on the stack
scraper on 07/16/2010 at 5:19 pm
- Printer-friendly version
- Login or register to post comments