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?

질문됨 일 년 전252회 조회
1개 답변
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠