Jmeter灵活的文件写入器:具有大数据的BufferOverflowException(41793个字符)

时间:2014-05-26 11:03:52

标签: jmeter load-testing performance-testing jmeter-plugins

我在使用Jmeter插件灵活文件编写器在csv中编写大型JSON对象(41793个字符)时遇到以下错误。有人可以帮帮我吗?

错误追踪:

ERROR - jmeter.threads.ListenerNotifier: Detected problem in Listener:  java.nio.BufferOverflowException
    at java.nio.DirectByteBuffer.put(Unknown Source)
    at java.nio.ByteBuffer.put(Unknown Source)
    at kg.apc.jmeter.reporters.FlexibleFileWriter.appendSampleResultField(FlexibleFileWriter.java:359)
    at kg.apc.jmeter.reporters.FlexibleFileWriter.sampleOccurred(FlexibleFileWriter.java:230)
    at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84)
    at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:774)
    at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:440)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
    at java.lang.Thread.run(Unknown Source)

2014/05/26 15:47:31 INFO  - jmeter.threads.ListenerNotifier: Continuing to process further listeners 
2014/05/26 15:47:31 INFO  - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1 
2014/05/26 15:47:31 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 

1 个答案:

答案 0 :(得分:0)

有10KBytes的硬限制:https://github.com/undera/jmeter-plugins/blob/master/standard/src/kg/apc/jmeter/reporters/FlexibleFileWriter.java#L223

您可以提供一个Pull请求,使其可以通过jmeter属性进行配置,就像它在插件代码中的其他几个地方一样。