title: How to increase the heap size of WebSphere Application Server V8.5 Liberty Profile in Eclipse?
body: <p>I have a WebSphere Application Server V8.5 Liberty Profile in eclipse. My webapp has been giving <code>java.lang.OutOfMemoryError</code> and thus I need to increase the heap size.</p>
  
  <p>As <a href="https://blakboard.wordpress.com/2013/05/15/how-to-configure-heap-size-for-websphere-application-server/" rel="noreferrer">this</a> and <a href="http://www-01.ibm.com/support/docview.wss?uid=swg21321221" rel="noreferrer">this</a> post suggested I changed the <code>server.xml</code>, by adding <code>jvmEntries</code> tag (It was not previously there):</p>
  
  <pre><code>&lt;server description="new server"&gt;
  
      &lt;!-- Enable features --&gt;
      &lt;featureManager&gt;
          &lt;feature&gt;jsp-2.2&lt;/feature&gt;
          &lt;feature&gt;localConnector-1.0&lt;/feature&gt;
          &lt;feature&gt;jpa-2.0&lt;/feature&gt;
      &lt;/featureManager&gt;
  
      &lt;!-- To access this server from a remote client add a host attribute to 
          the following element, e.g. host="*" --&gt;
      &lt;httpEndpoint httpPort="9080" httpsPort="9443"  id="defaultHttpEndpoint" /&gt;
  
      &lt;jvmEntries initialHeapSize="1024" maximumHeapSize="2048" /&gt;
      &lt;applicationMonitor updateTrigger="mbean" /&gt;
      &lt;webApplication id="app" location="app.war"
          name="app" /&gt;
  &lt;/server&gt;
  </code></pre>
  
  <p>But eclipse shows it as an invalid tag, with following error:</p>
  
  <blockquote>
    <p>cvc-complex-type.2.4.a: Invalid content was found starting with
    element 'jvmEntries'. One of '{include, variable, trustAssociation,
    applicationMonitor, application, classloading, basicRegistry,
    bundleRepository, osgiApplication, authentication, authCache,
    jaasLoginModule,   jaasLoginContextEntry, cdiContainer, channelfw,
    tcpOptions, library, collectiveMember, hostAuthInfo,
    managedExecutorService, connectionManager, contextService,
    distributedMap, enterpriseApplication, webApplication, httpDispatcher,
    mimeTypes, httpEncoding,   virtualHost, httpOptions,
    httpAccessLogging, httpEndpoint, authData, dataSource, jdbcDriver,
    jndiEntry, jpa, jspEngine, fileset, executor, featureManager, config,
    customLdapFilterProperties, edirectoryLdapFilterProperties,
    domino50LdapFilterProperties,   netscapeLdapFilterProperties,
    ldapRegistry, securewayLdapFilterProperties,
    iplanetLdapFilterProperties, idsLdapFilterProperties,
    activedLdapFilterProperties, logging, ltpa, ejbContainer, monitor,
    oauthProvider, oauth-roles, remoteFileAccess, administrator-role,<br>
    quickStartSecurity, pluginConfiguration, webContainer, httpSession,
    httpSessionDatabase, sslDefault, keyStore, ssl, sslOptions,
    timedOperation, transaction, webAppSecurity, federatedRepository,
    zosLogging, authorization-roles}' is expected.</p>
  </blockquote>
  
  <p>How should I increase the heap size then?</p>