Page 1 of 1

Memory leak under Zend Server 9.1

PostPosted: Thu Aug 31, 2017 7:40 pm
by scot3832
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 236 times

ZS 8.5
ZS 8.5 - No Leak
memLeakPHP5.png (14.09 KiB) Viewed 236 times

Re: Memory leak under Zend Server 9.1

PostPosted: Fri Sep 22, 2017 3:45 pm
by stewartm
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))