30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Optimizing Zend Server Performance<br />

Zend Server Best Practices<br />

The Zend Server components are designed to encompass several different requirements. However, there<br />

is no point in adding or using certain components when they are not needed. This primarily happens<br />

when you install a component that you do not use. For example, if you do not need to call Java objects<br />

from your PHP code, there is no need to have the Java Bridge running. In addition, it would be better not<br />

to install this optional component at all, especially as you will be prompted to install a Java Runtime<br />

Environment that is not required if you are only running PHP.<br />

In this section, we describe each performance component, including when you should install the<br />

component, when to disable the component and when applicable, when to remove the component.<br />

Component Description Turn Off Comment<br />

Debugger A remote<br />

debugging tool for<br />

developers<br />

working with Zend<br />

Studio.<br />

Optimizer+ Speeds up PHP<br />

execution through<br />

opcode caching<br />

and optimization.<br />

Guard Loader Loads and runs<br />

encoded PHP<br />

scripts (Encoded<br />

with Zend Guard)<br />

Data Cache Cache data items<br />

or output<br />

Java Bridge Calls Java classes<br />

and code from<br />

PHP<br />

Monitor Identifies<br />

performance<br />

Not recommended to turn off,<br />

as it is great for development<br />

environments.<br />

In production when not<br />

debugging code<br />

Disabling has a negative<br />

impact on performance.<br />

Required only if you are<br />

running PHP code that was<br />

encoded with Zend Guard.<br />

If you are not using the Data<br />

Cache API in your code for<br />

partial content caching.<br />

Required only If you call Java<br />

code or objects from your PHP.<br />

Turn off temporarily, only for<br />

performance testing reasons.<br />

If you are not going to debug<br />

your code with the<br />

Debugger, for example in a<br />

production environment,<br />

disabling this component<br />

may provide a slight<br />

performance gain<br />

If you are not a Zend Guard<br />

user either remove this<br />

component or do not install it<br />

(it is an optional<br />

component).<br />

If you are not a Java user<br />

either remove this<br />

component or do not install<br />

(optional component).<br />

393

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

Saved successfully!

Ooh no, something went wrong!