Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. NetXMS server seg. faults on libnxsnmp.so

NetXMS server seg. faults on libnxsnmp.so

Scheduled Pinned Locked Moved Support
16 Posts 4 Posters 50.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    Anders
    wrote on last edited by
    #4

    Hi,

    Hmm... I've added the following entries to my configuration file: netxmsd.conf but for some reason it doesn't produce any dump upon crashing.

    CreateCrashDumps = yes
    FullCrashDumps = yes
    DumpDirectory = /tmp/netxms # Yes, this folder exists and I've even tried to changing the permission to 777 just to be safe.
    

    Any idea what I could  be doing wrong?

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #5

      Right now "CreateCrashDumps" is Windows only parameter.
      You can run server under gdb:gdb /path/to/netxmsd
      Then in GDB prompt:(gdb) run -c /path/to/netxmsd.conf -D3

      When it crash, do thread apply all bt

      1 Reply Last reply
      0
      • A
        A
        Anders
        wrote on last edited by
        #6

        Hi,

        A crash dump has been submited to [email protected]

        Regards

        Anders

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #7

          Hi!

          Is it possible that there are low memory condition on NetXMS server? From crash dump it looks like some internal memory allocation fails.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • A
            A
            Anders
            wrote on last edited by
            #8

            Hi Victor,

            You are right, it seems to be some sort of low memory condition.

            The machine that's hosting my NetXMS server is equiped with 2GB of ram (I doubt that NetXMS should require more than that?).
            A quick process listing shows that netxmsd uses 84% (!) of the available system memory.

            Could this maybe be caused by a to high NumberOfDataCollectors value? I have mine set to 50, as I'm monitoring about 50-60 machines with about 5-20 DCIs / machine, every 1min - 5min.

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #9

              Hi!

              Looks like memory leak in netxmsd. Can you please add to monitoring memory used by netxmsd process and send me how it changes over time?

              Best regards,
              Victor

              1 Reply Last reply
              0
              • A
                A
                Anders
                wrote on last edited by
                #10

                Sure... just to clarify, you want me to monitor the memory usage over time of the netxmsd process?

                1 Reply Last reply
                0
                • V
                  V
                  Victor Kirhenshtein
                  wrote on last edited by
                  #11

                  Yes.

                  1 Reply Last reply
                  0
                  • A
                    A
                    Anders
                    wrote on last edited by
                    #12

                    I activated monitoring of the memory usage for the netxmsd process yesterday just after your message, this is what has been logged so far (see the attachment).

                    For now, I have built a script that automatically checks for a netxmsd process and if it isn't running, it will be started, therefor the "rollercoaster" look on the memory usage graph 🙂


                    NetXMS memory usage.txt

                    1 Reply Last reply
                    0
                    • V
                      V
                      Victor Kirhenshtein
                      wrote on last edited by
                      #13

                      Hi!

                      I have found and fixed some memory leaks, but no one of them seems to be able to eat memory so fast. However, can you try to install the following version: https://www.netxms.org/download/dev/netxms-1.0.12-rc-19062011.tar.gz? If this will not help, could you please run your server under valgrind for 5-10 minutes and send me the log? Command for running server under valgrind is following:

                      valgrind --leak-check=full --undef-value-errors=no --log-file=/tmp/netxmsd_valgrind.log /opt/netxms/bin/netxmsd -D 5

                      To stop server, enter command "down" on server's prompt.

                      Best regards,
                      Victor

                      1 Reply Last reply
                      0
                      • A
                        A
                        Anders
                        wrote on last edited by
                        #14

                        Sure, I've just made a deb-package with the following configuration options, I will keep you informed about the progress...

                        dh_auto_configure -- --prefix=/usr/ --with-openssl --with-gd --with-pgsql --with-nxhttpd --with-agent --with-server --with-client
                        
                        1 Reply Last reply
                        0
                        • A
                          A
                          Anders
                          wrote on last edited by
                          #15

                          Seems as if the 1.0.12-RC19062011 solved my problem 🙂

                          The netxmsd daemon has been stable on about 25-30mb of memory for over 24h now.

                          1 Reply Last reply
                          0
                          • A
                            A
                            Anders
                            wrote on last edited by
                            #16

                            Hi,

                            Just a follow up, the problem seems to be solved, I haven't had any crashes since I upgraded my NetXMSd service to the provided RC-version and the memory seems to be stable on 25-27mb.

                            Thanks Victor!

                            Regards

                            Anders

                            1 Reply Last reply
                            0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            Powered by NodeBB Contributors
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups