2 Replies Latest reply on Feb 27, 2006 10:21 PM by Clebert Suconic

    Jboss without rebooting for 15 days I've lost over 1.5 GB of

    Hillel Bilman Newbie

      Hi,

      I've now been running Jboss without rebooting for 15 days and decided to reboot as I've lost over 1.5 GB of memory.

      Memory has gone from 572196 to 1956684 on reboot.

      I'm using the standard run.conf.

      # Specify options to pass to the Java VM.
      #
      if [ "x$JAVA_OPTS" = "x" ]; then
      JAVA_OPTS="-server -Xms128m -Xmx128m"
      fi

      java version "1.4.2_10"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)

      Jboss version: jboss-4.0.1sp1

      Do you have any advise on how to set the options to the VM to prevent losing so much memory??


      After taking down Jboss after 15 days before a reboot I had:

      # vmstat 1 10
      procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
      r b swpd free buff cache si so bi bo in cs us sy id wa
      0 0 0 572196 224760 944200 0 0 0 9 3 4 1 0 99 0
      0 0 0 572196 224760 944200 0 0 0 0 1010 20 0 0 100 0
      0 0 0 572196 224760 944200 0 0 0 0 1004 16 0 0 100 0
      0 0 0 572196 224760 944200 0 0 0 56 1008 26 0 0 100 0
      0 0 0 572196 224760 944200 0 0 0 0 1004 12 0 0 100 0
      0 0 0 572196 224760 944200 0 0 0 0 1005 14 0 0 100 0
      0 0 0 572196 224760 944200 0 0 0 0 1004 12 0 0 100 0
      0 0 0 572196 224760 944200 0 0 0 0 1005 20 0 0 100 0
      0 0 0 572196 224760 944200 0 0 0 4 1005 17 0 0 100 0
      0 0 0 572196 224760 944200 0 0 0 0 1005 14 0 0 100 0


      After reboot before bringing up Jboss:

      vmstat 1 10
      procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
      r b swpd free buff cache si so bi bo in cs us sy id wa
      0 0 0 1956684 9324 47096 0 0 43 11 504 31 1 0 98 1
      0 0 0 1956748 9324 47096 0 0 0 0 1006 14 0 0 100 0
      0 0 0 1956748 9324 47096 0 0 0 0 1007 14 0 0 100 0
      0 0 0 1956828 9324 47096 0 0 0 0 1005 14 0 0 100 0
      0 0 0 1956828 9324 47096 0 0 0 0 1005 12 0 0 100 0
      0 0 0 1956828 9332 47088 0 0 0 36 1006 20 0 0 100 0
      0 0 0 1956828 9332 47088 0 0 0 0 1005 10 0 0 100 0
      0 0 0 1956956 9332 47088 0 0 0 0 1004 12 0 0 100 0
      0 0 0 1956956 9332 47088 0 0 0 0 1005 10 0 0 100 0
      0 0 0 1957020 9332 47088 0 0 0 0 1004 14 0 0 100 0

      After reboot and re-starting Jboss:

      vmstat 1 10
      procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
      r b swpd free buff cache si so bi bo in cs us sy id wa
      0 0 0 1647004 12352 157688 0 0 64 31 505 31 4 0 95 1
      0 0 0 1647004 12352 157688 0 0 0 0 1007 62 0 0 100 0
      0 0 0 1647020 12352 157688 0 0 0 96 1024 58 0 0 100 0
      0 0 0 1647020 12352 157688 0 0 0 0 1005 56 0 0 100 0
      0 0 0 1647020 12352 157688 0 0 0 0 1004 58 0 0 100 0
      0 0 0 1647020 12360 157680 0 0 0 56 1008 65 0 0 99 0
      0 0 0 1647036 12360 157680 0 0 0 0 1004 54 0 0 100 0
      0 0 0 1646972 12360 157680 0 0 0 400 1072 60 0 0 100 0
      0 0 0 1646972 12360 157680 0 0 0 0 1006 58 0 0 100 0
      0 0 0 1646972 12360 157680 0 0 0 0 1005 58 0 0 100 0

      Any help appreciated