[ASK] Cara Mengatasi Error Ini Bagaimana ya?


Status
Not open for further replies.
Pesan 'upstream prematurely...' lengkapnya apa?.

Begini mastah

Code:
2014/05/04 17:38:40 [error] 225350#0: *4590 upstream prematurely closed connection while reading response header from upstream, client: 108.162.208.229, server: xxxxxxxx.com, request: "GET /xxxxxx-xxxxx-xxxxxx-xxxxxxxx-xxxxxxx-xxxxxx/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "xxxxx.com", referrer: "http://xxxxxxxx.xxx"
 
Kelihatannya masalahnya ada di 'komunikasi' nginx dengan fastcgi (alias php-fpm). Infokan saja php-fpm anda.
 
Kelihatannya masalahnya ada di 'komunikasi' nginx dengan fastcgi (alias php-fpm). Infokan saja php-fpm anda.

Ini config php-fpm saya mastah
Code:
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;
; Global Options ;
;;;;;;;;;;;;;;;;;;

[global]
;emergency_restart_threshold 10
;emergency_restart_interval 1m
;process_control_timeout 10s

;;;;;;;;;;;;;;;;;;;;
; Pool Definitions ;
;;;;;;;;;;;;;;;;;;;;

[index]
listen = 127.0.0.1:9000
user = rap
group = rap
request_slowlog_timeout = 5s
slowlog = var/log/php-fpm-slowlog-index.log
"/usr/local/apps/php53/etc/php-fpm.conf" 64L, 1353C
listen.allowed_clients = 127.0.0.1
pm = dynamic
pm.max_children = 5
pm.start_servers = 3
pm.min_spare_servers = 2
pm.max_spare_servers = 4
pm.max_requests = 200
listen.backlog = -1
request_terminate_timeout = 120s
rlimit_files = 131072
rlimit_core = unlimited
catch_workers_output = yes
security.limit_extensions = FALSE
env[HOSTNAME] = $HOSTNAME
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp

[regular]
listen = 127.0.0.1:9001
user = rap
group = rap
request_slowlog_timeout = 5s
slowlog = var/log/php-fpm-slowlog-regular.log
listen.allowed_clients = 127.0.0.1
pm = dynamic
pm.max_children = 5
pm.start_servers = 3
pm.min_spare_servers = 2
pm.max_spare_servers = 4
pm.max_requests = 200
listen.backlog = -1
request_terminate_timeout = 120s
rlimit_files = 131072
rlimit_core = unlimited
catch_workers_output = yes
security.limit_extensions = FALSE
env[HOSTNAME] = $HOSTNAME
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp

Spek VPS:
RAM: 4 GB
CPU: Core 2
KVM
 
itu website secara umum masih bisa dibuka normal ?

pm = ondemand
pm.max_children = 25
pm.max_requests = 2000
 
masih pake port ya
gak coba pake socket??

Iya Tuan. Kemarin sempet saya rubah sesuai saran Tuan. Tapi error, saya ga tau settingnya

sdh coba pake ondemand dan max 32 thread php5-fpm ?

itu website secara umum masih bisa dibuka normal ?

pm = ondemand
pm.max_children = 25
pm.max_requests = 2000

Oke sarannya, saya cobain ya.
Web nya masih bisa dibuka kok. Cek di histat jg user online 150an
Cuma kadang2 kalau saya buka suka error 502
 
1. JIka pakai 'pm = ondemand', maka 'listen.backlog = -1' diubah 'listen.backlog = 65536'.
2. Kok ada baris aneh '/usr/local/apps/php53/etc/php-fpm.conf" 64L, 1353C' yang mestinya tidak ada
3. Naikkan 'request_slowlog_timeout = 5s' ke 'request_slowlog_timeout = 30s'
 
Status
Not open for further replies.
Back
Top