2 Replies Latest reply on Dec 7, 2015 1:51 AM by veeras

    Jboss 7.1.1 Final occuping huge physical RAM of linux

    veeras

      I am using jboss 7.1.1 Final with jdk version 1.6.0_45 and while starting jboss i just configured 5gb for heap and 1gb for non-heap. My Linux complete RAM size is around 60GB. After starting jboss some time i can see from linux top command its occupied ram is 50GB. Moreover from jconsole & jvisualvm tool i can see my jboss ram utilization keep up & down reaching max 90% ( approx. using between 4-5 gb)



      top - 11:52:35 up 1 day, 17:40,  4 users,  load average: 0.89, 1.20, 1.27
      Tasks: 174 total,   1 running, 173 sleeping,   0 stopped,   0 zombie
      Cpu(s): 12.1%us,  1.8%sy,  0.0%ni, 85.8%id,  0.0%wa,  0.1%hi,  0.2%si,  0.0%st
      Mem:   62.948G total,   49.872G used,   13.076G free,  347.309M buffers
      Swap: 8197.219M total,   0.000k used, 8197.219M free, 2053.590M cached



      And Jboss parameters are like this :

      -D[Standalone] -server -Xms5120m -Xmx5120m -XX:MaxPermSize=1024m -XX:PermSize=1024m -Djava.net.preferIPv4Stack=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+UseParNewGC


      Please help out why more Linux RAM is consumed ????


      Regards

      James

        • 1. Re: Jboss 7.1.1 Final occuping huge physical RAM of linux
          wdfink

          That mght not consumed by the java process, but Linux might use free memory to cache things. Only issue is if SWAP is used, then the physical memory is swapped to disc which is mostly a performance killer.

          You should check waht the java process consume.

          Also I recommend to use a Java7 or 8 JVM to have the latest fixes.

          • 2. Re: Jboss 7.1.1 Final occuping huge physical RAM of linux
            veeras

            Thanks Fink for your reply. I checked java process from top command its showing RES: 5gb and less. And i stopped jboss for 2 days still linux RAM is not reduced so i just rebooted linux machine and started jboss again after some time RAM reached to 40+ GB. How do i prove/check that SWAP is consuming that memory ?.  Moreover in TOP command SWAP consumed memory is zero.I will go with java 7 version as you suggested. Thanks once again Fink.

             

            Regards,

            James