Fatal error: Out of memory (allocated 1801453568) (tried to allocate 196608 bytes) in /var/www/html/wp-includes/class-wpdb.php on line 2153
[09-Dec-2022 08:14:25 UTC] PHP Fatal error: Out of memory (allocated 1801453568) (tried to allocate 258048 bytes) in /var/www/html/wp-includes/functions.php on line 5279
[09-Dec-2022 08:14:25 UTC] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
We have increased the memory limit. but not able to edit page.
In the wordpress admin page edit area, it should tell you how many revisions the page has. There are 1000s of plugins to clean up revisions. WordPress by default does not set any limit on the amount of revisions.
You need to delete the post meta too, but anyway too late now.
As for the memory how much does your server have? How many sites are on the server? How much ram does the database have assigned? How many other sites share the same database? Who is the host? Is it a VPS or is it a dedicated server? Or is it shared hosting?
That might be the case. If you have not setup mysql properly it will run away with available memory. I used mysqltuner on my personal VPS which is also on digital ocean and only has 1G of ram, works perfectly fine with zero issues.
Not the database, the db server. clearly the 1st line in the errors you pasted say the wordpress database class has run out of memory trying to access the db server.
mysqltuner will look at your server and give you advice on what to change in the mysql config files based on your server size/memory. I do not know of any other tool. As the server root user it is up to you to set it up properly. A WP plugin has no control to do this for you and we are not server experts either.