您的位置:首页 > 编程语言 > Java开发

Worklight Console initialization failed.Logged Exception: java.lang.OutOfMemoryError: Java heap spac

2015-09-08 10:10 726 查看
错误信息:

[ERROR ] readExistingData failed

Java heap space

[WARNING ] Script processing failure

error in script file line: 87 java.lang.OutOfMemoryError: Java heap space

[INFO ] Database closed

[ERROR ] could not reopen database
[ERROR ] SRVE0315E: 发生了异常:com.ibm.ws.webcontainer.webapp.WebAppErrorReport: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: java.lang.OutOfMemoryError:
Java heap space

at com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized(AuthenticationFilter.java:300)

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: java.lang.OutOfMemoryError: Java heap space

... 5 more

解决方法:

经验证是 Worklight Development Server 的 JVM 内存空间设置的太小

在 Worklight Development Server 中的 jvm.options 中增大 jvm 空间即可解决问题:
-Dfile.encoding=UTF-8

-Duser.language=zh

-Duser.country=CN

-Djava.awt.headless=true

-Dwas.debug.mode=true

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=10777

-Dcom.ibm.websphere.ras.inject.at.transform=true

-Xmx1024m
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: