server.getSessionConfig().setIdleTimeInMillis(IdleStatus.WRITE_IDLE, 60 * 600 * 1000);
// create the filter chain for this service
server.setFilters(new MonitoringFilter(metrics), new LoggingFilter("LoggingFilter1"),
((NioTcpEchoServerWithMonitoring) server).new TcpEchoFilter());
server.setIoHandler(new AbstractIoHandler() {
@Override
public void sessionOpened(final IoSession session) {
LOG.info("session opened {}", session);
final String welcomeStr = "welcome\n";