我在eclipse中拥有一个WebSphere应用服务器V8.5 Liberty Profile。我的Web应用程序一直报java.lang.OutOfMemoryError,因此我需要增加堆大小。
如此和此帖子建议,我更改了
但是Eclipse将其显示为无效标记,并显示以下错误:
cvc-complex-type.2.4.a:在元素“jvmEntries”之后找到无效内容。其中一个应该是:'{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,quickStartSecurity,pluginConfiguration,webContainer,httpSession,httpSessionDatabase,sslDefault,keyStore,ssl,sslOptions,timedOperation,transaction,webAppSecurity,federatedRepository,zosLogging,authorization-roles}'。
那么我应该如何增加堆大小呢?
如此和此帖子建议,我更改了
server.xml
,添加了jvmEntries
标签(之前没有)。<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>
但是Eclipse将其显示为无效标记,并显示以下错误:
cvc-complex-type.2.4.a:在元素“jvmEntries”之后找到无效内容。其中一个应该是:'{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,quickStartSecurity,pluginConfiguration,webContainer,httpSession,httpSessionDatabase,sslDefault,keyStore,ssl,sslOptions,timedOperation,transaction,webAppSecurity,federatedRepository,zosLogging,authorization-roles}'。
那么我应该如何增加堆大小呢?