현재 PHP7.0-FPM 사용 중 일부 문제가있는 opcache 항목을 무효화하는 데 문제가 있습니다.Opcache 상태 메모리 크기 문제
일부 파일은 opcache_get_status에서 볼 때 메모리 크기가 680.00b로 캐시됩니다. 이 파일은 대개 약 50kb 크기이며 올바르게 캐싱 된 것처럼 보이지만 Opcache는 이러한 파일 중 일부가 정확히 680.00b라고보고합니다.
Opcache 설정 :
; configuration for php opcache module
; priority=10
zend_extension=opcache.so
opcache.memory_consumption=16384
opcache.max_accelerated_files=32531
opcache.validate_timestamps=0
opcache.revalidate_freq=600
opcache.max_file_size=0
opcache.fast_shutdown=1
그것은 생성 된 파일이 캐시되는 특이한 설정이다 그래서 이따금가 문제이며, 파일은 recached/대체됩니다.
왜 opcache가 이러한 파일을 680.00b로 표시하는지 생각할만한 이유가 있습니까? opcache_reset 또는 opcache_invalidate가 도움이되지 않습니다. 파일을 완전히 대체하고 opcache_reset을 사용하여 실제 파일 크기와 함께 표시하고 모니터링/문제 해결을 어렵게 만듭니다.
미리 감사드립니다.