docs: private void printJVMStats(final TSDB tsdb, final HttpQuery query) {
      final Map<String, Map<String, Object>> map = 
          new HashMap<String, Map<String, Object>>();
      
      final RuntimeMXBean runtime_bean = ManagementFactory.getRuntimeMXBean();
      final Map<String, Object> runtime = new HashMap<String, Object>();
      map.put("runtime", runtime);
      
      runtime.put("startTime", runtime_bean.getStartTime());
      runtime.put("uptime", runtime_bean.getUptime());
      runtime.put("vmName", runtime_bean.getVmName());
      runtime.put("vmVendor", runtime_bean.getVmVendor());
      runtime.put("vmVersion", runtime_bean.getVmVersion());
      
      final MemoryMXBean mem_bean = ManagementFactory.getMemoryMXBean();
      final Map<String, Object> memory = new HashMap<String, Object>();
      map.put("memory", memory);
      
      memory.put("heapMemoryUsage", mem_bean.getHeapMemoryUsage());
      memory.put("nonHeapMemoryUsage", mem_bean.getNonHeapMemoryUsage());
      memory.put("objectsPendingFinalization",
          mem_bean.getObjectPendingFinalizationCount());
      
      final List<GarbageCollectorMXBean> gc_beans = 
          ManagementFactory.getGarbageCollectorMXBeans();
      final Map<String, Object> gc = new HashMap<String, Object>();
      map.put("gc", gc);
      
      for (final GarbageCollectorMXBean gc_bean : gc_beans) {
        final Map<String, Object> stats = new HashMap<String, Object>();
        final String name = formatStatName(gc_bean.getName());
        if (name == null) {
          LOG.warn("Null name for bean: " + gc_bean);
          continue;
        }
        
        gc.put(name, stats);
        stats.put("collectionCount", gc_bean.getCollectionCount());
        stats.put("collectionTime", gc_bean.getCollectionTime());
      }    
      
      final List<MemoryPoolMXBean> pool_beans = 
          ManagementFactory.getMemoryPoolMXBeans();
      final Map<String, Object> pools = new HashMap<String, Object>();
      map.put("pools", pools);
      
      for (final MemoryPoolMXBean pool_bean : pool_beans) {
        final Map<String, Object> stats = new HashMap<String, Object>();
        final String name = formatStatName(pool_bean.getName());
        if (name == null) {
          LOG.warn("Null name for bean: " + pool_bean);
          continue;
        }
        pools.put(name, stats);
        
        stats.put("collectionUsage", pool_bean.getCollectionUsage());
        stats.put("usage", pool_bean.getUsage());
        stats.put("peakUsage", pool_bean.getPeakUsage());
        stats.put("type", pool_bean.getType());
      }
      
      final OperatingSystemMXBean os_bean = 
          ManagementFactory.getOperatingSystemMXBean();
      final Map<String, Object> os = new HashMap<String, Object>();
      map.put("os", os);
      
      os.put("systemLoadAverage", os_bean.getSystemLoadAverage());
      
      query.sendReply(query.serializer().formatJVMStatsV1(map));
    }