Configuring the Java Virtual Manager (JVM)

Stella981
• 阅读 632

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.

Configuring the Java Virtual Manager (JVM)

点赞
收藏
评论区
推荐文章
blmius blmius
3年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
Easter79 Easter79
3年前
swap空间的增减方法
(1)增大swap空间去激活swap交换区:swapoff v /dev/vg00/lvswap扩展交换lv:lvextend L 10G /dev/vg00/lvswap重新生成swap交换区:mkswap /dev/vg00/lvswap激活新生成的交换区:swapon v /dev/vg00/lvswap
待兔 待兔
4个月前
手写Java HashMap源码
HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22
Wesley13 Wesley13
3年前
Java获得今日零时零分零秒的时间(Date型)
publicDatezeroTime()throwsParseException{    DatetimenewDate();    SimpleDateFormatsimpnewSimpleDateFormat("yyyyMMdd00:00:00");    SimpleDateFormatsimp2newS
Stella981 Stella981
3年前
KVM调整cpu和内存
一.修改kvm虚拟机的配置1、virsheditcentos7找到“memory”和“vcpu”标签,将<namecentos7</name<uuid2220a6d1a36a4fbb8523e078b3dfe795</uuid
Wesley13 Wesley13
3年前
mysql设置时区
mysql设置时区mysql\_query("SETtime\_zone'8:00'")ordie('时区设置失败,请联系管理员!');中国在东8区所以加8方法二:selectcount(user\_id)asdevice,CONVERT\_TZ(FROM\_UNIXTIME(reg\_time),'08:00','0
Wesley13 Wesley13
3年前
00:Java简单了解
浅谈Java之概述Java是SUN(StanfordUniversityNetwork),斯坦福大学网络公司)1995年推出的一门高级编程语言。Java是一种面向Internet的编程语言。随着Java技术在web方面的不断成熟,已经成为Web应用程序的首选开发语言。Java是简单易学,完全面向对象,安全可靠,与平台无关的编程语言。
Wesley13 Wesley13
3年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
Java服务总在半夜挂,背后的真相竟然是... | 京东云技术团队
最近有用户反馈测试环境Java服务总在凌晨00:00左右挂掉,用户反馈Java服务没有定时任务,也没有流量突增的情况,Jvm配置也合理,莫名其妙就挂了
Python进阶者 Python进阶者
10个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这