private String getProperSizeRunningSample(SingleConsole singleConsole) {
		Map<String, Object> statisticData = singleConsole.getStatisticsData();
		String runningSample = JsonUtils.serialize(statisticData);

		if (runningSample.length() > 9950) { // max column size is 10,000
			Map<String, Object> tempData = newHashMap();
			for (Entry<String, Object> each : statisticData.entrySet()) {
				String key = each.getKey();
				if (key.equals("totalStatistics") || key.equals("cumulativeStatistics")
						|| key.equals("lastSampleStatistics")) {
					continue;
				}
				tempData.put(key, each.getValue());
			}
			runningSample = JsonUtils.serialize(tempData);
		}
		return runningSample;
	}
To save statistics data when test is running and put into cache after that. If the console is not available, it
returns null.

@param singleConsole single console.
@param perfTestId    perfTest Id
ngrinder-controller/src/main/java/org/ngrinder/perftest/service/PerfTestService.java