jmeter 启动异常代码
2017/03/27 17:45:54 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.assertions.BSFAssertion
2017/03/27 17:45:55 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.extractor.BSFPostProcessor
2017/03/27 17:45:55 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.modifiers.BSFPreProcessor
2017/03/27 17:45:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2017/03/27 17:45:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2017/03/27 17:45:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2017/03/27 17:45:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2017/03/27 17:45:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2017/03/27 17:45:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
2017/03/27 17:45:55 INFO - jorphan.exec.KeyToolUtils: keytool found at 'keytool'
2017/03/27 17:45:55 INFO - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file E:\software\apache-jmeter-3.1\bin\proxyserver.jks
2017/03/27 17:45:55 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.java.sampler.BSFSampler
2017/03/27 17:45:55 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.config.MongoSourceElement
2017/03/27 17:45:55 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.sampler.MongoScriptSampler
2017/03/27 17:45:55 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.timers.BSFTimer
2017/03/27 17:45:55 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.visualizers.BSFListener
2017/03/27 17:45:55 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.visualizers.MonitorHealthVisualizer
2017/03/27 17:45:55 INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times
2017/03/27 17:45:55 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2017/03/27 17:45:55 INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true
2017/03/27 17:45:55 INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000
2017/03/27 17:46:11 INFO - jmeter.services.FileServer: Default base='E:\software\apache-jmeter-3.1\bin'
2017/03/27 17:46:11 INFO - jmeter.services.FileServer: Set new base='E:\software\apache-jmeter-3.1\bin'
2017/03/27 17:46:11 INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
2017/03/27 17:46:11 INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8
2017/03/27 17:46:11 INFO - jmeter.save.SaveService: Using SaveService properties version 3.1
2017/03/27 17:46:11 INFO - jmeter.save.SaveService: All converter versions present and correct
2017/03/27 17:46:11 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2017/03/27 17:46:11 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2017/03/27 17:46:11 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2017/03/27 17:46:11 INFO - jmeter.protocol.java.sampler.JavaSampler: Created class: com.dubbo.ClassDemoConsumer. Uses tearDownTest: true
2017/03/27 17:46:11 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2017/03/27 17:46:11 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : 线程组
2017/03/27 17:46:11 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group 线程组.
2017/03/27 17:46:11 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2017/03/27 17:46:11 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2017/03/27 17:46:11 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2017/03/27 17:46:11 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2017/03/27 17:46:11 INFO - jmeter.threads.JMeterThread: Thread started: 线程组 1-1
2017/03/27 17:46:11 INFO - org.springframework.context.support.ClassPathXmlApplicationContext: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@605cb035: startup date [Mon Mar 27 17:46:11 GMT+08:00 2017]; root of context hierarchy
2017/03/27 17:46:11 INFO - org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [dubbo-config/dubboConfig.xml]
2017/03/27 17:46:12 ERROR - jmeter.threads.JMeterThread: Error while processing sampler 'Java请求' : com.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://192.168.8.144:20880/com.why.staff.service.SearchStaffService?anyhost=true&application=whydubbo&channel.readonly.sent=true&codec=dubbo&dubbo=2.5.3&heartbeat=60000&interface=com.why.staff.service.SearchStaffService&methods=searchOneStaff&pid=22220&revision=1.0-SNAPSHOT&side=provider&timeout=1200000×tamp=1490607972076) Failed to bind NettyServer on /192.168.8.144:20880, cause: Failed to bind to: /0.0.0.0:20880
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:289)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:266)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:253)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:55)
at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:56)
at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)
at com.alibaba.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:153)
at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:107)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:53)
at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:54)
at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)
at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:485)
at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:281)
at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:242)
at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:143)
at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:109)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:776)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:485)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at com.dubbo.ClassDemoConsumer.setupTest(ClassDemoConsumer.java:21)
at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:193)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
at java.lang.Thread.run(Unknown Source)
Caused by: com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer on /192.168.8.144:20880, cause: Failed to bind to: /0.0.0.0:20880
at com.alibaba.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:72)
at com.alibaba.dubbo.remoting.transport.netty.NettyServer.<init>(NettyServer.java:63)
at com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.bind(NettyTransporter.java:33)
at com.alibaba.dubbo.remoting.Transporter$Adpative.bind(Transporter$Adpative.java)
at com.alibaba.dubbo.remoting.Transporters.bind(Transporters.java:48)
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.bind(HeaderExchanger.java:41)
at com.alibaba.dubbo.remoting.exchange.Exchangers.bind(Exchangers.java:63)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:287)
... 27 more
Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:20880
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303)
at com.alibaba.dubbo.remoting.transport.netty.NettyServer.doOpen(NettyServer.java:94)
at com.alibaba.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:67)
... 34 more
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74)
at org.jboss.netty.channel.Channels.bind(Channels.java:468)
at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:192)
at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:348)
at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:85)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90)
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:282)
... 36 more
2017/03/27 17:46:12 INFO - jmeter.threads.JMeterThread: Thread is done: 线程组 1-1
2017/03/27 17:46:12 INFO - jmeter.threads.JMeterThread: Thread finished: 线程组 1-1
2017/03/27 17:46:12 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2017/03/27 17:46:12 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 解决办法:
1、检查下本机的端口是否真的被占用; 2、检查下自己是不是把服务端整个应用也放到了jmeter的lib下(注意:jmeter会把你的服务端当作应用来运行,并占用端口,所以要注意)