Wrapper configuration detailed and advanced applications

Source: Internet
Author: User

Transferred from: http://286.iteye.com/blog/1921414

It is not complicated to put a simple application packing scale such as HelloWorld wrapper service, it can even be considered very simple. But in the actual project application process, our procedure is generally bigger, the operation environment is also more complex.

Learn more about the key points and important parts of building wrapper services with wrapper configuration file analysis and configuration.

First, open the wrapper.conf configuration file under the Conf folder, which is also the key profile when wrapper the profile, starting with an initial analysis of one item.

1. File encoding and sub-configuration file

The file header contains information about the configuration file encoding format, sub-profile, and so on, as follows:

Configuration of a child profile allows the master profile to associate up to 10 levels of sub-configuration, for example: Wrapper.conf contains wrapper2.conf, wrapper2.conf contains wrapper3.conf ... wrapper9.conf contains

wrapper10.conf, the file structure is as follows:

This means that the configuration file nesting level up to 10 levels, referring to an official picture can be very good description:

If the child profile does not exist, it is ignored and does not cause the program to run incorrectly.

2.Wrapper Language Settings

These two settings allow you to specify the language of the wrapper, which can be supported under the wrapper official website and not currently supported in Chinese.

3.Wrapper Java-related property configuration

(1) Java Runtime Environment settings

(2) procedure entrance

(3) class Library Settings

(4) JVM-related configuration

The additional parameters are the Java command Optional parameters, as follows:

Memory Size setting:

Application parameter settings:

A parameter print statement was added to the main function and the Start method to see if the parameter was passed in, and the code is as follows:

Re-run the service with the following results:

4.Wrapper Log Configuration

5.Wrapper Basic Property Configuration

6.Wrapper JVM Check

The following are the event types for wrapper.check.deadlock.action:

7. Memory Overflow Detection

8.Wrapper Email Notification settings (requires Professional Edition Wrapper)

The above is an introduction to the main properties of the wrapper.conf profile, wrapper more features and applications also need to combine their own documents in-depth study, the following is the wrapper official website document address:
Http://wrapper.tanukisoftware.com/doc/english/properties.html

Wrapper Configuration and advanced applications (GO)

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.