How to increase WebSphere Application Server V8.5 Liberty profile heap size in Eclipse?

I have a Liberty Profile WebSphere Application Server V8.5 profile in eclipse. My webapp provides java.lang.OutOfMemoryError, and so I need to increase the heap size.

As this and this post suggested I change server.xmlby adding a tag jvmEntries(it was not previously):

<server description="new server">

    <!-- Enable features -->
    <featureManager>
        <feature>jsp-2.2</feature>
        <feature>localConnector-1.0</feature>
        <feature>jpa-2.0</feature>
    </featureManager>

    <!-- To access this server from a remote client add a host attribute to 
        the following element, e.g. host="*" -->
    <httpEndpoint httpPort="9080" httpsPort="9443"  id="defaultHttpEndpoint" />

    <jvmEntries initialHeapSize="1024" maximumHeapSize="2048" />
    <applicationMonitor updateTrigger="mbean" />
    <webApplication id="app" location="app.war"
        name="app" />
</server>

But eclipse shows it as an invalid tag with the following error:

cvc-complex-type.2.4.a: , 'jvmEntries'. "{include, variable, trustAssociation, applicationMonitor, application, classloading, basicRegistry, bundleRepository, osgiApplication, , authCache, jaasLoginModule, jaasLoginContextEntry, cdiContainer, channelelfw, tcpOptions, library, collectMember, hostAuthInfo, managedExecutorService, connectionManager, contextService, DistributedMap, enterpriseApplication, webApplication, httpDispatcher, mimeTypes, httpEncoding, virtualHost, httpOptions, httpAccessLogging, httpEndpoint, authData, dataSource, jdbcDriver, jndiEntry, jpa, jspEngine, , , featureManager, config, customLdapFilterProperties, edirectoryLdapFilterProperties, domino50LdapFilterProperties, netscapeLdapFilterProperties, ldapRegistry, securewayLdapFilterProperties, iplanetLdapFilterProperties, idsLdapFilterProperties, activedLdapFilterProperties, logging, ltpa, ejbContainer, monitor, oauthProvider, oauth-role, remoteFileAccess, ,
quickStartSecurity, pluginConfiguration, webContainer, httpSession, httpSessionDatabase, sslDefault, keyStore, ssl, sslOptions, timedOperation, , webAppSecurity, federatedRepository, zosLogging, authorization-role} '.

?

+4
2

- jvm.options , :

-Xms512m
-Xmx1024m

Liberty

Eclipse Servers New > Server Environment File > jvm.options

+7
0

All Articles