Memory leak under Zend Server 9.1

General discussion on Zend Server for IBM System i

Memory leak under Zend Server 9.1

Postby scot3832 on Thu Aug 31, 2017 7:40 pm

We are experiencing what appears to be a memory leak when running under Zend Server 9.1. I am making calls via the toolkit in a loop for a result set.

I've attached a minimum reproducible program where you can see memory usage increasing until the memory limit is reached. Running the same code under ZS 8.5 does not produce this issue.

I've duplicated this on 3 entirely different client systems as well.

Has anyone else run into this or have any ideas?

ZS 9.1
ZS 9.1 Leak
memLeakPHP7.png (10.36 KiB) Viewed 1498 times

ZS 8.5
ZS 8.5 - No Leak
memLeakPHP5.png (14.09 KiB) Viewed 1498 times
Memory Leak reproducible
(817 Bytes) Downloaded 62 times
Posts: 1
Joined: Thu Aug 31, 2017 7:35 pm

Re: Memory leak under Zend Server 9.1

Postby stewartm on Fri Sep 22, 2017 3:45 pm

I've not experienced the problem but I tested your script and got the same results:

Memory usage: int(16280104)
Memory usage: int(32014200)
Memory usage: int(47748296)
Memory usage: int(63482392)
Memory usage: int(79216488)
Memory usage: int(94950584)
Memory usage: int(110684680)
Memory usage: int(126418776)

Script execution halted (Allowed memory size of 134217728 bytes exhausted (tried to allocate 15728660 bytes))

Posts: 16
Joined: Thu May 17, 2012 3:14 pm
Location: Coleraine, N.Ireland

Return to Zend Server for IBM i

Who is online

Users browsing this forum: No registered users and 1 guest