25.01.2015 Views

CSP Gateway Configuration Guide - InterSystems Documentation

CSP Gateway Configuration Guide - InterSystems Documentation

CSP Gateway Configuration Guide - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Apache Considerations UNIX®, Linux, and Mac OS X<br />

The most common reason for problems in this area is if Apache has closed (or recycled) a worker process (in the case of<br />

the example: P2). Of course, a process can crash (for example with an access violation/SIGSEGV error) and, in this case,<br />

an error message will probably be reported in the Apache error log.<br />

Apache also, by default, periodically recycles worker processes.<br />

If you use state-aware sessions, configure Apache such that it doesn’t recycle worker processes by configuring the installation<br />

as follows.<br />

• Set the value of MaxRequestsPerChild to zero<br />

• Set the value of MaxSpareThreads to the same value as MaxClients<br />

If, for whatever reason, it is not possible to prevent Apache periodically recycling processes (perhaps as a result of a malfunctioning<br />

module) and state-aware sessions must be used, then an NSD based <strong>Gateway</strong> configuration can be used. An<br />

NSD-based architecture avoids the problems discussed above because it effectively separates the process management of<br />

the <strong>Gateway</strong> from the web server. Options for using the <strong>Gateway</strong> Network Service Daemon (NSD) are covered in later<br />

sections.<br />

150 <strong>CSP</strong> <strong>Gateway</strong> <strong>Configuration</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!