-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot allocate memory #426
Comments
Hi @ibaques That error is raised by libpcap so you will likely have the same problem with other capturing tools using the same library. I haven't experienced this problem myself and a quick search hasn't provided any useful info, so I'm not sure how this can be fixed (or if the application has something it can configure to make libpcap work). Regards |
Is this error still happening? Does it also happen with other libpcap based tools like tcpdump, ngrep, etc? |
Yes, the error only appears with sngrep.
El vie, 24 feb 2023 11:25, Kaian ***@***.***> escribió:
… Is this error still happening? Does it also happen with other libpcap
based tools like tcpdump, ngrep, etc?
—
Reply to this email directly, view it on GitHub
<#426 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQECMT7NWDRMAW3PQ76K3WZCECLANCNFSM6AAAAAAT6ZBZPU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Can you provide the sngrep version, command line used and the output of sngrep -D ? Thanks! |
sngrep - 1.4.8
sngrep -c
CentOS 6
ActionID: 1 ActionName: up Key: 259 ()
ActionID: 1 ActionName: up Key: 107 (k)
ActionID: 2 ActionName: down Key: 258 ()
ActionID: 2 ActionName: down Key: 106 (j)
ActionID: 3 ActionName: left Key: 260 ()
ActionID: 3 ActionName: left Key: 104 (h)
ActionID: 4 ActionName: right Key: 261 ()
ActionID: 4 ActionName: right Key: 108 (l)
ActionID: 5 ActionName: delete Key: 330 ()
ActionID: 6 ActionName: backspace Key: 263 ()
ActionID: 6 ActionName: backspace Key: 8 ()
ActionID: 6 ActionName: backspace Key: 127 ()
ActionID: 7 ActionName: npage Key: 338 ()
ActionID: 7 ActionName: npage Key: 6 ()
ActionID: 8 ActionName: ppage Key: 339 ()
ActionID: 8 ActionName: ppage Key: 2 ()
ActionID: 9 ActionName: hnpage Key: 4 ()
ActionID: 10 ActionName: hppage Key: 21 ()
ActionID: 10 ActionName: hppage Key: 0 ()
ActionID: 11 ActionName: begin Key: 262 ()
ActionID: 11 ActionName: begin Key: 1 ()
ActionID: 12 ActionName: end Key: 360 ()
ActionID: 12 ActionName: end Key: 5 ()
ActionID: 13 ActionName: pfield Key: 259 ()
ActionID: 14 ActionName: nfield Key: 258 ()
ActionID: 14 ActionName: nfield Key: 9 ()
ActionID: 15 ActionName: Key: 410 ()
ActionID: 16 ActionName: clear Key: 21 ()
ActionID: 16 ActionName: clear Key: 23 ()
ActionID: 17 ActionName: clearcalls Key: 269 (F5)
ActionID: 17 ActionName: clearcalls Key: 12 ()
ActionID: 18 ActionName: clearcallssoft Key: 273 (F9)
ActionID: 18 ActionName: clearcallssoft Key: 0 ()
ActionID: 19 ActionName: togglesyntax Key: 272 (F8)
ActionID: 19 ActionName: togglesyntax Key: 67 (C)
ActionID: 20 ActionName: colormode Key: 99 (c)
ActionID: 21 ActionName: compress Key: 115 (s)
ActionID: 23 ActionName: togglealias Key: 97 (a)
ActionID: 24 ActionName: pause Key: 112 (p)
ActionID: 25 ActionName: prevscreen Key: 27 (Esc)
ActionID: 25 ActionName: prevscreen Key: 113 (q)
ActionID: 25 ActionName: prevscreen Key: 81 (Q)
ActionID: 26 ActionName: help Key: 265 (F1)
ActionID: 26 ActionName: help Key: 104 (h)
ActionID: 26 ActionName: help Key: 72 (H)
ActionID: 26 ActionName: help Key: 63 (?)
ActionID: 27 ActionName: raw Key: 270 (F6)
ActionID: 27 ActionName: raw Key: 82 (R)
ActionID: 27 ActionName: raw Key: 114 (r)
ActionID: 28 ActionName: flow Key: 10 (Enter)
ActionID: 29 ActionName: flowex Key: 268 (F4)
ActionID: 29 ActionName: flowex Key: 120 (x)
ActionID: 30 ActionName: filters Key: 271 (F7)
ActionID: 30 ActionName: filters Key: 102 (f)
ActionID: 30 ActionName: filters Key: 70 (F)
ActionID: 31 ActionName: columns Key: 274 (F10)
ActionID: 31 ActionName: columns Key: 116 (t)
ActionID: 31 ActionName: columns Key: 84 (T)
ActionID: 32 ActionName: settings Key: 272 (F8)
ActionID: 32 ActionName: settings Key: 111 (o)
ActionID: 32 ActionName: settings Key: 79 (O)
ActionID: 33 ActionName: stats Key: 105 (i)
ActionID: 34 ActionName: columnup Key: 45 (-)
ActionID: 35 ActionName: columndown Key: 43 (+)
ActionID: 36 ActionName: sdpinfo Key: 266 (F2)
ActionID: 36 ActionName: sdpinfo Key: 100 (d)
ActionID: 37 ActionName: search Key: 267 (F3)
ActionID: 37 ActionName: search Key: 47 (/)
ActionID: 37 ActionName: search Key: 9 ()
ActionID: 38 ActionName: save Key: 266 (F2)
ActionID: 38 ActionName: save Key: 115 (s)
ActionID: 38 ActionName: save Key: 83 (S)
ActionID: 39 ActionName: select Key: 32 (Space)
ActionID: 40 ActionName: confirm Key: 10 (Enter)
ActionID: 41 ActionName: togglemedia Key: 267 (F3)
ActionID: 41 ActionName: togglemedia Key: 109 (m)
ActionID: 42 ActionName: onlymedia Key: 77 (M)
ActionID: 43 ActionName: rawpreview Key: 116 (t)
ActionID: 44 ActionName: morerawpreview Key: 57 (9)
ActionID: 45 ActionName: lessrawpreview Key: 48 (0)
ActionID: 46 ActionName: resetrawpreview Key: 84 (T)
ActionID: 47 ActionName: onlysdp Key: 68 (D)
ActionID: 49 ActionName: autoscroll Key: 65 (A)
ActionID: 48 ActionName: hintalt Key: 75 (K)
ActionID: 50 ActionName: sortprev Key: 60 (<)
ActionID: 51 ActionName: sortnext Key: 62 (>)
ActionID: 52 ActionName: sortswap Key: 122 (z)
ActionID: 53 ActionName: toggletime Key: 119 (w)
SettingId: 1 SettingName: colormode Value: request
SettingId: 2 SettingName: syntax Value: off
SettingId: 3 SettingName: syntax.tag Value: off
SettingId: 4 SettingName: syntax.branch Value: off
SettingId: 5 SettingName: hintkeyalt Value: off
SettingId: 6 SettingName: exitprompt Value: on
SettingId: 7 SettingName: capture.limit Value: 20000
SettingId: 8 SettingName: capture.device Value: any
SettingId: 9 SettingName: capture.outfile Value: (null)
SettingId: 10 SettingName: capture.buffer Value: 2
SettingId: 11 SettingName: capture.rtp Value: off
SettingId: 12 SettingName: capture.storage Value: memory
SettingId: 13 SettingName: capture.rotate Value: off
SettingId: 14 SettingName: sip.noincomplete Value: on
SettingId: 15 SettingName: sip.xcid Value: X-Call-ID|X-CID
SettingId: 16 SettingName: sip.calls Value: off
SettingId: 17 SettingName: savepath Value: /home/
SettingId: 18 SettingName: displayalias Value: off
SettingId: 19 SettingName: aliasport Value: off
SettingId: 20 SettingName: cl.scrollstep Value: 4
SettingId: 21 SettingName: cl.colorattr Value: on
SettingId: 22 SettingName: cl.autoscroll Value: off
SettingId: 23 SettingName: cl.sortfield Value: index
SettingId: 24 SettingName: cl.sortorder Value: asc
SettingId: 25 SettingName: cf.forceraw Value: on
SettingId: 26 SettingName: cf.rawminwidth Value: 40
SettingId: 27 SettingName: cf.rawfixedwidth Value: (null)
SettingId: 28 SettingName: cf.splitcallid Value: off
SettingId: 29 SettingName: cf.highlight Value: bold
SettingId: 30 SettingName: cf.scrollstep Value: 4
SettingId: 31 SettingName: cf.localhighlight Value: on
SettingId: 32 SettingName: cf.sdpinfo Value: off
SettingId: 33 SettingName: cf.media Value: off
SettingId: 34 SettingName: cf.onlymedia Value: off
SettingId: 35 SettingName: cf.deltatime Value: on
SettingId: 36 SettingName: cr.scrollstep Value: 10
SettingId: 37 SettingName: cr.nonascii Value: .
SettingId: 38 SettingName: filter.payload Value: (null)
SettingId: 39 SettingName: filter.methods Value:
REGISTER,INVITE,SUBSCRIBE,NOTIFY,OPTIONS,PUBLISH,MESSAGE,INFO,REFER,UPDATE,KDMQ
SettingId: 40 SettingName: eep.send Value: off
SettingId: 41 SettingName: eep.send.version Value: 3
SettingId: 42 SettingName: eep.send.address Value: 127.0.0.1
SettingId: 43 SettingName: eep.send.port Value: 9060
SettingId: 44 SettingName: eep.send.pass Value: (null)
SettingId: 45 SettingName: eep.send.id Value: 2002
SettingId: 46 SettingName: eep.listen Value: off
SettingId: 47 SettingName: eep.listen.version Value: 3
SettingId: 48 SettingName: eep.listen.address Value: 0.0.0.0
SettingId: 49 SettingName: eep.listen.port Value: 9060
SettingId: 50 SettingName: eep.listen.pass Value: (null)
SettingId: 51 SettingName: eep.listen.uuid Value: off
El vie, 24 feb 2023 a las 12:04, Kaian ***@***.***>)
escribió:
… Can you provide the sngrep version, command line used and the output of
sngrep -D ?
What OS and enviroment are running sngrep?
Thanks!
—
Reply to this email directly, view it on GitHub
<#426 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQECKJVE6IQWKTTJAQMGLWZCIVTANCNFSM6AAAAAAT6ZBZPU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Does this problem happen in other Centos 6 enviroments? Have you tested with latest sngrep in a newer Centos version (CentOS 8 or 9)? Regards |
A lot of times i get this message and sngrep don't start
Couldn't activate capture: can't create rx ring on packet socket: Cannot allocate memory
I've tried different pcap buffer size but doesn't works.
The server has free memory.
The text was updated successfully, but these errors were encountered: