WordPress site went offline after clearing server cache

0

After running the following code "sync; echo 1 > /proc/sys/vm/drop_caches" and ". My wordpress site hosted on EC2 AWS went down and error 521 appears. Does anyone know how to solve it?

asked a year ago246 views
1 Answer
0

Without knowing more let me take a stab at this . . .

Have you tried reloading the instance? Yes I'm seriously asking.

A 521 error indicated a server side error. When you dropped the cache the CPU load probably went way up. In the future, I would be hesitant to clear the cache if I am trying to save memory. Linux tries to use all of the memory and the cache will use as much as it can, but this is low priority usage of memory. The cache gets swapped out if another more important process needs the RAM.

If this is a busy site you may want to snapshot the image and resize to a larger instance type.

profile pictureAWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions