How to increase Appium Session

Hi,
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

{
“capabilities”:
[
{
“deviceName”: “192.168.56.101:5555”,
“version”:“4.4.2”,
“maxInstances”: 3,
“platformName”:“ANDROID”
}
]
“configuration”:
{
“cleanUpCycle”:2000,
timeout”:30000,
“proxy”: “org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,
“url”:“http://20.20.4.71:4723/wd/hub”,
“host”: “20.20.4.71”,
“port”: 4723,
“maxSession”: 6,
“register”: true,
“registerCycle”: 5000,
“hubPort”: 4444,
“hubHost”: “20.20.4.71”
}
}

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

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