Worklight 控制台初始化 failed.Logged 异常:org.hsqldb.HsqlException:内存不足

Worklight Console initialization failed.Logged Exception: org.hsqldb.HsqlException: Out of Memory

当我尝试在 IBM worklight 环境中部署我的应用程序时出现以下错误。突然我遇到了这个错误,但早些时候它运行良好。

请问有没有哪位大神帮帮我,有没有我在项目中修改的设置。

错误是:

[AUDIT   ] CWWKG0016I: Starting server configuration update.
[AUDIT   ] CWWKG0017I: The server configuration was successfully updated in 0.100 seconds.
[AUDIT   ] CWWKT0017I: Web application removed (default_host): http://ADMINIB-9PGB9N2.in.ibm.com:10080/GDMSLoginApp/
[AUDIT   ] CWWKZ0009I: The application GDMSLoginApp has stopped successfully.
[AUDIT   ] CWWKG0016I: Starting server configuration update.
[AUDIT   ] CWWKG0017I: The server configuration was successfully updated in 0.061 seconds.
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://ADMINIB-9PGB9N2.in.ibm.com:10080/GDMSLoginApp/
[ERROR   ] out of memory processing logC:\GDMS\GDMSmobileMenu2\WorklightServerConfig\servers\worklight\workarea\org.eclipse.osgi\bundles\data\temp\default_node\SMF_WebContainer\GDMSLoginApp\GDMSLoginApp/hsqldb/WRKLGHT line: 4
Java heap space
[ERROR   ] could not reopen database
Out of Memory
[ERROR   ] FWLSE0188E: Failed to connect to HSQL database : Cannot create PoolableConnectionFactory (Out of Memory) [project GDMSLoginApp]
[ERROR   ] FWLST0003E: ========= Failed starting project /GDMSLoginApp [project GDMSLoginApp]
Error creating bean with name 'txManager' defined in URL [wsjar:file:/C:/GDMS/GDMSmobileMenu2/WorklightServerConfig/shared/resources/worklight-jee-library-6.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'brokerSessionFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerSessionFactory' defined in URL [wsjar:file:/C:/GDMS/GDMSmobileMenu2/WorklightServerConfig/shared/resources/worklight-jee-library-6.1.0.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'rssBrokerDS' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rssBrokerDS' defined in URL [wsjar:file:/C:/GDMS/GDMSmobileMenu2/WorklightServerConfig/shared/resources/worklight-jee-library-6.1.0.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'worklight-direct' while setting bean property 'targetDataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklight-direct' defined in URL [wsjar:file:/C:/GDMS/GDMSmobileMenu2/WorklightServerConfig/shared/resources/worklight-jee-library-6.1.0.jar!/conf/spring-server-core.xml]: Invocation of init method failed; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Out of Memory)
[AUDIT   ] CWWKZ0001I: Application GDMSLoginApp started in 1.834 seconds.
[ERROR   ] SRVE0315E: An execption occurred: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: org.hsqldb.HsqlException: Out of Memory
    at com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized(AuthenticationFilter.java:305)
    at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:111)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
    at [internal classes]
Caused by: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: org.hsqldb.HsqlException: Out of Memory
    ... 5 more

这里的问题是日志中的以下内容:

Logged Exception: org.hsqldb.HsqlException: Out of Memory

尝试增加 Eclipse 的可用内存。

  1. 关闭 Eclipse
  2. 打开eclipse.ini,位于Eclipse安装文件夹
  3. 在文件中查找以下内容(数字可能不同):

    -vmargs
    -Xms128m
    -Xmx512m

将数字增加到 512 或 1024,然后重新打开 Eclipse。

尽管在 eclipse.ini 内更改了我的内存设置,但我 运行 遇到了同样的问题。通过执行以下步骤解决了该问题:

  1. 通过在“服务器”选项卡中右键单击它来停止您的 Liberty Worklight Development Server
  2. 右击它 select "Clean..."
  3. 再次启动您的 Liberty 服务器
  4. 根据需要重新安装您的 .adapters 和 .wlapps
  5. 再试一次