SlideShare a Scribd company logo
1
PHP#Sydney#
April#2014#
harald.zeitlhofer@dynatrace.com#
@HZeitlhofer#
PHP#Applica=on#Performance#
Harald#Zeitlhofer#
#
2
• Technology#Strategist#at#Dynatrace#
• Database#and#Web#Development#
• PHP#for#more#than#15#years#
• Always#up#for#new#things#
Harald#Zeitlhofer#
3
Applica'on*Performance*
4
Failures happen!
Nobody likes it when …
5
Unless you work for
Google or Microsoft !
6
… or this …
7
8
... as it leads to ...
9
10
... and finally to ...
11
12
Yes, failures happen!!
but we can identify
and/or avoid them !
13
~*20*%#
14
Performance#Tools#
15
some*use*cases*
and*best*prac'ces*
16
17
Not#following#Web#Performance#Best#Prac=ces# 282!$Objects#
on#that#page#
9.68MB#Page#Size#
8.8s$Page#Load#
Time#
Most#objects#are#images#
delivered#from#the##
main#domain#
18
Overloaded#pages,#lots#of#sta=c#content#
434$Resources$in#total#on#that#page:#
230#JPEGs,#75#PNGs,#50#GIFs,#…#
total%page%size%20$MB$!!!#
19
pack*JS,*CSS*files*
*
use*sprites*for*images*
*
use*proper*caching*
*
20
cached#content#
can#s=ll#create#roundtrips##
to#the#network!#
21
Web#Request#handling#
run#PHP#in#external#process#rather#than#loaded#into#apache.#
consider#using#Nginx#+#PHP^FPM#
22
mind*your*environment*
*
configure*properly*
*
23
24
frustrated#users#
slow#user#ac=on#
response#=me#
25
errors#in#PHP#execu=on#
26
iden'fy*response*'me*hotspots*
27
less#library#caused#
performance##
hotspot#
drill*down*to*find*the*root*cause*
28
know*your*code*
*
know*your**
external*libraries*
*
29
30
31
/katgrp/browse#
32
/katgrp/get/$/1626#
33
/cave/browse/gis/$/katgrp/1626#
34
/cave/browse/gis/$/katgrp/1626#–#applica=on#context#
35
Sessions#in#PHP#
•  session_start()#locks#the#file#where#session#data#are#stored#
•  Released#when#script#ends#
•  Use#session_write_close()#to#unlock#the#file#before#execu=ng#slower#code#
•  Or#create#your#own##
session#handler#with##
session_set_save_handler()#
36
Looks#beher#now…#
37
38
performance#hotspot#
/en/externalprice/#
39
response#=me##
hotspot#PHP#
40
session#data#locking#
response#=me#hotspot:#
usleep();*
41
be*careful*with*locking*
*
only*lock*when*required,*
release*lock*
as*soon*as*possible*
42
Locking#problem#solved,#but#…#
43
/katgrp/browse#server#side#execu=on#
=me#to#check##
the#database#
44
From#the#DB#perspec=ve#
Check#for#proper#indexes!#
#
Occasionally#full#table#scans#are#
performed#even#though#indexes##
are#available,#especially#in#complex#
queries.#Some=mes#only#a#rewrite#
of#the#query#helps.#
45
Here#we#go:#
46
mind*the*database*!!!*
*
47
anything#else#we#can#do?#
what*about**
3rd*party*content?*
48
3rd#party#content#
49
3rd#party#content#
50
watch*external*services*
*
be*aware*there*are*
services*you**
can't*control*
*
51
But still,
failures happen!!
identify them as soon
as possible
52
End^To^End#Transac=on#Monitoring#
53
... to make sure that ...
54
55
• Load#Generator##
(Apache#Benchmark,#Selenium,#JMeter)#
• Firebug,#Google#Developer#Tools#
Dynatrace#Ajax#Edi=on#
• Google#PageSpeed#
• Dynatrace#Free#Trial#
•  Free#trial#license#for#30#days#
•  Free#personal#license#for#developers#
My#favorite#tools#
hhp://bit.ly/dhrial#
56
www.dynatrace.com#
Thank#you#!!!#
Harald*Zeitlhofer*
Senior#Technology#Strategist#
#HZeitlhofer#
harald.zeitlhofer@dynatrace.com#
hhp://blog.dyntrace.com#

More Related Content

PDF
Becoming Technical: Overcome Your Fear of Coding and Supercharge Your Career
PDF
Becoming Technical: Overcome Your Fear of Coding and Supercharge Your Career
PPTX
App studio
PPTX
kacxis sveti C I U
PPT
Moda i stil
PPTX
Means of transportation
PDF
PRESENTACIÓN POWERPOINT
PDF
Tisk bez tiskárny
Becoming Technical: Overcome Your Fear of Coding and Supercharge Your Career
Becoming Technical: Overcome Your Fear of Coding and Supercharge Your Career
App studio
kacxis sveti C I U
Moda i stil
Means of transportation
PRESENTACIÓN POWERPOINT
Tisk bez tiskárny

Viewers also liked (17)

PPTX
Twitter for Learning and Development Professionals
PPTX
PPTX
Top 10 microblogging tools
PPTX
SchoolCTF 2012 - See Shark
PPTX
SchoolCTF 2012 - Rings
PDF
2014.07.24 экономическое обозрение за 2013 год - финал
PDF
Programma scriveròilmiocognome
PDF
.Sla 3
PPTX
Horrors of the war.
PPTX
Presentation sheilamie a. banawa
PPT
Who speaks for the land?
PDF
20140709 세월호가족대책위 416특별법제정입법청원서
PDF
Прогноз социально-экономического развития города
PPT
Empowering Indigenous Women and Girls
PPTX
Teatro FETRAN
PDF
Br patent актуальная
PPTX
Presentación
Twitter for Learning and Development Professionals
Top 10 microblogging tools
SchoolCTF 2012 - See Shark
SchoolCTF 2012 - Rings
2014.07.24 экономическое обозрение за 2013 год - финал
Programma scriveròilmiocognome
.Sla 3
Horrors of the war.
Presentation sheilamie a. banawa
Who speaks for the land?
20140709 세월호가족대책위 416특별법제정입법청원서
Прогноз социально-экономического развития города
Empowering Indigenous Women and Girls
Teatro FETRAN
Br patent актуальная
Presentación
Ad

Similar to PHP App Performance / Sydney PHP (20)

PDF
2013 - Dustin whittle - Escalando PHP en la vida real
PPTX
Northeast PHP - High Performance PHP
PDF
Php go vrooom!
PPTX
PHP Performance: Principles and tools
PDF
PHP Application Performance
PPTX
Optimizing performance
PPTX
Resolving problems & high availability
PPTX
Keeping up with PHP
PPTX
Profiling and Tuning a Web Application - The Dirty Details
PDF
Static analysis saved my code tonight
PPTX
BTV PHP - Building Fast Websites
PDF
PHPDay 2013 - High Performance PHP
PDF
Dutch php conference_2010_opm
PPT
scale_perf_best_practices
PPT
Top 10 Scalability Mistakes
PDF
Session10-PHP Misconfiguration
PPTX
Web Performance, Scalability, and Testing Techniques - Boston PHP Meetup
PPTX
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)
PDF
Securing the PHP Environment with PHPSecInfo
PDF
PHP & Performance
2013 - Dustin whittle - Escalando PHP en la vida real
Northeast PHP - High Performance PHP
Php go vrooom!
PHP Performance: Principles and tools
PHP Application Performance
Optimizing performance
Resolving problems & high availability
Keeping up with PHP
Profiling and Tuning a Web Application - The Dirty Details
Static analysis saved my code tonight
BTV PHP - Building Fast Websites
PHPDay 2013 - High Performance PHP
Dutch php conference_2010_opm
scale_perf_best_practices
Top 10 Scalability Mistakes
Session10-PHP Misconfiguration
Web Performance, Scalability, and Testing Techniques - Boston PHP Meetup
ExpressionEngine - Simple Steps to Performance and Security (EECI 2014)
Securing the PHP Environment with PHPSecInfo
PHP & Performance
Ad

More from Harald Zeitlhofer (15)

PDF
Slow Database in your PHP stack? Don't blame the DBA!
PDF
Scaling PHP web apps
PDF
PHP and databases
PPTX
Boost your website by running PHP on Nginx
PDF
Running PHP on Nginx
PDF
Improve Magento Performance
PPTX
PHP conference Berlin 2015: running PHP on Nginx
PDF
Running PHP on Nginx / PHP wgtn
PDF
Running PHP on nginx
PDF
PHP application performance
PDF
Running php on nginx
PDF
Nginx performance monitoring with Dynatrace
PDF
Nginx, PHP, Apache and Spelix
PDF
Nginx, PHP and Node.js
PDF
Performance optimisation - scaling a hobby project to serious business
Slow Database in your PHP stack? Don't blame the DBA!
Scaling PHP web apps
PHP and databases
Boost your website by running PHP on Nginx
Running PHP on Nginx
Improve Magento Performance
PHP conference Berlin 2015: running PHP on Nginx
Running PHP on Nginx / PHP wgtn
Running PHP on nginx
PHP application performance
Running php on nginx
Nginx performance monitoring with Dynatrace
Nginx, PHP, Apache and Spelix
Nginx, PHP and Node.js
Performance optimisation - scaling a hobby project to serious business

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
Teaching material agriculture food technology
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Big Data Technologies - Introduction.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Approach and Philosophy of On baking technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Empathic Computing: Creating Shared Understanding
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
Per capita expenditure prediction using model stacking based on satellite ima...
Teaching material agriculture food technology
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The Rise and Fall of 3GPP – Time for a Sabbatical?
20250228 LYD VKU AI Blended-Learning.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Big Data Technologies - Introduction.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
Electronic commerce courselecture one. Pdf
Review of recent advances in non-invasive hemoglobin estimation
Empathic Computing: Creating Shared Understanding
MIND Revenue Release Quarter 2 2025 Press Release
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25-Week II

PHP App Performance / Sydney PHP