到服务器的连续UDP请求无法正常工作

时间:2019-06-26 16:36:00

标签: java groovy udp

当前,我正在使用性能测试工具,并且必须开发UDP请求测试插件以进行负载测试。我尝试连续发送大量请求,以监视服务器可以处理的最大负载。 我的目标是通过发送最大数量的请求使应用程序不响应,但我没有得到预期的结果。我的测试应用程序已在本地环境中启动并运行。是实现或配置的错误。请帮忙。

---------------------------------------------------------------------------
error                                     Traceback (most recent call last)
<ipython-input-6-628330e4110c> in <module>
     12 ax.coastlines  (resolution = '10m')
     13 ax.add_feature (cartopy.feature.RIVERS, linewidth=4)
---> 14 ax.add_geometries (basin.geometries(),     crs = ccrs.Geodetic(), edgecolor = 't', facecolor = 'none')

C:\ProgramData\Anaconda3\lib\site-packages\cartopy\mpl\geoaxes.py in add_geometries(self, geoms, crs, **kwargs)
    586         """
    587         styler = kwargs.pop('styler', None)
--> 588         feature = cartopy.feature.ShapelyFeature(geoms, crs, **kwargs)
    589         return self.add_feature(feature, styler=styler)
    590 

C:\ProgramData\Anaconda3\lib\site-packages\cartopy\feature\__init__.py in __init__(self, geometries, crs, **kwargs)
    229         """
    230         super(ShapelyFeature, self).__init__(crs, **kwargs)
--> 231         self._geoms = tuple(geometries)
    232 
    233     def geometries(self):

C:\ProgramData\Anaconda3\lib\site-packages\cartopy\io\shapereader.py in geometries(self)
    234         geometry_factory = self._geometry_factory
    235         for i in range(self._reader.numRecords):
--> 236             shape = self._reader.shape(i)
    237             yield _make_geometry(geometry_factory, shape)
    238 

C:\ProgramData\Anaconda3\lib\site-packages\shapefile.py in shape(self, i)
    811                     return k
    812         shp.seek(offset)
--> 813         return self.__shape()
    814 
    815     def shapes(self):

C:\ProgramData\Anaconda3\lib\site-packages\shapefile.py in __shape(self)
    749         # Read m extremes and values
    750         if shapeType in (13,15,18,23,25,28,31):
--> 751             (mmin, mmax) = unpack("<2d", f.read(16))
    752             # Measure values less than -10e38 are nodata values according to the spec
    753             record.m = []

error: unpack requires a buffer of 16 bytes

0 个答案:

没有答案