Windows registry params

1,251 views
Skip to first unread message

Konstantin Iakimov

unread,
Oct 23, 2013, 6:32:01 AM10/23/13
to nj...@googlegroups.com
Could you please give explanation for registry & System.env tweaking

When server starts it prints

REG | INFO | SessionViewSize=48 MB
REG | INFO | SharedSection=1024,12288,512
REG | INFO | Max Windows(TM) sessions: 3, max terms per session: 22
REG | INFO | Max platform terminals: 22

First two is a registry keys
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Memory Management\SessionViewSize
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\SubSystems\Windows\SharedSection

But if I increase first and middle of the second key I can't reach
even 100 terminals (windows 7 prof)

I've found max_terminals_per_desktop system environment mentioned in
decompiled jfx code but can't find any documents or faq's about its
usage.
Could you explain what should be changed in windows system to reach
150 terminal for personal usage licence of jfx atleast and what other
two lines in log means?
Thank you!

Roman Gerasimenko

unread,
Oct 23, 2013, 6:58:44 AM10/23/13
to nj...@googlegroups.com
There is about 65K GDI and 65K USER objects limit per windows session well described by Mark Russinovich in his blog  (http://blogs.technet.com/b/markrussinovich/archive/2010/02/24/3315174.aspx). 

Those limits are exhausted by about 150 mt4 terminals (for a single windows session, when SessionViewSize and SharedSection registry parameters, explained below, are maximized).

What we can do is

1. Increase SessionViewSize at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

e.g., SessionViewSize=512 (decimal value, it is in MB)

2. Increase Desktop Heap size controlled by SharedSection parameter of 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems@Windows

e.g., SharedSection=1024,70000,396

3. Reboot.

On 23 October 2013 13:32, Konstantin Iakimov <kiak...@gmail.com> wrote:
Could you please give explanation for registry & System.env tweaking

When server starts it prints

REG | INFO | SessionViewSize=48 MB
REG | INFO | SharedSection=1024,12288,512
REG | INFO | Max Windows(TM) sessions: 3, max terms per session: 22
REG | INFO | Max platform terminals: 22

In professional/premium versions of nj4x there is an ability to run terminals using mltiple windows sessions. Personal license is limited by a single session.
 

First two is a registry keys
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Memory Management\SessionViewSize
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\SubSystems\Windows\SharedSection

But if I increase first and middle of the second key I can't reach
even 100 terminals (windows 7 prof)

I've found max_terminals_per_desktop system environment mentioned in
decompiled jfx code but can't find any documents or faq's about its
usage.
Could you explain what should be changed in windows system to reach
150 terminal for personal usage licence of jfx atleast and what other
two lines in log means?
Thank you!

--
You received this message because you are subscribed to the Google Groups "NJ4X Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nj4x+uns...@googlegroups.com.
To post to this group, send email to nj...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

superm...@gmail.com

unread,
May 4, 2015, 7:14:09 AM5/4/15
to nj...@googlegroups.com
Hi!

I would also like to run more than 100 MT4 terminals on server but I cannot find out how to open more than 1 windows session. 
I purchased professional version of nj4x and as you mentioned there is a possibility to open multiple sessions. 
My console shows 

Max Windows(TM) sessions: 7, max terms per session: 23

so I presume I will be able to open up to 7 sessions. Could you please give me a guide how to do that?
I am using nj4x version 2.3.4

Thanks in advance!
Reply all
Reply to author
Forward
0 new messages