Memory leak under Zend Server 9.1

General discussion on Zend Server for IBM System i
Post Reply
Posts: 1
Joined: Thu Aug 31, 2017 7:35 pm

Memory leak under Zend Server 9.1

Post by scot3832 » 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 3210 times
ZS 8.5
ZS 8.5 - No Leak
memLeakPHP5.png (14.09 KiB) Viewed 3210 times
Memory Leak reproducible
(817 Bytes) Downloaded 187 times

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

Re: Memory leak under Zend Server 9.1

Post by stewartm » 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))


Post Reply