{"action":"created","issue":{"url":"https://api.github.com/repos/aol/moloch/issues/476","repository_url":"https://api.github.com/repos/aol/moloch","labels_url":"https://api.github.com/repos/aol/moloch/issues/476/labels{/name}","comments_url":"https://api.github.com/repos/aol/moloch/issues/476/comments","events_url":"https://api.github.com/repos/aol/moloch/issues/476/events","html_url":"https://github.com/aol/moloch/issues/476","id":155965822,"number":476,"title":"Capture crash with gmem.c error","user":{"login":"SUBRON6","id":19434998,"avatar_url":"https://avatars.githubusercontent.com/u/19434998?v=3","gravatar_id":"","url":"https://api.github.com/users/SUBRON6","html_url":"https://github.com/SUBRON6","followers_url":"https://api.github.com/users/SUBRON6/followers","following_url":"https://api.github.com/users/SUBRON6/following{/other_user}","gists_url":"https://api.github.com/users/SUBRON6/gists{/gist_id}","starred_url":"https://api.github.com/users/SUBRON6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUBRON6/subscriptions","organizations_url":"https://api.github.com/users/SUBRON6/orgs","repos_url":"https://api.github.com/users/SUBRON6/repos","events_url":"https://api.github.com/users/SUBRON6/events{/privacy}","received_events_url":"https://api.github.com/users/SUBRON6/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-20T13:42:02Z","updated_at":"2016-05-20T14:36:49Z","closed_at":null,"body":"\r\n**Elasticsearch version**: 2.3.0\r\n\r\n**Moloch version**: v0.14.0\r\n\r\n**OS name and version**: CentOS 7.2.1511\r\n\r\n**Provide logs, stack traces and steps to reproduce**:\r\n\r\nCapture will run until it consumes all memory on the box.  we see the same behavior with 256G and 512G in the box.  The more traffic we throw at a port the faster we see this crash.  Some processes will run  12 to 24 hours and some will last only 30 minutes under heavy load\r\n\r\nBT info\r\n\r\ng_logv (log_domain=0x5de53a \"GLib\", log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7fffbb7fd4c8) at gmessages.c:1084\r\n1084              g_private_set (&g_log_depth, GUINT_TO_POINTER (depth));\r\n#0  g_logv (log_domain=0x5de53a \"GLib\", log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7fffbb7fd4c8) at gmessages.c:1084\r\n#1  0x0000000000480972 in g_log (log_domain=log_domain@entry=0x5de53a \"GLib\", log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0x5e30e8 \"%s: failed to allocate %lu bytes\")\r\n    at gmessages.c:1118\r\n#2  0x000000000047f64e in g_malloc (n_bytes=n_bytes@entry=18446744071563699784) at gmem.c:99\r\n#3  0x000000000048c3bc in g_slice_alloc (mem_size=mem_size@entry=18446744071563699784) at gslice.c:1025\r\n#4  0x0000000000445570 in moloch_size_alloc (size=-2145851832, size@entry=-2145851840, zero=zero@entry=0) at main.c:170\r\n#5  0x000000000044bdc4 in moloch_db_save_session (session=session@entry=0x7fff4407c730, final=final@entry=0) at db.c:341\r\n#6  0x00000000004640f7 in moloch_session_mid_save (session=session@entry=0x7fff4407c730, tv_sec=1463740502) at session.c:334\r\n#7  0x00000000004612df in moloch_packet_thread (threadp=0x5) at packet.c:548\r\n#8  0x000000000049589f in g_thread_proxy (data=0x15ce990) at gthread.c:780\r\n#9  0x00007ffff6c93dc5 in start_thread (arg=0x7fffbb7fe700) at pthread_create.c:308\r\n#10 0x00007ffff5a3228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aol/moloch/issues/comments/220623271","html_url":"https://github.com/aol/moloch/issues/476#issuecomment-220623271","issue_url":"https://api.github.com/repos/aol/moloch/issues/476","id":220623271,"user":{"login":"awick","id":427321,"avatar_url":"https://avatars.githubusercontent.com/u/427321?v=3","gravatar_id":"","url":"https://api.github.com/users/awick","html_url":"https://github.com/awick","followers_url":"https://api.github.com/users/awick/followers","following_url":"https://api.github.com/users/awick/following{/other_user}","gists_url":"https://api.github.com/users/awick/gists{/gist_id}","starred_url":"https://api.github.com/users/awick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awick/subscriptions","organizations_url":"https://api.github.com/users/awick/orgs","repos_url":"https://api.github.com/users/awick/repos","events_url":"https://api.github.com/users/awick/events{/privacy}","received_events_url":"https://api.github.com/users/awick/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T14:36:49Z","updated_at":"2016-05-20T14:36:49Z","body":"From the stats page or error log can you tell where the memory is being used?  Disk Q, Packet Q, something else?\r\n\r\nWhat is the traffic rate (bits/sec, packets/sec) you are trying to capture"}}
{"actor":{"display_login":"awick"}}