This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hi, my wireshark crashed over night.

Short Version -> I had two instances of Wireshark running. For a long time capture over the weekend I configured multiple capture files (One file every 100MB). It seems like there was a memory overrun anyway. Any idea how to prevent my Shark from crashing?

Long Version -> I'm testing a network device with different scenarios. Tests might run over several days. To have a capture in case of errors occuring I use a Network Tap and a Monitor PC with two NIC and Wireshark installed. For both Wireshark instances (one for send and one for receive direction) a ring buffer with 200 files x 100MB is configured. The OS is Win Server2008R2 64Bit, the message I get is something like "GLib-Error**: gmem.c:136: failed to allocate 429496295 bytes aborting..." The capture aborted after about 7GB of capturefiles, 4GB of memory are installed on the machine.

I could try to use a second monitor PC, more RAM or a different OS but I hope you give me some ideas before I spend some hours on experiments :)

asked 02 Nov '11, 06:26

ratlos's gravatar image

ratlos
1111
accept rate: 0%


Hi,

From the Wireshark Wiki:

If Wireshark is running out of memory, that probably means that you're letting it run for a very long time or you're analyzing very large capture files. You may find that another tool does what you want better than Wireshark. Use dumpcap for long term capturing, it's intended for this purpose, or see Tools for other tools which may be more suitable for the task

dumpcap

permanent link

answered 02 Nov '11, 07:18

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%

edited 02 Nov '11, 09:30

multipleinterfaces's gravatar image

multipleinte...
1.3k152340

Hi Anders,

thank you for your answer! The disadvantage in my case is, that I want some window where I can see the live traffic (at least during working hours). So a possibility would be to use dumpshark and wireshark simultanously. Dumpshark running with a ringbuffer while wireshark is opened and closed by a script at regular intervals (which should clean up the memory).

But perhaps there is another tool just for the memory cleaning? Or some other way to handle this bug?

(02 Nov '11, 09:41) ratlos
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×41
×23
×14
×5

question asked: 02 Nov '11, 06:26

question was seen: 4,158 times

last updated: 02 Nov '11, 09:41

p​o​w​e​r​e​d by O​S​Q​A