Start-Up

The SAS Micro Analytic Service 1.2 Java interface is a public Java interface named TkLight, obtained by instantiating Java class tksfjni, which implements the interface.
int threads = 4;
String logconfigloc = null;
TkLight tk = new tksfjni(threads, logconfigloc);
CAUTION:
The tksfjni instance must be kept a singleton, as it is not advisable to start two instances of SAS Micro Analytic Service within the same process space.
This would yield unpredictable results and is not supported.
The first tksfjni constructor argument specifies the size of the threaded kernel thread pool to be maintained by SAS Micro Analytic Service. For best performance, the size of the thread pool should be about equal to the number of processor cores in the server hosting SAS Micro Analytic Service. The exact number of threaded kernel threads to specify for best performance varies somewhat, depending on the characteristics of the code to be published. When the number of threads that is specified exceeds four times the number of cores of the hosting server, SAS Micro Analytic Service fails to start.
The second tksfjni constructor argument, when non-null, specifies the location of a logging configuration file, which controls SAS Micro Analytic Service logging. SAS Micro Analytic Service uses the SAS 9.4 Logging Facility. For more information, see SAS 9.4 Logging: Configuration and Programming Reference. Your SAS solution might provide a default logging configuration. For more information, see your solution’s documentation.