Statistica Processes for WebStatistica Running Jobs

Statistica Processes for WebStatistica Running Jobs

book

Article ID: KB0077794

calendar_today

Updated On:

Products Versions
Spotfire Statistica 13.1 and above

Description

When the WebStatistica Service is running, it will start up sub-processes of Statistica to service requests to run analyses and scripting requests. These can be seen as statcf.exe in the task manager. 

A request to run an analysis or user interface script is called a job. The two groupings of Statistica instances are the “long-running” and “short-running” job queues:
 1. The short-running queue is used for scripts that will take a short period of time. Examples include:
  •   Tasks such as generating a user interface, such as the list of files the user sees when first logging on
  •   A user selecting parameters for an analysis
  2. The long-running queue is used for jobs that might take a longer time to run, including most analyses. Batch jobs will always run on the long-running job queue.

Separating requests into the two queues ensures that user-interface operations, such as logging on or selecting analyses, will respond more quickly when a backlog of analytical jobs is running.
NOTE: A short-running job can use a long-running instance if the short-running queue is full.

You can control the minimum and maximum number of Statistica instances in both the long running and short running queues.
 The minimum value specifies the number of Statistica instances that will always be kept running even if no requests are pending. Keeping these instances running makes the system more responsive because it does not have to load an instance of Statistica to service the request.

The maximum value controls the maximum number of Statistica instances that can be started when many requests come in. When the maximum number of instances of Statistica is in use, new requests will be queued and serviced in the order they are received. The exception is that a batch job will always be a lower priority than an interactive job. Once no pending requests have been received for a period of time, the number of Statistica instances will go back to the minimum level.

In most cases, you should set the minimum and maximum number to the same value within the same job queue to ensure the fastest response and the most predictable resource usage. However, having a maximum number that differs from the minimum enables the system to dynamically adjust the number of Statistica instances when the load gets heavier.



 

Issue/Introduction

This articles introduces about the sub-processes of Statistica that will be called when WebStatistica service is running.

Resolution

A good rule of thumb is to set the long running minimum and maximum to twice the number of processors that are available, and to set the short running minimum and maximum to the number of processors. If there were too many queued jobs in WebStatistica, it could be that the minimum and maximum number of processes are not set at the recommended level.  KB article 000032174 - "How to set the number of Statcf processes for Statistica Server ?" provides instructions on how to configure the number of these processes.

This example has a processor with 2 cores. So MinSL=MaxSL=2; MinLL=MaxLL=4. Total Processes =6.

User-added image