Load testing and performance tracing
- 3. My Name is Hans Höchtl
Technical director @ Onedrop Solutions
PHP, Java, Ruby Developer
Participation in TYPO3 Solr
- 5. Why?
- Properly scale your system
- Analyze QoS performance
- Identify bottlenecks
- Check reliability
- Verify SLA
- 6. How?
- Have a lot of friends
- Have a lot of employees
- Pay people
- Use proper software solution
- 7. Apache JMeter
- Open source java tool (therefore platform
idependent)
- Can analyze any kind of web application (or native
software)
- Easy configurable tests and graphs
- Supports external data sources for serving test data
- Scales
- 9. JMeter master-slave
- Uses RMI
- Use the same network subnet or a
proxy
- Use SSH portforwarding
- If you configure live results, network
bandwidth will be heavy
- 10. Blazemeter
- SaaS solution to run JMeter tests at scale
- Can use AWS, Google Cloud, your own
machines (reduces configuration
overhead for RMI)
- Integrates with CI tools => measure
performance increase/decrease before a
release
- 11. Blazemeter
- SaaS solution to run JMeter tests at scale
- Can use AWS, Google Cloud, your own
machines (reduces configuration
overhead for RMI)
- Integrates with CI tools => measure
performance increase/decrease before a
release
- 13. Now we know how our system
performs.
But where to start optimizing?
- 14. Profiling
Measure the memory usage,
complexity of a program, the
usage of particular instructions
and the frequency and duration of
function calls.
- 19. Analyzing the callgraph
- Look at the excl. wall time
- Identify database heavy
components
- Check call path for IO operations
- 20. Optimizing your application
- Use „more“ hardware
- SSD instead of HDD
- Proper caching
- Caching backend (Redis)
- Cacheable output?
- OpCode Cache + APCu!!!
- Reduce/optimize queries
- 26. Optimizing your database
- Inform yourself (book, webinar, etc.)
- Use the percona toolkit
- Mount your database in memory (just kidding)
- If on a different host, check latency
- Persistent connection?
- 27. Frontend performance
- pagespeed
- defer loading
- image optimization
- concat, compress, etc.
- http://www.smashingmagazine.com/
2014/09/08/improving-smashing-
magazine-performance-case-study/