[ZBX-6729] Log files are slow processed by Agent on Windows Created: 2013 Jun 19 Updated: 2017 May 30 Resolved: 2014 Jan 27 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 2.0.7rc1, 2.1.0 |
Fix Version/s: | 2.0.12rc1, 2.2.3rc1, 2.3.0 |
Type: | Incident report | Priority: | Major |
Reporter: | Alexey Pustovalov | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 3 |
Labels: | logrt, performance, slow, windows | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
Sometimes Zabbix agent slow process log files because of some of used functions and logic (agent scans directory for each iteration and send only one line from log file) are not quite good. Some of information which should help improve performance of log monitoring on Windows systems: 1. Windows _findnext:
So http://msdn.microsoft.com/en-us/library/6tkkkc1y(v=vs.80).aspx recommend use _wfindnext instead of _findnext for files bigger than 3GB.
3. For Windows we can use notification ReadDirectoryChangesW from http://msdn.microsoft.com/en-us/library/aa365261(VS.85).aspx (it is similar inotify for Linux). Most of interesting is third point. With it we can wait changes of specified directory. |
Comments |
Comment by Andris Mednis [ 2014 Jan 17 ] |
I'm working to make log file processing faster. Notification ReadDirectoryChangesW is not yet planned to implement as there are simpler, non platform-specific optimizations to be done first. |
Comment by Andris Mednis [ 2014 Jan 27 ] |
For Zabbix 2.0 available in development branch svn://svn.zabbix.com/branches/dev/ZBX-6731. See comments on |
Comment by Andris Zeila [ 2014 Feb 03 ] |
Successfully tested |
Comment by Andris Mednis [ 2014 Feb 28 ] |
Fixed in versions pre-2.0.12 r43102, pre-2.2.3 r43233, pre-2.3.0 r43239. |
Comment by Andris Mednis [ 2014 Mar 06 ] |
For 2.0 documented in https://www.zabbix.com/documentation/2.0/manual/introduction/whatsnew2012?&#daemon_improvements |
Comment by Andris Mednis [ 2014 Mar 27 ] |
Improved documentation at https://www.zabbix.com/documentation/2.2/manual/introduction/whatsnew223?&#daemon_improvements about conditions when log[] and logrt[] items become NOTSUPPORTED. |
Comment by Andris Mednis [ 2014 May 07 ] |
Improved documentation at https://www.zabbix.com/documentation/2.0/manual/introduction/whatsnew2012?&#daemon_improvements about conditions when logrt[] items become NOTSUPPORTED. wiper reviewed. martins-v I've reviewed all documentation related changes in this issue, so the documenting part could be CLOSED. |
Comment by Andris Mednis [ 2014 May 22 ] |
The fix caused a regression |