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. SNMP Mib Explorer crash on v2.0-M2

SNMP Mib Explorer crash on v2.0-M2

Scheduled Pinned Locked Moved Support
15 Posts 4 Posters 56.5k 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.
  • K
    K
    knut4linux
    wrote on last edited by
    #5

    I know i've to encrease my heap size. Bit I've no idea where i've to do it... Is there a java config file available or is a misstake in tomcat configuration?

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

      Is it web UI or desktop console? For web UI, you have to change -Xms and -Xmx options in tomcat startup script. For desktop console, you can edit nxmc.ini file and change Xms and Xmx options there.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • K
        K
        knut4linux
        wrote on last edited by
        #7

        Oh no  :-[, is embarrassing to me. I resized the heap size for nxmc application. Thats it...

        1 Reply Last reply
        0
        • N
          N
          ndaami
          wrote on last edited by
          #8

          Hi Victor,

          Can you give us more details about -Xms and -Xmx options  and how/where can we change it ?

          1 Reply Last reply
          0
          • T
            T
            tomaskir
            wrote on last edited by
            #9

            @ndaami said in SNMP Mib Explorer crash on v2.0-M2:

            Hi Victor,

            Can you give us more details about -Xms and -Xmx options  and how/where can we change it ?

            They need to be set for Tomcat.
            You need to pass -Xms and -Xmx startup parameters to the JVM.

            How to set them differs depending on how you installed Tomcat.
            Depending on your Tomcat packaging, you need to set those in the Tomcat startup script (usually '/etc/init.d/tomcat8' or similiar).
            For some distributions you can however modify '/etc/default/tomcat8' where those parameters are kept.

            I suggest looking at the documentation and finding out how your package sets the 'JAVA_OPTS' Tomcat parameters.

            1 Reply Last reply
            0
            • N
              N
              ndaami
              wrote on last edited by
              #10

              thanks for your reply,

              okay i understood the idea ! My tomcat version is 8 and his default JAVA_OPTS is "-Djava.awt.headless=true -Xms128M" but i have some questions.

              what's the difference between Xms and Xmx options ?
              how to optimize such parameters, known that my os is ubuntu server 14 with 8 Gb RAM ?

              finally should i use "-Djava.awt.headless=true -Xms1024M -Xmx1024M"

              thanks again.

              1 Reply Last reply
              0
              • T
                T
                tomaskir
                wrote on last edited by
                #11

                @ndaami said in SNMP Mib Explorer crash on v2.0-M2:

                thanks for your reply,

                okay i understood the idea ! My tomcat version is 8 and his default JAVA_OPTS is "-Djava.awt.headless=true -Xms128M" but i have some questions.

                what's the difference between Xms and Xmx options ?
                how to optimize such parameters, known that my os is ubuntu server 14 with 8 Gb RAM ?

                finally should i use "-Djava.awt.headless=true -Xms1024M -Xmx1024M"

                thanks again.

                Xms is the amount of memory Tomcat allocates on startup.
                Xmx is the max memory Tomcat will allocate.

                What these values should be set at depends on how many applications are running on your Tomcat, and how many users are using them.
                For NetXMS Console, I would recommend atleast 256MB of RAM per concurrent user of your web UI.

                All together I recommend something like this:

                -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Xms????M -Xmx????M -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC
                

                Replace the ?s with the amount of memory you want to allocate to Tomcat.
                There are also many articles on the web on Tomcat tuning.

                1 Reply Last reply
                0
                • N
                  N
                  ndaami
                  wrote on last edited by
                  #12

                  i have tried with "-Djava.awt.headless=true -Xms2048M -Xmx2048M" and with your suggestion but i cannot open the MIB Explorer on Web UI [chrome  and FireFox browser].
                  it shows processing for some times and we got nothing however in the windows console app it work without any problem.
                  it's a fresh install did i forget something to intall ?

                  please help

                  1 Reply Last reply
                  0
                  • T
                    T
                    tomaskir
                    wrote on last edited by
                    #13

                    Please check in Server Manager (http://[ip/fqdn]:8080/manager/status) if the correct memory really is set.

                    You should see under JVM something like this:
                    JVM
                    Free memory: 423.20 MB Total memory: 495.37 MB Max memory: 1007.37 MB

                    1 Reply Last reply
                    0
                    • N
                      N
                      ndaami
                      wrote on last edited by
                      #14

                      sorry but i got http 404 not found, it seems that ubuntu repositroy does not install manager app auto so i have to resolve this issues and i will return to the forum tomorow

                      thanks for you help.

                      1 Reply Last reply
                      0
                      • N
                        N
                        ndaami
                        wrote on last edited by
                        #15

                        hi tomaskir,

                        your guess was correct. The memory was unset.
                        After a search on the web,  i made the change on CATALINA_OPTS="-Xms2048M -Xmx2048M".
                        this change should be in setenv.sh file (create it if doesn't exist) as [export CATALINA_OPTS="-Xms2048M -Xmx2048M"] in the same directory as catalina.sh wich will load it at the start. After  a tomcat restart i was able to open MIB Explorer on Web interface.

                        thanks again and have a nice day  🙂

                        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