Multiple report server memory modification methods for report performance optimization scenarios

Source: Internet
Author: User
Tags jboss server xms

Server memory Modifications

The memory configuration methods for each application server are different, as listed below are the JVM parameter (-XMS,-XMX) configuration methods for common servers.

JVM parameter definitions:

-Xms: Initialize memory size

-XMX: Maximum memory that can be used

Sample Tools

The following sample tools: report Development Tools Finereport

Tomcat Server memory Modification

1. Description of the problem

Java applications run with the memory of the Web application server, such as data obtained from the execution of the report, intermediate data for the operation, etc., which need to be persisted in server memory.

A memory overflow error occurs when no empty memory is available: Java.lang.OutOfMemoryError:Java heap space.

2. Solution

In order to avoid memory overflow problem, we should enable the disk cache appropriately, on the other hand can adjust the server memory size according to the actual situation.

Here's how to adjust the server memory size.

· Unzip version launches Tomcat via Start.bat

On the Windows system, locate%tomcat_home%/bin/catalina.bat and edit the file.

Find this line of code:

1. REM-----Execute The requested Command---------------------------------------

under which to add

1. Set java_opts=-xms256m-xmx512m

Ms represents the initial memory size, MX represents the largest, the above code meaning is initialized when the memory is set to 256m, the maximum memory is 512m

For a tomcat server, the maximum memory is generally not more than 80% of the physical memory.

Modify the same directory under Catalina.sh in Linux, and modify it the same way.

· The installation version starts Tomcat through the service

If you are booting with the Tomcat service, you will need to modify the registry in Hkey_local_machine/software/apache software Fountdation/procrun 2.0/parameters It corresponds to modifying Java Jvmms and JVMMX.

Note: Please modify the registry carefully.

WebLogic Server memory Modifications

1. Description of the problem

The memory of the Web application server is used during the running of the program, such as the data obtained from the execution of the report, intermediate data of the operation, etc., which need to be persisted in server memory.

If there is an overflow in memory, an error will be made.

2. Solution

The WebLogic server is a Startweblogicnand file that is modified by the bea\user_projects\domains\ corresponding to the project directory, such as C:\bea\user_projects\domains\base_ Domain\ Startweblogicnand, to configure the WebLogic server virtual memory.

2.1 In Weblogic8.1

Edit Startweblogicnand, add set mem_args=-xms256m-xmx512m on set server_name, and add in Classpath;%mem_args%, save

2.2 In WEBLOGIC10

In the Startweblogicnand file, call "%domain_home%\bin\startweblogicnand"%* Add set mem_args=-xms256m-xmx512m, save it, such as:



WebSphere Server Memory Modification

1. Description of the problem

Java applications run with the memory of the Web application server, such as data obtained from the execution of the report, intermediate data for the operation, etc., which need to be persisted in server memory.

A memory overflow error occurs when no empty memory is available.

2. Solution

WebSphere Server memory modifications are hidden more deeply in the Management Console | server | process Definition | The Java Virtual machine is set up. This takes websphere6 as an example to illustrate:

Open the Admin console | server | Application Server Select server, here is Server1:



Click Java and Process Management | process definition:



Click on the Java Virtual machine:



You can set the JVM parameters, set up OK and Save:



JBoss Server Memory Modification

. Problem description

Java applications run with the memory of the Web application server, such as data obtained from the execution of the report, intermediate data for the operation, etc., which need to be persisted in server memory.

A memory overflow error occurs when no empty memory is available.

2. Solution

Jboss server memory modifications are simple, such as Jboss4.2, simply set the appropriate memory parameters in the Run.bat file under%jboss_home%\bin\ to the desired values, such as:


Multiple report server memory modification methods for report performance optimization scenarios

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.