Java 为什么来自servlet过滤器的大多数UDP数据包没有显示在Graphite中?

Java 为什么来自servlet过滤器的大多数UDP数据包没有显示在Graphite中?,java,networking,udp,packet,datagram,Java,Networking,Udp,Packet,Datagram,我在servlet过滤器中有以下内容: @凌驾 public void doFilterServletRequest请求、ServletResponse响应、FilterChain链抛出ServletException、IOException{ long startTimeNano=System.nanoTime; chain.doFilterrequest,响应; long-endTimeNano=System.nanoTime; 长差分法=endTimeNano-startTimeNano;

我在servlet过滤器中有以下内容:

@凌驾 public void doFilterServletRequest请求、ServletResponse响应、FilterChain链抛出ServletException、IOException{ long startTimeNano=System.nanoTime; chain.doFilterrequest,响应; long-endTimeNano=System.nanoTime; 长差分法=endTimeNano-startTimeNano; 长差毫秒=DifferenceAno/1000000; 试一试{ 报告响应图差异毫秒; }卡奇{ Logger.loggetClass,响应时间测量失败。; } } reportResponseTimeToGraphite只向Graphite服务器发送UDP数据包:

私有void ReportResponseTimeToGraphitelLong DifferenceMillingSeconds引发IOException{ int currentUnixtimesons=int System.currentTimeMillis/1000L; String message=GRAPHITE_LABEL++String.valueofdifferenceMillingSeconds++String.valueofcurrentunixtimesons; DatagramSocket clientSocket=新DatagramSocket; InetAddress recipientIP=InetAddress.GetByName\u服务器; 字节[]sendData=message.getBytes; DatagramPacket sendPacket=新DatagramPacketsendData,sendData.length,recipientIP,GRAPHITE_端口; clientSocket.sendpacket; clientSocket.close; } 奇怪的是,这只在某些时候起作用。以下是图表的示例部分,针对每分钟处理1000多个请求的机器:

很多时候,有长达数小时的拉伸,图中没有显示数据点

如果相关的话,Graphite服务器正在EC2上运行