** Dear Bob,

A new logging feature is undocumented but available in 5.1.2. This logging will allow us to monitor large memory allocations due to large queries using GLEWF. The feature is enabled by setting 2 parameters in the ar configuration file.

Large-Result-Logging-Threshold: 90000
Debug-mode: turn on bit 6 (value 32)

Debug-mode can be set using the Admin tool by choosing the Thread logging.


After these parameters are set in the ar configuration file the ar server should be restarted or arsignal used to trigger a re-read of the file. The server will now log memory allocations used by GLEWF ARGetListEntryWithFields if the api requires a memory allocation (shown by Overflow memory) of larger than or equal to Large-Result-Logging-Threshold. In the following examples a query was run which requires a malloc of 88143 bytes of memory. The log entry is written when the malloc is larger than the configured threshold.



Large-Result-Logging-Threshold: 50000

/* Tue Jul 01 2003 13:03:55.6420 */ Thread Id 2352 (GLEWF) large result - /Entries: 1000/Overflow memory: 88143/Pending file size: 73895/RPC ID: 0/User: Demo/Form: kd-attach/



Large-Result-Logging-Threshold: 75000

/* Tue Jul 01 2003 13:05:30.0770 */ Thread Id 1844 (GLEWF) large result - /Entries: 1000/Overflow memory: 88143/Pending file size: 73895/RPC ID: 0/User: Demo/Form: kd-attach/



Large-Result-Logging-Threshold: 88143

/* Tue Jul 01 2003 13:19:23.4860 */ Thread Id 2308 (GLEWF) large result - /Entries: 1000/Overflow memory: 88143/Pending file size: 73895/RPC ID: 0/User: Demo/Form: kd-attach/



Large-Result-Logging-Threshold: 88144

no line in arthread log file



Large-Result-Logging-Threshold: 90000

no line in arthread log file

NOTE:

To sort the thread log in descending order of memory overflow size:

sort -r -n +18 [filename] | more


Hope this article helps you..


Regards,
Roney Samuel Varghese





On 9/22/06, Halstead, Robert <[EMAIL PROTECTED]> wrote:
Hello, I installed the patch 18 for remedy 6.03 and we seem to be still
having memory issues.  I was wondering if there was a way to log memory
allocations within the log files.

Any thoughts?

Bob Halstead

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

__20060125_______________________This posting was submitted with HTML in it___

Reply via email to