final int handlerCount = GlobalConfiguration.getInteger(RPC_NUM_HANDLER_KEY, DEFAULT_NUM_HANLDER);
final int rpcPort = GlobalConfiguration.getInteger(ProfilingUtils.JOBMANAGER_RPC_PORT_KEY,
ProfilingUtils.JOBMANAGER_DEFAULT_RPC_PORT);
final InetSocketAddress rpcServerAddress = new InetSocketAddress(jobManagerbindAddress, rpcPort);
Server profilingServerTmp = null;
try {
profilingServerTmp = RPC.getServer(this, rpcServerAddress.getHostName(), rpcServerAddress.getPort(),
handlerCount);
profilingServerTmp.start();
} catch (IOException ioe) {
throw new ProfilingException("Cannot start profiling RPC server: " + StringUtils.stringifyException(ioe));
}
this.profilingServer = profilingServerTmp;