[ZBX-5147] Copt lib incorrect processes memory limit with G postfix Created: 2012 Jun 07  Updated: 2017 May 30  Resolved: 2012 Jun 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.14rc1
Fix Version/s: 1.8.14rc1

Type: Incident report Priority: Minor
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: debugging, frontend
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

MEMORY LIMIT REACHED! Profiling was stopped to save memory for script processing.

                                      • Stats for script *************************
                                        Total time: 1339005643.4812
                                        Memory limit : 8G
                                        Memory usage : 2.25M - 13.5M (11.25M)
                                        Memory peak : 13.5M
                                        SQL selects count: 22
                                        SQL executes count: 6
                                        SQL requests count: 1
                                        Time:0.000728 SQL: SET NAMES utf8
                                        Total time spent on SQL: 0.000728
                                        • End of script ***************************

It happens in "ini_get('memory_limit') * 0.8 * 1024 * 1024)" formula. The formula doesn't consider all postfixes except 'M'.



 Comments   
Comment by Alexey Fukalov [ 2012 Jun 08 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-5147

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jun 12 ]

Reviewed.

Comment by Alexey Fukalov [ 2012 Jun 12 ]

svn://svn.zabbix.com/branches/1.8 28209

Generated at Sat Apr 27 04:56:13 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.