What to do if connection with NoMachine 4 terminates because of session log file size exceeded
In order to avoid abnormal log file growth, NoMachine implements a mechanism to terminate a session when the session log file exceeds a certain limit. This can happen when setting debug log level.
Due to these verbose logs, it is possible that you are prompted with message:
Warning, the session log file exceeded the size of 3.8 MB. The session will be terminated soon.
and that your session is then terminated.
The limit for the maximum size allowed for the session log file can be set in the node configuration file.
You can increase the limit by editing the node configuration file, i.e. the /usr/NX/etc/node.cfg file in the default installation on Linux.
Ensure that the configuration key below is commented out and has a proper value set.
For example, to allow the session file increase till 30 MB, set the key as it follows
#
# Set the maximum size, expressed in bytes, allowed for the session
# log. The node will terminate the session if this limit is exceeded.
#
SessionLogLimit 31457280
