![Sybase Adaptive Server Configuration Manual Download Page 53](http://html1.mh-extra.com/html/sybase/adaptive-server/adaptive-server_configuration-manual_1416505053.webp)
CHAPTER 3 Configuring the Operating System
Configuration Guide
37
where program_name is the name of the compiled program, and
master_device_name is the full path of Adaptive Server’s master device.
Instead of typing the command at the operating system prompt, you can
add program_name preceding the dataserver command line in the
Adaptive Server RUN_server_name file.
Sample program
Note
This is an sample script; modify it as necessary.
The following example shows the source code that you can use to increase the
hard limit:
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/types.h>
/*
** define MAX_CONNECTIONS to a number less than
** 10000. The number defined will then become the maximum
** number of connections allowed by an Adaptive Server.
*/
#define MAX_CONNECTIONS 9999
extern int errno;
main(argc,argv)
char **argv;
{
struct rlimit rlp;
uid_t
uid;
rlp.rlim_cur = MAX_CONNECTIONS;
rlp.rlim_max = MAX_CONNECTIONS;
/* set the number of open file desriptors to
MAX_CONNECTIONS
*/
if (setrlimit (RLIMIT_NOFILE,&rlp) == -1)
{
perror("setrlimit");
exit(1);
}
/* reset the user id to disable superuser
privileges
*/
uid
=
getuid();
Summary of Contents for Adaptive Server
Page 1: ...Configuration Guide Adaptive Server Enterprise 15 0 UNIX...
Page 96: ...Migrating from the interfaces file to LDAP 80 Adaptive Server Enterprise...
Page 120: ...Changing the localization configuration 104 Adaptive Server Enterprise...
Page 128: ...Managing database devices 112 Adaptive Server Enterprise...