Project

General

Profile

Actions

Bug #8249

closed

pid 77785 (php-fpm), uid 0, was killed: out of swap space

Added by Pi Ba almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Start date:
12/31/2017
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.3
Affected Architecture:
All

Description

My pfSense box is running out of memory while it should have plenty to do what it does.

2.4.3-DEVELOPMENT (amd64)
built on Sat Dec 30 11:07:37 CST 2017

Running on a Virtualbox with 1GB memory and 1GB swap space.
Dashboard and htop shows both memory and swap being 'full'.

Also on console these messages pop up:
pid 77785 (php-fpm), uid 0, was killed: out of swap space
pid 1083 (php-fpm), uid 0, was killed: out of swap space
pid 53694 (php-fpm), uid 0, was killed: out of swap space
pid 65729 (php-fpm), uid 0, was killed: out of swap space
pid 48018 (php-fpm), uid 0, was killed: out of swap space
swap_pager: out of swap space
swap_pager_getswapspace(16): failed
pid 1082 (php-fpm), uid 0, was killed: out of swap space
swap_pager_getswapspace(7): failed
swap_pager_getswapspace(4): failed

After running on console '16 restart php-fpm' memory usage drops to 272MB memory and 216MB swap used. So about 1.5GB of memory was released..

I believe this is might be related to https://github.com/pfsense/pfsense/pull/3881

Output of some commands attached:
curl -k "https://localhost/status?full" > mem_phpfpm_status_full.log
/usr/bin/netstat -Ln > mem_netstat_Ln.log
/usr/bin/netstat -xn > mem_netstat_xn.log
/usr/sbin/swapinfo -h > mem_swapinfo_xn.log
/usr/bin/top | /usr/bin/head -n7 > mem_top.log
/bin/ps uxawwd > mem_psuxawwd.log
/usr/bin/sockstat > mem_sockstat.log


Files

mem_netstat_Ln.log (2.15 KB) mem_netstat_Ln.log Pi Ba, 12/31/2017 06:22 PM
mem_netstat_xn.log (24.5 KB) mem_netstat_xn.log Pi Ba, 12/31/2017 06:22 PM
mem_phpfpm_status_full.log (3.6 KB) mem_phpfpm_status_full.log Pi Ba, 12/31/2017 06:22 PM
mem_psuxawwd.log (18.6 KB) mem_psuxawwd.log Pi Ba, 12/31/2017 06:22 PM
mem_sockstat.log (17.2 KB) mem_sockstat.log Pi Ba, 12/31/2017 06:22 PM
mem_swapinfo_xn.log (104 Bytes) mem_swapinfo_xn.log Pi Ba, 12/31/2017 06:22 PM
mem_top.log (362 Bytes) mem_top.log Pi Ba, 12/31/2017 06:22 PM
20180105_top -aS -o res.txt (3.51 KB) 20180105_top -aS -o res.txt Pi Ba, 01/04/2018 05:42 PM
Actions

Also available in: Atom PDF