4D v14Using a 64-bit 4D Server (Windows) |
||||||
|
4D v14
Using a 64-bit 4D Server (Windows)
Using a 64-bit 4D Server (Windows)
Beginning with version 12, 4D Server supports Windows 64-bit operating systems. The main advantage of 64-bit technology is the fact that more RAM memory can be addressed. This section covers the particularities concerning the implementation and use of the 64-bit version of 4D Server. A 64-bit 4D Server requires a Windows 64-bit operating system. Please refer to the certification matrices available on the 4D Web site to know which Windows operating systems are compatible with respect to your 4D Server release. The 4D Server.exe application intended for 64-bit architectures is a specific version, dedicated to this environment. It will not run on a 32-bit system. Conversely, if you launch the standard 4DServer.exe (32 bits) on a Windows 64-bit system, it will run, but in emulation mode. In interpreted mode, the same 4D databases can be executed with a 64-bit 4D Server or a 32-bit 4D Server. Development is identical regardless of which application is used. In compiled mode, the databases must have been compiled for 64-bit processors in order to be executed with a 64-bit 4D Server (see the "64-bit compilation" paragraph). During execution, the following differences should be noted:
To be able to use 4D Internet Commands with a 64-bit 4D Server, you must install version 12.1 (minimum) of this plug in. You can download the version 12.1 of 4D Internet Commands from the 4D Web site. 4D v12 applications can now be compiled for 32-bit and 64-bit processors. To do this, a new Also compile for 64-bit processors option is available on the "Compiler" page of the Database settings: When this option is checked, the compiler includes the 64-bit code and the 32-bit code in the .4DC and .4DB files. These files can then be run with either a 32-bit or a 64-bit 4D Server. By default, this option is not checked. Note: In order to compile a 64-bit version of the database, it must be operating in Unicode mode. Otherwise, an error is generated during compilation. Since 64-bit architectures allow up to 1 TB (1000 GB) of RAM memory to be addressed, the cache memory that can be allocated to the 64-bit 4D Server is virtually unlimited. Note: By comparison, 32-bit architectures are limited to 4 GB of RAM. If the quantity of cache specified on the "Database/Memory" page of the database Settings cannot be obtained, 4D Server allocates the largest size possible and informs the user on startup of the application. It is then possible to quit or continue with the size offered. During execution, you can distinguish between the 64-bit 4D Server application and the standard 4D Server application via a logo that appears on the Monitor page of the server administration window: Note: This logo also appears in the About 4D Server window. The following 4D language commands have been adapted to the new capacities of the 64-bit 4D Server: Version type, SET DATABASE PARAMETER and Get database parameter. For more information, refer to the descriptions of these commands. The process stack running on a 64-bit version of 4D Server requires more memory than on a 32-bit version (about twice as much). When you create a process on the server using the Execute on server or New process commands with a 64-bit version of 4D Server, we recommend that you pass a minimum value of 128,000 bytes in the stack parameter and increase it when handling a sizeable call chain or if you receive an "out of stack" error. Make sure that you check this parameter when your code is intended for execution on a 64-bit 4D Server. In addition to standard commands that cannot be used on 4D Server (see Stored Procedures), the following commands cannot be executed on a 64-bit server. If they are called for example within a stored procedure, a warning dialog box appears and the error 67 is returned. This error can be intercepted by an error-handling method installed by the ON ERR CALL command.
|
PROPERTIES
Product: 4D ARTICLE USAGE
4D Server Reference ( 4D v14) |
||||