Support > Repository > Environment > Server
ja | en

Application server You can specify Tomcat settings and Java version.

Select "Server" from the "Environment" menu.

Figure 1 Setting up the server

This explanation is reflected in the Web application (wagbyapp folder) to be built.That is, it is the setting for the application to operate.

Changes to WagbyDesigner, such as memory shortage at compile time,Adjust memory size at build timePlease read.

JVM maximum heap memory size (MB)

You can specify the maximum heap memory size of the Java Virtual Machine (JVM).The initial value is 512.The unit is MB (megabytes).

When handling a large amount of data or when many users log on simultaneously to the application, it is necessary to increase this memory size.

JVM initial heap memory size (MB)

You can specify the initial heap memory size of the Java Virtual Machine (JVM).The initial value is 64.The unit is MB (megabytes).

JVM maximum persistent generation heap memory size (MB) [until Java 7]

Please specify it when operating with Java 7.For Java 8 and later editions, leave this field blank.

You can specify the maximum persistent generation heap memory size of the Java Virtual Machine (JVM).The initial value is 192.The unit is MB (megabytes).If you are using Java 7 and an error "Out Of Memory: PermGen space" occurs at application startup, increase this value.

The memory here is the area where programs are stored.Specifically, it increases in proportion to the number of models to be defined and the number of screen functions to output.It does not relate to the amount of stored data or the number of simultaneous logons.
If the production environment is Java 8 or later, this setting is ignored.(In Java 8 the persistent generation heap is gone.) References: "Why the Permanent area disappeared from HotSpotVM in Java 8 and its effect"

JVM initial persistent generation heap memory size (MB) [up to Java 7]

Please specify it when operating with Java 7.For Java 8 and later editions, leave this field blank.

You can specify the initial persistent generation heap memory size of the Java Virtual Machine (JVM).The initial value is 192.The unit is MB (megabytes).

HTTP port number

Specify the HTTP port number used by Tomcat.The initial value is 8921.

Wagby uses "8921" as the standard port number.By changing this value to "80", you can eliminate the port number notation ": 8921" from the URL entered in the address bar of the web browser.However, in this case, please make sure that another web server is not already running on your machine.For example, in the case of Windows Server OS, if the Web server named IIS is running, port number 80 is already in use.Please stop IIS in this case.
It is also possible to configure IIS or Apache Web Server and Tomcat (provided by Wagby) to coexist on the same port 80.Since the setting method is complicated, it is omitted in this manual.Please contact Wagby sales partner for details.

AJP 1.3 port number

Specify the AJP 1.3 port number used by Tomcat.The initial value is 8009.

(This setting is used when linking with Apache Web Server.Normally you do not need to change the setting.)

Server port number

Specify the server port number used by Tomcat.The initial value is 8005.

(This setting usually does not need to be changed.)

Redirect port number

Specify the redirect port number used by Tomcat.The initial value is 8443.

(This setting usually does not need to be changed.)

Check the session ID of the transmission request (CSRF compatible)

Select whether to check the transmission request ID.The initial value is valid.

This setting improves the security level.Specifically, we can not do site attack method using logon user's authority such as CSRF (Cross Site Request Forgeries).

Java version

It specifies which Java can compile automatically generated Java source code.The initial value is "1.8" (Java 8).If this value is set to "1.6", you can compile with Java 7 if it is Java 6/7 and "1.7".

With "1.6" or "1.7", you can not use the new Java grammar.When customizing Java code generated by Wagby, consider which version of Java to use and change this value.

Impact on server side JavaScript

This value is also used for version determination of "server side JavaScript".For "1.6" and "1.7", Rhino is targeted, for "1.8" it is Nashorn.

If you changed this version during development, please do a full build.The server side JavaScript code will also be re-created.

Wagby caches values ​​read once from the database in memory.You can specify the cache size.The unit is megabyte, and the standard is 100 megabytes.

It is not possible to specify cache size for each model.Internally, it uses open source ehcache library, and caches frequently used data preferentially by LRU algorithm.
A temporary file may be generated in the wagbyapp/temp folder.After the Wagby application stops, you can manually delete the temporary files remaining in the wagbyapp/temp folder.

"accountPlease read.

"Account> Authentication with Windows Active Directory/LDAPPlease read.

(It will be explained in the chapter on clustering.)