Additional Registry Entries and Environment Variables

From Lianjapedia
Jump to: navigation, search

Overview

There are additional Lianja Server settings that can be defined as Registry entries (Windows) or environment variables (Linux and Mac). These can help developers to debug and optimize their Web Apps.

After modifying the Registry entries or environment variables, restart the Lianja Server.

Windows

Incorrectly modifying the Registry can cause serious problems on your system, so do not proceed if you are not completely sure how to do this. You should consider backing up your registry and using .reg files. Consult the Microsoft support site for full recommendations, e.g. [1]

64 bit Registry Location

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Lianja\Lianja Server\Netserver

32 bit Registry Location

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Lianja\Lianja Server\Netserver

Linux

Environment variables are defined in the text file /etc/lianja.d/lianja.conf.

Mac

Environment variables are defined in the text file /usr/local/lianja/server/conf/lianja.conf.

Settings

Setting Description
DB_CACHE_ENABLED During Web App development you can set DB_CACHE_ENABLED to false to disable caching and set it to true for production systems.
Note that some browsers (Chrome, for example) already disable caching when the developer tools are open. You can uncheck this in the "Network" tab then refresh your app several times to see the caching in operation.
DB_ODATATRACE During Web App development you can set DB_ODATATRACE to true. Run the Web App then check the debug directory for odata_tracexxx.log files. These are text files that contain full OData performance metrics tracing information. From v5.3.
This setting can also be toggled on Windows in the Lianja Server Manager.
DB_SQLDEBUG During Web App development you can set DB_SQLDEBUG to true. Run the Web App then check the debug directory for sql_debugxxx.log files. These are text files that contain SQL tracing information and show you all the OData calls being made and how the queries were optimized.
DB_WWWAUTOUPDATE When DB_WWWAUTOUPDATE is set to true, auto updating of packages is enabled. See Lianja Package Manager for more information on package updating.
This setting can also be toggled on Windows in the Lianja Server Manager.
DB_WWWDEBUG During Web App development you can set DB_WWWDEBUG to true. Run the Web App then check the debug directory for firecat_debugxxx.log files. These are text files that contain server activity information.