• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Errores JMeter

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Buenos días,

Tengo instalado el JMeter para trabajar con MyEclipse y a la hora de hacerle el testeo me da los siguientes errores:


HTTP Request HTTPClient” rc=”Non HTTP response code: java.net.ConnectException”
Non HTTP response message: Connection refused: connect

Non HTTP response code: java.io.EOFException
Non HTTP response message: Unexpected end of ZLIB input stream

ya me estoy volviendo loco de mirar por todos lados y nadie es capaz de darme una solucion.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.
Could you please post in English? Not everyone here understands Spanish.
 
Alberto Fuertes
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, well, I'll try but my English is very bad.

I am using JMeter to test the application of the company and we need that can support 300 concurrent users.

The Jmeter I have it running on a test server that I use just now. The application has been generated in MyEclipse Java, the DB is Oracle and work through the glasfhis.

Applying now the users are using the company (about 30 concurrent users) and does not give any problems, but in January comes a new client to use our application and are 300 users or so so I need to confirm q our application can take it.

I have generated some execution threads with a couple of queries to DB, ie, nothing complicated.

The problem is that when I want to run a single user testing I get the following errors:

HTTP Request HTTPClient "rc =" Non HTTP response code: java.net.ConnectException "
Non HTTP response message: Connection refused: connect

Non HTTP response code: java.io.EOFException
Non HTTP response message: Unexpected end of ZLIB input stream

Could hecharme a hand please??

Thank you so much
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't worry about your English. Not everyone is a native English speaker

Non HTTP response message: Connection refused: connect


That would indicate that the machine you are trying to connect to is unreachable. Please post the whole stack trace (Please UseCodeTags <- link; cick to view)
 
Alberto Fuertes
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<httpSample t="2031" lt="0" ts="1378973971581" s="false" lb="HTTP Request HTTPClient" rc="Non HTTP response code: java.net.ConnectException" rm="Non HTTP response message: Connection refused: connect" tn="PruebasReales 1-1" dt="text" by="1978">
<responseData class="java.lang.String">java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.apache.jmeter.protocol.http.sampler.HTTPHC3Impl.sample(HTTPHC3Impl.java:258)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1077)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
at java.lang.Thread.run(Unknown Source)
</responseData>
<cookies class="java.lang.String"></cookies>
<method class="java.lang.String">POST</method>
<queryString class="java.lang.String">XML=true</queryString>
</httpSample>
 
Alberto Fuertes
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Now I'm using the program BadBoy to generate execution threads because it seems that JMeter is corrupt.

The error that occurs is:


java.lang.IllegalArgumentException: Host of origin may not be blank
at org.apache.commons.httpclient.cookie.CookieSpecBase.match(CookieSpecBase.java:461)
at org.apache.commons.httpclient.cookie.CookieSpecBase.match(CookieSpecBase.java:557)
at org.apache.jmeter.protocol.http.control.HC3CookieHandler.getCookiesForUrl(HC3CookieHandler.java:98)
at org.apache.jmeter.protocol.http.control.HC3CookieHandler.getCookieHeaderForURL(HC3CookieHandler.java:114)
at org.apache.jmeter.protocol.http.control.CookieManager.getCookieHeaderForURL(CookieManager.java:328)
at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.setConnectionCookie(HTTPJavaImpl.java:340)
at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.setupConnection(HTTPJavaImpl.java:200)
at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:484)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1077)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
at java.lang.Thread.run(Unknown Source)


It´s possible that I should difene another option?

Thank you for your help
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Alberto,

It looks like that your "host" parameter is blank. I guess that BadBoy generates corrupt .jmx file for some reasons i.e. fails to set correct host/port combination.

Have you tried JMeter embedded HTTP Proxy server to record your test steps? JMeter is smart enough to record HTTP requests.

The idea is to enable JMeter's proxy, point your browser to use it and navigate to your application.



 
rubbery bacon. crispy tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic