Usage Note 16719: Defining SAS® Analytics Platform to run as a background process
With the default configuration on UNIX platforms, SAS Analytics Platform, used by SAS® Enterprise Miner™ and SAS® Forecast Studio, will terminate when the shell session from which SAS Analytics Platform is started closes. In order for SAS Analytics Platform to continue running after the shell is closed, complete the following steps:
- Run the SAS Analytics Platform Configuration wizard, making sure to check the box Remember password.
./apserver config
Note: The apserver script is typically found in: {pathtoSASdirectory}/SASAPCore/bin
- Edit the apserver script. Add the nohup command to the beginning of the java command. Add an ampersand (&) at the end of the java command.
The following is an example of the original command. The values shown in these examples may differ slightly from the values in the script at your site. Please note that this command will display as one long line in your script but might display as wrapped text due to the line length in this usage note.
# was $JAVACMD
/SAS_9.1/sasjre/1.4.2/bin/java $CLOPTS
-Djava.rmi.server.hostname=10.16.150.72
-Dap.home="${AP_HOME}"
$OPTIONS com.sas.apps.session.server.Main"$@"
The following is an example of the revised command:
# was $JAVACMD
nohup /SAS_9.1/sasjre/1.4.2/bin/java $CLOPTS
-Djava.rmi.server.hostname=10.16.150.72
-Dap.home="${AP_HOME}"
$OPTIONS com.sas.apps.session.server.Main"$@" &
- Stop and restart SAS Analytics Platform to pick up the changes. Once restarted, SAS Analytics Platform will remain active even when the UNIX shell closes.
To stop SAS Analytics Platform, type:
./apserver stop
To start SAS Analytics Platform, type:
./apserver start
Note: Depending on the protocol in which your Unix session was established, you may find that SAS Analytics Platform still shuts down when your UNIX shell session is closed. In this case, it might be necessary to unset your UNIX display prior to starting SAS Analytics Platform.
For example:
unset DISPLAY
./apserver start
Operating System and Release Information
| SAS System | SAS Analytics Platform | 64-bit Enabled AIX | 1.3 | 1.4 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
| 64-bit Enabled HP-UX | 1.3 | 1.4 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
| 64-bit Enabled Solaris | 1.3 | 1.4 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
| HP-UX IPF | 1.3 | 1.4 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
| Linux | 1.3 | 1.4 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | |
| Topic: | Analytics ==> Data Mining System Administration ==> Servers
|
| Date Modified: | 2007-01-29 08:20:49 |
| Date Created: | 2005-12-20 16:28:31 |