You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Anusha <an...@eprotea.com.my> on 2005/06/29 12:01:43 UTC

File Upload Scenario replay fail

Hi All

 

 

My application uploads files (eg. word, excel) into my sql database. My browser is IE 6. OS: Window 2000 server. I am using apache as my server. I am using jakarta-jmeter-2.0.3

 

I am doing the recording locally on my pc. I successfully recorded the file upload scenario. I recorded browsing for an excel file that is 1.84 MB large  and uploaded it successfully into the db. Then  I replayed the script, but the file won't upload at replay.   

 

I get this error when I choose to view results on tree:

Load time: 594
HTTP response code: 302
HTTP response message: Found

 HTTP response headers:
HTTP/1.1 302 Found
Date: Mon, 27 Jun 2005 03:55:14 GMT
Server: IBM_HTTP_SERVER/1.3.19.6  Apache/1.3.20 (Unix)
location: http://192.168.3.199/iteps/servlet/../bnm/jsp/frmErrMsgClose.jsp?reason=Session Timeout.&title=Excel Upload Failed.
Content-Length: 0
Keep-Alive: timeout=15, max=89
Connection: Keep-Alive
Content-Type: text/html
Content-Language: en



How come the excel file upload failed? It says that the reason is session time out? What can I do about this? When I did the recording the file was successfully saved into the db. Now when I replay, I get this error. 



I have also tried with a smaller file, but I still get this error. 



Kindly provide me with some suggestions. I have downloaded the latest Jmeter and I still face this problem.

 

Thanks

 

Regards,

Anusha

 

Re: File Upload Scenario replay fail

Posted by Peter Lin <wo...@gmail.com>.
have you tried chaning the timeout value on the server?

peter


On 6/29/05, Anusha <an...@eprotea.com.my> wrote:
> Hi All
> 
> 
> 
> 
> 
> My application uploads files (eg. word, excel) into my sql database. My browser is IE 6. OS: Window 2000 server. I am using apache as my server. I am using jakarta-jmeter-2.0.3
> 
> 
> 
> I am doing the recording locally on my pc. I successfully recorded the file upload scenario. I recorded browsing for an excel file that is 1.84 MB large  and uploaded it successfully into the db. Then  I replayed the script, but the file won't upload at replay.
> 
> 
> 
> I get this error when I choose to view results on tree:
> 
> Load time: 594
> HTTP response code: 302
> HTTP response message: Found
> 
>  HTTP response headers:
> HTTP/1.1 302 Found
> Date: Mon, 27 Jun 2005 03:55:14 GMT
> Server: IBM_HTTP_SERVER/1.3.19.6  Apache/1.3.20 (Unix)
> location: http://192.168.3.199/iteps/servlet/../bnm/jsp/frmErrMsgClose.jsp?reason=Session Timeout.&title=Excel Upload Failed.
> Content-Length: 0
> Keep-Alive: timeout=15, max=89
> Connection: Keep-Alive
> Content-Type: text/html
> Content-Language: en
> 
> 
> 
> How come the excel file upload failed? It says that the reason is session time out? What can I do about this? When I did the recording the file was successfully saved into the db. Now when I replay, I get this error.
> 
> 
> 
> I have also tried with a smaller file, but I still get this error.
> 
> 
> 
> Kindly provide me with some suggestions. I have downloaded the latest Jmeter and I still face this problem.
> 
> 
> 
> Thanks
> 
> 
> 
> Regards,
> 
> Anusha
> 
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: File Upload Scenario replay fail

Posted by Peter Lin <wo...@gmail.com>.
the easiest way is to add the cookie manager to the thread group. once
the test starts, the cookie manager will do it's thing.

peter


On 6/29/05, Anusha <an...@eprotea.com.my> wrote:
> Hi!
> 
> Would u be able to tell me how to manage the cookies. I read the manual, but
> I don't quite get it. From my understanding, it can be managed automatically
> or manually by adding the HTTP Cookie Manager
> ----- Original Message -----
> From: "Michael Stover" <ms...@apache.org>
> To: <jm...@jakarta.apache.org>
> Sent: Wednesday, June 29, 2005 9:03 PM
> Subject: Re: File Upload Scenario replay fail
> 
> 
> > "reason=Session Timeout"
> >
> > Did you forget to include a Cookie Manager in your test plan?
> >
> > -Mike
> >
> >
> > On Wed, 2005-06-29 at 18:01 +0800, Anusha wrote:
> > > Hi All
> > >
> > >
> > >
> > >
> > >
> > > My application uploads files (eg. word, excel) into my sql database. My
> browser is IE 6. OS: Window 2000 server. I am using apache as my server. I
> am using jakarta-jmeter-2.0.3
> > >
> > >
> > >
> > > I am doing the recording locally on my pc. I successfully recorded the
> file upload scenario. I recorded browsing for an excel file that is 1.84 MB
> large  and uploaded it successfully into the db. Then  I replayed the
> script, but the file won't upload at replay.
> > >
> > >
> > >
> > > I get this error when I choose to view results on tree:
> > >
> > > Load time: 594
> > > HTTP response code: 302
> > > HTTP response message: Found
> > >
> > >  HTTP response headers:
> > > HTTP/1.1 302 Found
> > > Date: Mon, 27 Jun 2005 03:55:14 GMT
> > > Server: IBM_HTTP_SERVER/1.3.19.6  Apache/1.3.20 (Unix)
> > > location:
> http://192.168.3.199/iteps/servlet/../bnm/jsp/frmErrMsgClose.jsp?reason=Session
> Timeout.&title=Excel Upload Failed.
> > > Content-Length: 0
> > > Keep-Alive: timeout=15, max=89
> > > Connection: Keep-Alive
> > > Content-Type: text/html
> > > Content-Language: en
> > >
> > >
> > >
> > > How come the excel file upload failed? It says that the reason is
> session time out? What can I do about this? When I did the recording the
> file was successfully saved into the db. Now when I replay, I get this
> error.
> > >
> > >
> > >
> > > I have also tried with a smaller file, but I still get this error.
> > >
> > >
> > >
> > > Kindly provide me with some suggestions. I have downloaded the latest
> Jmeter and I still face this problem.
> > >
> > >
> > >
> > > Thanks
> > >
> > >
> > >
> > > Regards,
> > >
> > > Anusha
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: File Upload Scenario replay fail

Posted by Anusha <an...@eprotea.com.my>.
Hi!

Would u be able to tell me how to manage the cookies. I read the manual, but
I don't quite get it. From my understanding, it can be managed automatically
or manually by adding the HTTP Cookie Manager
----- Original Message ----- 
From: "Michael Stover" <ms...@apache.org>
To: <jm...@jakarta.apache.org>
Sent: Wednesday, June 29, 2005 9:03 PM
Subject: Re: File Upload Scenario replay fail


> "reason=Session Timeout"
>
> Did you forget to include a Cookie Manager in your test plan?
>
> -Mike
>
>
> On Wed, 2005-06-29 at 18:01 +0800, Anusha wrote:
> > Hi All
> >
> >
> >
> >
> >
> > My application uploads files (eg. word, excel) into my sql database. My
browser is IE 6. OS: Window 2000 server. I am using apache as my server. I
am using jakarta-jmeter-2.0.3
> >
> >
> >
> > I am doing the recording locally on my pc. I successfully recorded the
file upload scenario. I recorded browsing for an excel file that is 1.84 MB
large  and uploaded it successfully into the db. Then  I replayed the
script, but the file won't upload at replay.
> >
> >
> >
> > I get this error when I choose to view results on tree:
> >
> > Load time: 594
> > HTTP response code: 302
> > HTTP response message: Found
> >
> >  HTTP response headers:
> > HTTP/1.1 302 Found
> > Date: Mon, 27 Jun 2005 03:55:14 GMT
> > Server: IBM_HTTP_SERVER/1.3.19.6  Apache/1.3.20 (Unix)
> > location:
http://192.168.3.199/iteps/servlet/../bnm/jsp/frmErrMsgClose.jsp?reason=Session
Timeout.&title=Excel Upload Failed.
> > Content-Length: 0
> > Keep-Alive: timeout=15, max=89
> > Connection: Keep-Alive
> > Content-Type: text/html
> > Content-Language: en
> >
> >
> >
> > How come the excel file upload failed? It says that the reason is
session time out? What can I do about this? When I did the recording the
file was successfully saved into the db. Now when I replay, I get this
error.
> >
> >
> >
> > I have also tried with a smaller file, but I still get this error.
> >
> >
> >
> > Kindly provide me with some suggestions. I have downloaded the latest
Jmeter and I still face this problem.
> >
> >
> >
> > Thanks
> >
> >
> >
> > Regards,
> >
> > Anusha
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Errors in jmeter and tomcat at higher loads

Posted by Praveen Kallakuri <pk...@gmail.com>.
Your test is too intense. Do you have any delay between consecutive
samplers in your test plan? You might very well be running a DOS
attack against your server.

As for the IO exceptions,.. I used to get IO exceptions in jmeter when
there were too many threads receiving a response from the server.

What I did was split up the number of jmeter instances generating
load.. instead of 1 jmeter client running 1000 threads, I used 2 or 3
jmeter instances on different machines.. I was able to reach the
concurrency desired, besides it being a more realistic test.

I still cannot explain why this works... most probably, I guessed that
there were simply too many channels open between jmeter and the
appserver.. something in the network route (a switch, or maybe the
bandwidth supporting by the ethernet itself) was becoming a
bottleneck. Either this or jmeter, given its resources simply cannot
keep so many channels open.

I suggest you monitor the capacities of various network components
while running your test in order to see whether there is some
bottleneck there... or simply like I did, split up the source of the
traffic and see whether you can generate the same load.

On 6/30/05, srikanth peddireddy <sr...@yahoo.co.in> wrote:
> 
> Hi All,
> 
> Iam doing the  loadtest on one of our web application deployed on tomcat. Both Tomcat and Jmeter are running on a very high end machines (4-proc 3 GB RAM machine  and 2-proc 1.5 GB machines respectivelhy).
> 
> When Iam running a particular test whose structure would be like
> 
> ThreadGrp
> 
>    |____RequestUserAuthentication (which takes ID and PWD as params)
> 
>    |____MainPage (which is shown to valid users)
> 
>    |____MainPageSub (Some page loaded into sub frame of main page)
> 
>    |____LoopController (forever set)
> 
>               |___Page1.jsp (bcoz of timer Page1 Called after 1 min of mainpage)
> 
>                         |___ConstantTimer(Delay set as 60000)
> 
>               |____InterLeaveController
> 
>                       |___OnlyOnce Controller
> 
>                             |___Page2.jsp
> 
>                       |___OnlyOnce Controller
> 
>                             |___Page3.jsp
> 
>                       |___OnlyOnce Controller
> 
>                             |___Page4.jsp
> 
> 
> When I  ran this test with thread count = 1000 and rampup period =200 seconds, I started seeing errors in  Jmeter after some 865 requests are sent to mainpage and MainPageSub  (all 1000 requests are sent to RequestUserAuthentication) (these request counts are according to Aggregate Report Listener)
> 
> Following is the error  shown in Jmeter (Tree listener)
> 
> java.io.IOException: Stream closed
>  at java.io.BufferedInputStream.ensureOpen(Unknown Source)
>  at java.io.BufferedInputStream.read(Unknown Source)
>  at java.io.FilterInputStream.read(Unknown Source)
>  at org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:263)
>  at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:496)
>  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:590)
>  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:578)
>  at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:281)
>  at java.lang.Thread.run(Unknown Source)
> 
> 
> But I let the test continue like that even Iam seeing errors, then after a while i saw a java.lang.OutOfMemoryError in tomcat
> When I manually stopped the test and jmeter is still stopping the threads , tomcat started giving out following error messages
> 
> 
> SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
> t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
> Jun 30, 2005 3:13:15 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnabl
> e run
> SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
> t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
> Jun 30, 2005 3:13:18 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnabl
> e run
> SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
> t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
> Jun 30, 2005 3:13:44 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnabl
> e run
> 
> ..................
> 
> I cant understand what should I conclude from this --
>  whether jmeter is unable to create and maintain somuch load   or
>  tomcat is unable to handle so many requests
> 
> 
> Point to note here is test ran successfully with thread count=50 and ramp-up = 100 seconds
> 
> any help / input in this would be appreciated
> 
> 
> 
> regards
> 
> Srikanth.P
> 
> 
> ---------------------------------
>  Free antispam, antivirus and 1GB to save all your messages
>  Only in Yahoo! Mail: http://in.mail.yahoo.com
> 


-- 
                                     k.p.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Errors in jmeter and tomcat at higher loads

Posted by srikanth peddireddy <sr...@yahoo.co.in>.
Hi All,

Iam doing the  loadtest on one of our web application deployed on tomcat. Both Tomcat and Jmeter are running on a very high end machines (4-proc 3 GB RAM machine  and 2-proc 1.5 GB machines respectivelhy).

When Iam running a particular test whose structure would be like 

ThreadGrp

   |____RequestUserAuthentication (which takes ID and PWD as params)

   |____MainPage (which is shown to valid users)

   |____MainPageSub (Some page loaded into sub frame of main page)

   |____LoopController (forever set)

              |___Page1.jsp (bcoz of timer Page1 Called after 1 min of mainpage)

                        |___ConstantTimer(Delay set as 60000)

              |____InterLeaveController

                      |___OnlyOnce Controller

                            |___Page2.jsp

                      |___OnlyOnce Controller

                            |___Page3.jsp

                      |___OnlyOnce Controller

                            |___Page4.jsp

 
When I  ran this test with thread count = 1000 and rampup period =200 seconds, I started seeing errors in  Jmeter after some 865 requests are sent to mainpage and MainPageSub  (all 1000 requests are sent to RequestUserAuthentication) (these request counts are according to Aggregate Report Listener)

Following is the error  shown in Jmeter (Tree listener)

java.io.IOException: Stream closed
 at java.io.BufferedInputStream.ensureOpen(Unknown Source)
 at java.io.BufferedInputStream.read(Unknown Source)
 at java.io.FilterInputStream.read(Unknown Source)
 at org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:263)
 at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:496)
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:590)
 at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:578)
 at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:281)
 at java.lang.Thread.run(Unknown Source)


But I let the test continue like that even Iam seeing errors, then after a while i saw a java.lang.OutOfMemoryError in tomcat
When I manually stopped the test and jmeter is still stopping the threads , tomcat started giving out following error messages


SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
Jun 30, 2005 3:13:15 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnabl
e run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
Jun 30, 2005 3:13:18 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnabl
e run
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
Jun 30, 2005 3:13:44 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnabl
e run

..................

I cant understand what should I conclude from this -- 
 whether jmeter is unable to create and maintain somuch load   or
 tomcat is unable to handle so many requests


Point to note here is test ran successfully with thread count=50 and ramp-up = 100 seconds

any help / input in this would be appreciated

 

regards

Srikanth.P

		
---------------------------------
 Free antispam, antivirus and 1GB to save all your messages
 Only in Yahoo! Mail: http://in.mail.yahoo.com

Re: File Upload Scenario replay fail

Posted by Anusha <an...@eprotea.com.my>.
Hi Mike,

It's working now. Thanks for your suggestion..

Anusha
----- Original Message ----- 
From: "Michael Stover" <ms...@apache.org>
To: <jm...@jakarta.apache.org>
Sent: Wednesday, June 29, 2005 9:03 PM
Subject: Re: File Upload Scenario replay fail


> "reason=Session Timeout"
>
> Did you forget to include a Cookie Manager in your test plan?
>
> -Mike
>
>
> On Wed, 2005-06-29 at 18:01 +0800, Anusha wrote:
> > Hi All
> >
> >
> >
> >
> >
> > My application uploads files (eg. word, excel) into my sql database. My
browser is IE 6. OS: Window 2000 server. I am using apache as my server. I
am using jakarta-jmeter-2.0.3
> >
> >
> >
> > I am doing the recording locally on my pc. I successfully recorded the
file upload scenario. I recorded browsing for an excel file that is 1.84 MB
large  and uploaded it successfully into the db. Then  I replayed the
script, but the file won't upload at replay.
> >
> >
> >
> > I get this error when I choose to view results on tree:
> >
> > Load time: 594
> > HTTP response code: 302
> > HTTP response message: Found
> >
> >  HTTP response headers:
> > HTTP/1.1 302 Found
> > Date: Mon, 27 Jun 2005 03:55:14 GMT
> > Server: IBM_HTTP_SERVER/1.3.19.6  Apache/1.3.20 (Unix)
> > location:
http://192.168.3.199/iteps/servlet/../bnm/jsp/frmErrMsgClose.jsp?reason=Session
Timeout.&title=Excel Upload Failed.
> > Content-Length: 0
> > Keep-Alive: timeout=15, max=89
> > Connection: Keep-Alive
> > Content-Type: text/html
> > Content-Language: en
> >
> >
> >
> > How come the excel file upload failed? It says that the reason is
session time out? What can I do about this? When I did the recording the
file was successfully saved into the db. Now when I replay, I get this
error.
> >
> >
> >
> > I have also tried with a smaller file, but I still get this error.
> >
> >
> >
> > Kindly provide me with some suggestions. I have downloaded the latest
Jmeter and I still face this problem.
> >
> >
> >
> > Thanks
> >
> >
> >
> > Regards,
> >
> > Anusha
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: File Upload Scenario replay fail

Posted by Michael Stover <ms...@apache.org>.
"reason=Session Timeout"

Did you forget to include a Cookie Manager in your test plan?

-Mike


On Wed, 2005-06-29 at 18:01 +0800, Anusha wrote:
> Hi All
> 
>  
> 
> 
> 
> My application uploads files (eg. word, excel) into my sql database. My browser is IE 6. OS: Window 2000 server. I am using apache as my server. I am using jakarta-jmeter-2.0.3
> 
>  
> 
> I am doing the recording locally on my pc. I successfully recorded the file upload scenario. I recorded browsing for an excel file that is 1.84 MB large  and uploaded it successfully into the db. Then  I replayed the script, but the file won't upload at replay.   
> 
>  
> 
> I get this error when I choose to view results on tree:
> 
> Load time: 594
> HTTP response code: 302
> HTTP response message: Found
> 
>  HTTP response headers:
> HTTP/1.1 302 Found
> Date: Mon, 27 Jun 2005 03:55:14 GMT
> Server: IBM_HTTP_SERVER/1.3.19.6  Apache/1.3.20 (Unix)
> location: http://192.168.3.199/iteps/servlet/../bnm/jsp/frmErrMsgClose.jsp?reason=Session Timeout.&title=Excel Upload Failed.
> Content-Length: 0
> Keep-Alive: timeout=15, max=89
> Connection: Keep-Alive
> Content-Type: text/html
> Content-Language: en
> 
> 
> 
> How come the excel file upload failed? It says that the reason is session time out? What can I do about this? When I did the recording the file was successfully saved into the db. Now when I replay, I get this error. 
> 
> 
> 
> I have also tried with a smaller file, but I still get this error. 
> 
> 
> 
> Kindly provide me with some suggestions. I have downloaded the latest Jmeter and I still face this problem.
> 
>  
> 
> Thanks
> 
>  
> 
> Regards,
> 
> Anusha
> 
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org