title: How to increase Heap and Perm memory in Jboss?
body: <p>The real problem is that I don´t know how to increase the Perm size memory base on my RAM memory available on my server.
   I'm in the config file and I can see that I have reserved for the heap memory 8192Mb and MaxPermSize as 1024m. </p>
  
  <pre><code>JAVA_OPTS="-Xms1024m -Xmx8192m -XX:MaxPermSize=1024m -Djava.net.preferIPv4Stack=true"
  JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
  </code></pre>
  
  <p>The total memory available on my server is 9Gb. As far as I know, the Perm memory space doesn´t belong to the heap memory. I'm using 8Gb for the Heap memory and 1Gb for the Perm.
  So, if I want to increase the Perm Memory I will need to reduce the Heap memory, for example to 7GB and then increase the Perm Memory to 2GB, right?
  Or I can leave 8Gb for the heap memory and also increase to 2Gb the PermSize.</p>
  
  <p>I'm doing this because I received this error from my server. But I´m not sure what is the problem, because as you can see the Eden space is full but also the PermGen is full.
  But the problem can be in the configuration if I have 9GB ram memory available on my server and I have 8Gb reserved for the heap memory and 1 for the perm memory, probably the memory reserved for one space is not fully taken.</p>
  
  <pre><code>Heap
   PSYoungGen      total 1937408K, used 1119744K [0x0000000755500000, 0x00000007ff680000, 0x0000000800000000)
    eden space 1119744K, 100% used [0x0000000755500000,0x0000000799a80000,0x0000000799a80000)
    from space 817664K, 0% used [0x0000000799a80000,0x0000000799a80000,0x00000007cb900000)
    to   space 811008K, 0% used [0x00000007cde80000,0x00000007cde80000,0x00000007ff680000)
   ParOldGen       total 5592064K, used 5591839K [0x0000000600000000, 0x0000000755500000, 0x0000000755500000)
    object space 5592064K, 99% used [0x0000000600000000,0x00000007554c7ce0,0x0000000755500000)
   PSPermGen       total 261120K, used 260769K [0x00000005c0000000, 0x00000005cff00000, 0x0000000600000000)
    object space 261120K, 99% used [0x00000005c0000000,0x00000005cfea86c8,0x00000005cff00000)
  </code></pre>