jmeter停止发送肥皂请求(jmeter stops sending soap requests)
我们正在加载测试一些java soap服务,并推出了约300个类似请求的~300个线程的jmeter测试套件。 每个请求大约250k字节的数据(由于base64条目),并且在发送了700个(成功的)请求后,jmeter只是停止发送任何请求。 测试套件仍然“运行”(停止按钮可用)但没有发送请求,它什么也没做。
另一个类似的测试套件,具有相同数量的较小请求(3-4 KB),运行大约20K请求,然后发生同样的事情:测试套件“运行”但根本没有发生任何事情。
问题是:我们做错了什么?
We are load testing some java soap service and have launched jmeter test suite of ~ 300 threads by 3000 similar requests. Each request is approximately 250kbytes of data (due to base64 entry), and after sending 7 hundred something (successful) requests jmeter has simply stopped sending any. Test suite still 'runs' (stop button is available) but no requests are sent, it just does nothing.
Another similar test suite, with the same number of smaller requests (3-4 KB) runs about 20K requests and then the very same thing happens: test suite 'runs' but nothing at all happens.
Question is: what are we doing wrong?
原文:https://stackoverflow.com/questions/21399834
最满意答案
尝试用...替换你的代码
UIImageView *backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background-image.png"]]; backgroundView.frame = window.frame; [window addSubview:backgroundView]; [backgroundView release];
...如果你的background-image.png不适合整个窗口,请尝试使用
backgroundView
的autoresizingMask
和contentMode
。Try to replace your code with ...
UIImageView *backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background-image.png"]]; backgroundView.frame = window.frame; [window addSubview:backgroundView]; [backgroundView release];
... and try to play with
backgroundView
'sautoresizingMask
andcontentMode
if your background-image.png doesn't fit the whole window.
相关问答
更多-
将标签置于UIView中(Centering a label in a UIView)[2022-10-10]
你做错的主要事情是取原始值的一半,而不是一半的大小 但是,在这种情况下,您甚至不需要计算 - 只需执行以下操作: UIView *aView = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]; aView.backgroundColor = [UIColor darkGrayColor]; UILabel *aLabel = [[UILabel alloc] initWithFr ... -
UIView在UIView问题上(UIView in UIView issue)[2023-01-04]
在“父”视图中,将clipsToBounds属性设置为YES。 On the "parent" view, set the clipsToBounds property to YES. -
UIView的旋转中心(UIView's center of rotation)[2022-12-27]
根据UIView文档 ,跟进Daniel所说的话: 变换的原点是中心属性的值,或者图层的anchorPoint属性(如果已更改)。 (使用图层属性来获取底层Core Animation图层对象。) 因此,如果在UIView的图层中设置了anchorPoint,则直接应用于UIView的转换将发生在该点上。 To follow up on what Daniel said, according to the UIView documentation: The origin of the transform i ... -
尝试: yourSubView.center = CGPointMake(yourView.frame.size.width / 2, yourView.frame.size.height / 2); Objective-C yourSubView.center = CGPointMake(yourView.frame.size.width / 2, yourView ...
-
如何使uiview可移动?(how to make uiview movable?)[2022-10-11]
检查这个你需要处理 - (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event {} - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {} 事件 check this you need to handle - (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event {} - ... -
您的问题在于您的中心正在设置在框架之前。 由于您正在创建没有框架参数的视图,因此您的框架为{0,0}。 所以你现在正在将子视图居中,然后调整它的大小,所以这是发生的: 你需要做的是调整子视图的大小,然后居中,如下所示: 所以你可以交换你的中心和成帧逻辑: gameOverView.frame.size = CGSize(width: 200, height: 300) gameOverView.center = super.view.center 否则,即使在创建视图时传递框架也很简单(甚至可以传递正确的 ...
-
以UIView为中心(Centering a UIView)[2022-08-16]
尝试用...替换你的代码 UIImageView *backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background-image.png"]]; backgroundView.frame = window.frame; [window addSubview:backgroundView]; [backgroundView release]; ...如果你的background-image.png不适合整 ... -
缩小中心UIView动画(Zoom out center UIView animation)[2024-02-05]
问题是,就您所显示的而言,您的代码完美运行: 因此,从逻辑上讲,如果出现问题,则由未显示的内容引起。 但既然你没有表现出来,就无法知道它是什么(除了猜测)。 The problem is that your code, as far as you have shown it, works perfectly: It therefore follows logically that if there's a problem, it is caused by something you have not sho ... -
自动布局中心UIView位于其中心的另一个UIView上方(Auto Layout center UIView above another UIView at its center)[2023-11-26]
由于您希望随着时间的推移将视图相对于不同视图相对居中,因此一种方法是根据需要添加和移除约束。 以下代码创建NSLayoutConstraint以使视图相对于另一个视图居中: class ViewController: UIViewController { @IBOutlet weak var boxView: UIView! var boxCenterX: NSLayoutConstraint? var boxCenterY: NSLayoutConstraint? fu ... -
编辑: 做了一些测试后,我注意到以下几点: UIViews没有anchorPoint属性,但它们确实有一个center属性。 应用变换后,始终会正确计算center属性,但转换变换除外,您必须执行以下操作: CGPoint realCenter = CGPointMake(myView.center.x + myView.frame.origin.x, ...); 至于CALayer ,它们确实有一个anchorPoint属性,但它们缺少一个中心属性。 因此,您要做的是通过对position属性,anch ...