title: java OutOfMemoryError exception and Metaspace error while multiple users are login in the application
body: <p>In my application while multiple users, at least <strong>10 users</strong>, are login in from different locations at the same time, the application is showing <strong>2 errors</strong> :- </p>
  
  <p>1) the <strong>OutOfMemoryError</strong> exception (heap space/ GC error)<br>
  and,</p>
  
  <p>2) the <strong>Metaspace error</strong> (in jdk-8 environment).</p>
  
  <p>For your information, the application is running on 64-bit windows 7 system and is using jdk-8 environment.
  The jvm parameters are set to 1.5Gb in the environment, like below:-</p>
  
  <p><strong>-XX:PermSize=1024m -XX:MaxPermSize=1512m</strong></p>
  
  <p>I need 2 guidance:</p>
  
  <p><em>1) Please suggest a solution to solve the GC problem, so that <strong>Any number of Users</strong> can access the application at the same time.</em></p>
  
  <p><em>2) Also please provide a <strong>Concept</strong> on how to solve metaspace error and how to increase the default metaspace size of the application.</em></p>
  
  <p>Thanks.</p>