REST API calls use 1GB memory
-
I have encountered some issues with the WP REST API, i didn’t use it for custom code but i noticed that every time i open a page in the WP dashboard the server nearly crash for memory limit. I started debugging with the chrome developer tools to find out what would be the cause of the issue and i found out that all the calls to wp-json root takes 40s to answer back and on cPanel i see an increase of memory, CPU and I/O usage. Sometimes the calls answer back with error code 500 and “The have been a critical error in your website ecc..” in the debug.log file the error i can find are different every time but it’s always about require() functions that ran out of memory and couldn’t allocate variables and than other require() couldn’t find some WC classes. If i disable all the plugins but WC i have response time around 8s. I tried to see on another site with more plugins than mine and its response time was about 3s. I uninstalled word fence because i thought it was its fault and wp rocket too. If you need other info tell me.
The page I need help with: [log in to see the link]
- The topic ‘REST API calls use 1GB memory’ is closed to new replies.