You can do stress test with stress-ng tool.
To install this tool on Almalinux/RHEL:
dnf install stress-ng
Then you can use this command:
stress-ng --vm 1 --vm-bytes 90% --timeout 300s --verbose
This command will do a stress test on the RAM (VM) using 90% of the available RAM and will run the test for 300 seconds (5 minutes).