如何为 CMD 6.1.1.76 增加 Java 堆内存 [英] How to increase Java Heap Memory for CMD 6.1.1.76

查看:16
本文介绍了如何为 CMD 6.1.1.76 增加 Java 堆内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为 CMD 6.1.1.76 增加 Java 堆内存?

我认为这些方法不再有效:

I think these are no longer valid methods:

http://www.ladysign-apps.com/developer/java-heap-exception-when-using-sencha-cmd/#.VxQIauMrJTY

https://www.sencha.com/forum/showthread.php?251529-Java-Heap-Size

我在运行时遇到 Java 堆异常

sencha 应用构建

sencha app build

特别是在切片图像时(我不想跳过这个)

推荐答案

您必须编辑位于 Cmd 文件夹中的 sencha.cfg 文件.如果您使用的是 Windows - 很可能在这里:

You have to edit sencha.cfg file which is located in your Cmd folder. If you are on Windows - most probably here:

C:Users<user>inSenchaCmd6.1.1.76

在其中,您将找到带有 JVM 启动参数的部分:

In it, you will find the part with JVM startup arguments:

#------------------------------------------------------------------------------
# These are the JVM startup arguments. The primary things to tweak are the JVM
# heap sizes.
# java.awt.headless=true - required to make phantomjs (used by theme slicer)
#                          work in headless environments

# cmd.jvm.args=-Xrunjdwp:transport=dt_socket,server=y,address=8888,suspend=n -Xms128m -Xmx2048m -Djava.awt.headless=true
cmd.jvm.args=-Xms128m -Xmx1024m -Dapple.awt.UIElement=true

您可以在 Sencha Cmd 中找到有关配置文件的更多信息文档.

从 Cmd 6.5.0 这不再有效.你将不得不使用_JAVA_OPTIONS

From Cmd 6.5.0 this no longer works. You will have to use _JAVA_OPTIONS

# On previous versions, this file provided a way to specify the cmd.jvm.* properties
# to control the execution of the JVM. To accommodate all possible execution scenarios
# support for these properties has been removed in favor of using the _JAVA_OPTIONS
# environment variable.

这篇关于如何为 CMD 6.1.1.76 增加 Java 堆内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆