Skip to content

Commit 5ae7532

Browse files
author
Alexander Popov
committed
test: add test for memoryleakdiagnostic
1 parent 9eaeef1 commit 5ae7532

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/check.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ enabled = True
179179
relations=postgres.pg_catalog.pg_class,postgres.pg_catalog.pg_user
180180
interval = 60
181181
182+
[memoryleakdiagnostic]
183+
enabled = True
184+
interval = 60
185+
private_anon_mem_threshold = 1GB
186+
182187
EOF
183188
mamonsu bootstrap -U postgres mamonsu -M mamonsu
184189
##/etc/init.d/mamonsu start
@@ -199,6 +204,7 @@ grep 'pgsql\.uptime' /tmp/localhost.log || exit 7
199204
grep 'pgsql\.prepared\.count' /tmp/localhost.log || exit 7
200205
grep 'pgsql\.prepared\.oldest' /tmp/localhost.log || exit 7
201206
grep 'pgsql\.relation\.size' /tmp/localhost.log || exit 7
207+
grep 'pgsql\.memory_leak_diagnostic\.count_diff' /tmp/localhost.log || exit 7
202208

203209
## error in zabbix server
204210
(mamonsu zabbix item error $ZABBIX_CLIENT_HOST | grep ZBX_NOTSUPPORTED) && exit 8

0 commit comments

Comments
 (0)