Re: Slow Loading Issue
"Jimmy Conner" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, May 28, 2008 6:06 pm, Thomas Anders wrote:
> Jimmy Conner wrote:
>
>> Sorry, I meant to include that I already attempted that, and have even
>> set the MIBS= enviroment variable without any improvement.
>
> A few more things to check:
>
>
> - Is there also a delay when using snmptranslate?
Same thing
> - Is there the same delay when using "snmpgetnext ... .1.3"?
Same thing
> - If you still see delays for any tool, run "strace -tt <command> ..."
> (assumed this is Linux) to see where it spends its time
>
Ran the strace, and noticed it was mostly reading from files.
-----------------------
18:15:56.140927 open("/var/net-snmp/snmpapp.conf", O_RDONLY) = 3
18:15:56.140995 fstat64(3, {st_mode=S_IFREG|0600, st_size=33826615, ...}) = 0
18:15:56.141101 mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d19000
18:15:56.141151 read(3, "engineBoots 1\noldEngineID 0x8000"..., 4096) = 4096
18:15:56.141779 read(3, "EngineID 0x800007e580a3dec91900f"..., 4096) = 4096
18:15:56.142324 read(3, "c91900fe0c47\nengineBoots 135\nold"..., 4096) = 4096
18:15:56.142876 read(3, "e580a3dec91900fe0c47\nengineBoots"..., 4096) = 4096
-----------------------
Found that snmpapp.conf was 33 Megs, moving and recreating the file as now
fixed the issue. This file is filled with entries like
engineBoots 7
oldEngineID 0x800007e580d97c910566e83d48
engineBoots 8
oldEngineID 0x800007e580d97c910566e83d48
engineBoots 8
oldEngineID 0x800007e580d97c910566e83d48
so is it particularly needed? Or can I just setup a nightly log rotation
on it?
Thanks so much for your help!
Jimmy
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users