Presentation slam the server with jMeter
-
Upload
nestor-mata-cuthbert -
Category
Engineering
-
view
153 -
download
4
Transcript of Presentation slam the server with jMeter
![Page 2: Presentation slam the server with jMeter](https://reader034.fdocuments.us/reader034/viewer/2022050714/55a8657e1a28abff3f8b4629/html5/thumbnails/2.jpg)
My dear earthlings
![Page 3: Presentation slam the server with jMeter](https://reader034.fdocuments.us/reader034/viewer/2022050714/55a8657e1a28abff3f8b4629/html5/thumbnails/3.jpg)
The Story × A sad non productive server
× Can’t work with more than a couple clients
× Sometimes even gets one client hanging for long time
× We even raised his salary and still can’t make it
× Because is not actually his fault…
![Page 4: Presentation slam the server with jMeter](https://reader034.fdocuments.us/reader034/viewer/2022050714/55a8657e1a28abff3f8b4629/html5/thumbnails/4.jpg)
Listen to the server × The server is not understood
× What it does and how it does it?
× Adjust the server as per the needs × The needs of the application × The needs of the users
![Page 5: Presentation slam the server with jMeter](https://reader034.fdocuments.us/reader034/viewer/2022050714/55a8657e1a28abff3f8b4629/html5/thumbnails/5.jpg)
The basics of any HTTP application
× Requests
× Threads
× Memory
× Disk I/O
× Processing (CPU)
× Database
× External
![Page 6: Presentation slam the server with jMeter](https://reader034.fdocuments.us/reader034/viewer/2022050714/55a8657e1a28abff3f8b4629/html5/thumbnails/6.jpg)
HTTP Requests × Not every request is the same
× Anonymous requests × Authenticated requests
× Requests are handled in a thread
× Every request takes memory
× Every request take processing
× They may be using disk, DB and/or externals
![Page 7: Presentation slam the server with jMeter](https://reader034.fdocuments.us/reader034/viewer/2022050714/55a8657e1a28abff3f8b4629/html5/thumbnails/7.jpg)
What to look for × When optimizing you don’t look for everything
× Look for hotspots
× Requests that takes too long
× Requests that generate locks
× Tune up memory/threads relation
× Tune up the max threads the server can handle
× Tune up DB according to it’s usage
× Where/when it breaks!
![Page 8: Presentation slam the server with jMeter](https://reader034.fdocuments.us/reader034/viewer/2022050714/55a8657e1a28abff3f8b4629/html5/thumbnails/8.jpg)
To the rescue: jMeter × jMeter is cross platform (made in Java)
× Can trigger multiple instances from different machines at once
× Can record your activity and then customize it
× Can assert
× Is configurable and programmable
× Can run many kind of loops and threads
![Page 9: Presentation slam the server with jMeter](https://reader034.fdocuments.us/reader034/viewer/2022050714/55a8657e1a28abff3f8b4629/html5/thumbnails/9.jpg)
![Page 10: Presentation slam the server with jMeter](https://reader034.fdocuments.us/reader034/viewer/2022050714/55a8657e1a28abff3f8b4629/html5/thumbnails/10.jpg)
Are we done yet? × We are never done
× An application and server needs to be adjusted over time
× Based on users and data growth
![Page 11: Presentation slam the server with jMeter](https://reader034.fdocuments.us/reader034/viewer/2022050714/55a8657e1a28abff3f8b4629/html5/thumbnails/11.jpg)
![Page 12: Presentation slam the server with jMeter](https://reader034.fdocuments.us/reader034/viewer/2022050714/55a8657e1a28abff3f8b4629/html5/thumbnails/12.jpg)