文档章节

Configuring the Java Virtual Manager (JVM)

扁-哥
 扁-哥
发布于 2015/09/24 13:35
字数 473
阅读 70
收藏 0


Large XBRL documents, such as the such as the International Financial Reporting Standards – General Purpose taxonomy (IFRS-GP), require a large heap size, which may need to be configured to optimize the available memory in your environment.

UBmatrix recommends that sufficient memory is reserved on the installed JVM to avoid running out of memory (or receiving out-of-memory errors) when loading or editing XBRL documents.  The heap size does not represent the residual memory required to keep the document in memory; rather, it represents spikes in memory growth during the loading of large documents which require the JVM to allocate a heap size larger than the default.

UBmatrix recommends setting the JVM heap size to 512MB. The following procedures show how to configure the minimum and maximum JVM memory settings for Windows and Unix/Linux environments. For additional information, see your JVM provider.

Windows

To set Java heap size options with Sun Java (JAVA_OPTS environment variable) on Windows

  1. On the taskabar, click Start, and then point to Settings, Control Panel, and System.

  2. In the System Properties dialog box Advanced tab, click Environment Variables.

  3. In the Environment Variables dialog box, under System variables, click New.

  4. In the New System Variable dialog box, enter:

    1. Variable name: JAVA_OPTS.

    2. Variable value -Xms256m -Xmx512m

  5. Click OK.

  6. Verify that the Environment Variables dialog box displays the following system variable name value pair:

    JAVA_OPTS="-Xms256m -Xmx512m "

  7. Click OK, OK to close the System Properties dialog box.

Unix/Linux

To set Java heap size options with Sun Java (JAVA_OPTS environment variable) on Unix/Linux

  1. Start a terminal session.

  2. At the command prompt type:

    export set JAVA_OPTS=”-Xms256m -Xmx512m”

  3. Close the terminal session.

Java Edition Installation

For the installed Java Edition, a UBmatrix Processing Engine - Java Edition.lax file is automatically generated in the root folder (C:/Program Files/UBmatrix/UBmatrix_Processing_Engine_Java_Edition/UBmatrix Processing Engine - Java Edition.lax).

The heap size appears at lines 67-71:

#   LAX.NL.JAVA.OPTION.JAVA.HEAP.SIZE.MAX

#   -------------------------------------

#   maximum heap size to 512m

lax.nl.java.option.java.heap.size.max=786432000

The above configuration sets maximum heap size to approximately 786 KB.

Command Line Settings

The maximum heap size can be set as a parameter in the XbrlCalculate.cmd:

set JAVA_OPTS=-Xms768m -Xmx1g -XX:PermSize=128m -XX:MaxPermSize=256m

java %JAVA_OPTS% -cp "%CLASSPATH%" ubmatrix.xbrl.tools.xbrlCalculate.src.XbrlCalculate %*

or in the XbrlCalculate.sh:

JAVA_OPTS="-Xms768m -Xmx1g -XX:PermSize=128m -XX:MaxPermSize=256m"

java ${JAVA_OPTS} -cp "${CLASSPATH}" ubmatrix.xbrl.tools.xbrlCalculate.src.XbrlCalculate $@

JAVA_OPTS is an ENV variable that has local scope to the script file. The maximum heap size in the above configuration is set to 1g (1 gigabyte).

The shell configuration adjustments apply to all script files shipped with XPE 3.5.

From within an Eclipse project

The maximum heap size can be set as a JVM setting in the run dialog box to adjust the Eclipse configuraiton, as shown for the EzValidation.java Code Sample. This configuration change would apply to all code samples.

SetVMHeapSize.JPG


本文转载自:http://docs.ubmatrix.com/webhelp/XPE/3_5/Configuration/configuring_the_jvm.htm

共有 人打赏支持
扁-哥

扁-哥

粉丝 117
博文 42
码字总数 46106
作品 0
西城
高级程序员
私信 提问
01-《Apache Tomcat 9》之文件索引

《Apache Tomcat 9》是《看Apache官方文档学英语》的第一个专栏!让我们一起在看文档的过程中学英语,在学英语的过程中夯实技术! Documentation Index - 文件索引 1.Introduction - 介绍 Th...

飞鱼说编程
2018/10/16
0
0
Java Run-Time Data Areas(Java运行时数据区/内存分配)

Java运行时数据区(内存分配) 本文转载官网 更多相关内容可查看官网 中文翻译可参考 2.5. Run-Time Data Areas The Java Virtual Machine defines various run-time data areas that are use...

lichuangnk
2018/08/19
0
0
Java 根据环境属性区分不同操作系统

Java 根据环境属性区分不同操作系统 之前项目需要配置下载文件的路径,本机系统是win 10 ,而服务器系统是CentOS。配置默认下载路径(非项目内相对路径),就会出现问题。windows 路径是由盘...

肖安安
2018/07/09
0
0
JVM学习心得体会 (第一天)

Java虚拟机 Java虚拟机(Java Virtual Machine) 简称JVM Java虚拟机是一个想象中的机器,在实际的计算机上通过软件模拟来实现。Java虚拟机有自己想象中的硬件,如处理器、堆栈、寄存器等,还...

seng
2013/06/25
0
3
java学习从入门到精通(原创)--精华

作者:robbin 网址:http://www.fankai.com/ Java Learning Path (一)、工具篇 一、 JDK (Java Development Kit) JDK 是整个Java的核心,包括了Java运行环境(Java Runtime Envirnment),...

精华之王
2009/04/11
635
0

没有更多内容

加载失败,请刷新页面

加载更多

JavaEE开发的颠覆者SpringBoot实战摘要笔记

一、注解理解 1.spring注解 1)@Configuration/@ComponentScan/@Bean注解实现java方式的配置。 @Configuration代替xml文件 @ComponentScan指定扫描范围 @Bean代替bean标签 2)@Bean、@Componen...

啃不动地大坚果
21分钟前
2
0
跨链技术的分析和思考

当前的区块链底层技术平台百花齐放,不同的业务、不同的技术底层的区块链之间缺乏统一的互联互通的机制,这极大限制了区块链技术和应用生态的健康发展。跨链的需求由此而来,本文通过分析几种...

Tiny熊
22分钟前
0
0
使用css预处理器sass轻松生成margin、padding四个方向多个值的css样式代码

直接在scss文件上复制这段scss代码: $directions:("t":"top", "b":"bottom", "l":"left", "r":"right");$dimensions:("p":"padding", "m":"margin");//获取padding margin间隔@each $......

祖达
40分钟前
0
0
gearman安装,提示错误:configure: error: could not find boost

背景及最终解决方案 在CentOS 7上安装gearman时,提示错误:configure: error: could not find boost,最终解决方案是: 先安装: # yum install -y boost boost-devel 发现问题还是没解决,...

暗夜在火星
47分钟前
2
0
NFS服务

问题1: A机器上传了一张图片,结果B机器访问的时候就提示404. NFS,Network File System。网络文件系统,即通过网络,对在不同主机上的文件进行共享。 NFS最早由Sun公司开发,分2,3,4三个...

wzb88
47分钟前
3
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部