How to increase Appium Session

How to increase appium session using selenium server in command line?
in command prompt i am typing following line for raising hub

D:\temp>java -jar selenium-server-standalone-2.47.1.jar -role hub

what command i have to add in above command to increase appium session .
My selenium server is saved in temp folder of D:> directory.

Instead from command line you can pass
timeout desiredcapability = -1 while creating appium session for an endless session

“deviceName”: “”,
“maxInstances”: 3,
“proxy”: “org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,
“host”: “”,
“port”: 4723,
“maxSession”: 6,
“register”: true,
“registerCycle”: 5000,
“hubPort”: 4444,
“hubHost”: “”

my desired capability file look like this
the value of a timeout marked as a bold should be changed to -1

Actually these are grid capabilities for registering node. This timeout is between grid server and appiumNode

Appium session here corresponds to connection between Appium Server and Grid Server
Something like this when u will create an appium session using below code , u inform appium server
How long (in seconds) Appium will wait for a new command from the client (Grid Server) before assuming the client quit and ending the session

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("automationName", "Appium");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("platformVersion", "5.1");
capabilities.setCapability("deviceName", "Android Emulator");
/ *****  this is capability we need to set     ***** /
capabilities.setCapability("newCommandTimeout", "-1"); 
driver = new RemoteWebDriver(new URL("http://localhost:4788/wd/hub"), capabilities);

while setting the value newCommantTimeout="-1" but still apiium session is terminated