IBM Worklight OutOfMemoryError: Java heap space 错误

在启动  IBM Worklight 6.0 server 的时候,报了一个  OutOfMemory 的错误:

[INFO    ] FWLSE4006I: Worklight Studio is running in 'development' mode. [project LesliePhone]

[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 in script file line: 87 java.lang.OutOfMemoryError: Java heap space

[ERROR   ] FWLSE0188E: Failed to connect to HSQL database : Cannot create PoolableConnectionFactory (error in script file line: 87 java.lang.OutOfMemoryError: Java heap space) [project LesliePhone]

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

在  Worklight Development Server 中的 jvm.options 中增大 jvm 空间即可解决问题:

-Dfile.encoding=UTF-8

#-Xms2048m

-Xmx2048m    # 最大设为  2G

你可能感兴趣的:(IBM Worklight OutOfMemoryError: Java heap space 错误)