out of memory error while load testing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

out of memory error while load testing

srikanth peddireddy
Hi All,
 
Recently we started load testing our application using Jmeter.
Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc
 
        ======================================
 
SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
Jun 30, 2005 3:13:53 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
 
          ======================================
 
I already configured the Tomcat using -Xmx option to use upto 2GB of RAM (Tomcat is running on a 3GB RAM machine)
 
Any inputs or pointers to the related resources on this problem??
 
regards
Srikanth


Disclaimer
------------------------------------------------------------------------------------
This e-mail message may contain confidential, proprietary
or legally privileged information. It should not be used by
anyone who is not the original intended recipient. If you
have erroneously received this message, please delete it
immediately and notify the sender.

The views, opinions, conclusions and other information
expressed in this electronic mail are those of the
individual sender and not endorsed by SDG Software
Technologies Pvt. Ltd. unless otherwise indicated by an
authorised representative independent of this message.

Before opening any attachment please check them for viruses
and defects. SDG Software Technologies Pvt. Ltd. shall not
accept responsibility for any loss or damage arising from
the use of this email or attachment(s).
-------------------------------------------------------------------------------------
               
---------------------------------
 Free antispam, antivirus and 1GB to save all your messages
 Only in Yahoo! Mail: http://in.mail.yahoo.com
Reply | Threaded
Open this post in threaded view
|

Re: out of memory error while load testing

Nallapeta Bhaskar
You need to check on whether it is giving Outofmemory error is
immediately after starting loadtesting with 1500 users or over period of
time. If it is over period of time then you need to check whether there
are any memory leaks. Or your design for ex., it might happen if you
query db and that ends up resulting in huge number of rows.
BTW., what is the max number of threads you have configured?
 and what is the active number of threads? Pbly u can use
Performance-Valve to get such details.

Bhaskar


srikanth peddireddy wrote:

>Hi All,
>
>Recently we started load testing our application using Jmeter.
>Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc
>
>        ======================================
>
>SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
>t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
>Jun 30, 2005 3:13:53 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
>
>          ======================================
>
>I already configured the Tomcat using -Xmx option to use upto 2GB of RAM (Tomcat is running on a 3GB RAM machine)
>
>Any inputs or pointers to the related resources on this problem??
>
>regards
>Srikanth
>
>
>Disclaimer
>------------------------------------------------------------------------------------
>This e-mail message may contain confidential, proprietary
>or legally privileged information. It should not be used by
>anyone who is not the original intended recipient. If you
>have erroneously received this message, please delete it
>immediately and notify the sender.
>
>The views, opinions, conclusions and other information
>expressed in this electronic mail are those of the
>individual sender and not endorsed by SDG Software
>Technologies Pvt. Ltd. unless otherwise indicated by an
>authorised representative independent of this message.
>
>Before opening any attachment please check them for viruses
>and defects. SDG Software Technologies Pvt. Ltd. shall not
>accept responsibility for any loss or damage arising from
>the use of this email or attachment(s).
>-------------------------------------------------------------------------------------
>
>---------------------------------
> Free antispam, antivirus and 1GB to save all your messages
> Only in Yahoo! Mail: http://in.mail.yahoo.com
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: out of memory error while load testing

Peddireddy Srikanth
Hi,
Its giving out of memory over a period of time (i.e after test ran for
some time ) not immediately after starting the test
Follwing settings are given in my server.xml
For HTTP

<Connector port="80"
               maxThreads="500" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="150"
               connectionTimeout="20000" disableUploadTimeout="true" />

For HTTPS

 <Connector port="443"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />


By  active threads do u mean the thread count shown in windows task
manager or is there any way to find out active threads in Tomcat? what
is this Performance-Valve? can u give some more details on it ?

Thank you

regards
Srikanth.P


On 7/14/05, Bhaskar <[hidden email]> wrote:

> You need to check on whether it is giving Outofmemory error is
> immediately after starting loadtesting with 1500 users or over period of
> time. If it is over period of time then you need to check whether there
> are any memory leaks. Or your design for ex., it might happen if you
> query db and that ends up resulting in huge number of rows.
> BTW., what is the max number of threads you have configured?
> and what is the active number of threads? Pbly u can use
> Performance-Valve to get such details.
>
> Bhaskar
>
>
> srikanth peddireddy wrote:
>
> >Hi All,
> >
> >Recently we started load testing our application using Jmeter.
> >Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc
> >
> >        ======================================
> >
> >SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
> >t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
> >Jun 30, 2005 3:13:53 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
> >
> >          ======================================
> >
> >I already configured the Tomcat using -Xmx option to use upto 2GB of RAM (Tomcat is running on a 3GB RAM machine)
> >
> >Any inputs or pointers to the related resources on this problem??
> >
> >regards
> >Srikanth
> >
> >
> >Disclaimer
> >------------------------------------------------------------------------------------
> >This e-mail message may contain confidential, proprietary
> >or legally privileged information. It should not be used by
> >anyone who is not the original intended recipient. If you
> >have erroneously received this message, please delete it
> >immediately and notify the sender.
> >
> >The views, opinions, conclusions and other information
> >expressed in this electronic mail are those of the
> >individual sender and not endorsed by SDG Software
> >Technologies Pvt. Ltd. unless otherwise indicated by an
> >authorised representative independent of this message.
> >
> >Before opening any attachment please check them for viruses
> >and defects. SDG Software Technologies Pvt. Ltd. shall not
> >accept responsibility for any loss or damage arising from
> >the use of this email or attachment(s).
> >-------------------------------------------------------------------------------------
> >
> >---------------------------------
> > Free antispam, antivirus and 1GB to save all your messages
> > Only in Yahoo! Mail: http://in.mail.yahoo.com
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: out of memory error while load testing

Peddireddy Srikanth
In reply to this post by Nallapeta Bhaskar
I forgot to give details about my Application and test.
These details might give you people an idea about the problem area.
In this app. users has to enter login ID and pwd in home page which
will be sent to a resource which validates these details, say
"LoginValidation"  this resource will then forward control to the Main
Page of the Application, say "MainPage.jsp" . From main page user can
open/ request different pages(modules of application).
But my test only involves a request to "LoginValidation" followed by
request to main page.
In this app. inorder to get data about certain activities happening on
the server side into the client browser, we keep on refreshing a
hidden frame in mainpage (simply using html meta refresh ) after every
one minute, lets call this page as PollServerForData.jsp.
To simulate this i added a request to  PollServerForData.jsp also in
my test plan after request to the main page (that means every virtual
user will be requesting the PollServerForData.jsp page after every one
minute)
This test worked for 1200 virtual users and failed for when tried with
more than 1200 users .
Will there be any problem for tomcat for maintaining more than 1200
sessions in memory??

regards
Srikanth.P


On 7/14/05, Bhaskar <[hidden email]> wrote:

> You need to check on whether it is giving Outofmemory error is
> immediately after starting loadtesting with 1500 users or over period of
> time. If it is over period of time then you need to check whether there
> are any memory leaks. Or your design for ex., it might happen if you
> query db and that ends up resulting in huge number of rows.
> BTW., what is the max number of threads you have configured?
>  and what is the active number of threads? Pbly u can use
> Performance-Valve to get such details.
>
> Bhaskar
>
>
> srikanth peddireddy wrote:
>
> >Hi All,
> >
> >Recently we started load testing our application using Jmeter.
> >Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc
> >
> >        ======================================
> >
> >SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
> >t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
> >Jun 30, 2005 3:13:53 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
> >
> >          ======================================
> >
> >I already configured the Tomcat using -Xmx option to use upto 2GB of RAM (Tomcat is running on a 3GB RAM machine)
> >
> >Any inputs or pointers to the related resources on this problem??
> >
> >regards
> >Srikanth
> >
> >
> >Disclaimer
> >------------------------------------------------------------------------------------
> >This e-mail message may contain confidential, proprietary
> >or legally privileged information. It should not be used by
> >anyone who is not the original intended recipient. If you
> >have erroneously received this message, please delete it
> >immediately and notify the sender.
> >
> >The views, opinions, conclusions and other information
> >expressed in this electronic mail are those of the
> >individual sender and not endorsed by SDG Software
> >Technologies Pvt. Ltd. unless otherwise indicated by an
> >authorised representative independent of this message.
> >
> >Before opening any attachment please check them for viruses
> >and defects. SDG Software Technologies Pvt. Ltd. shall not
> >accept responsibility for any loss or damage arising from
> >the use of this email or attachment(s).
> >-------------------------------------------------------------------------------------
> >
> >---------------------------------
> > Free antispam, antivirus and 1GB to save all your messages
> > Only in Yahoo! Mail: http://in.mail.yahoo.com
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: out of memory error while load testing

Nallapeta Bhaskar
In reply to this post by Peddireddy Srikanth
start tomcat with -Xrunprof and look at the profile to figureout if
there are any objects consuming more memory(leaks). Thread.activeCount()
gives you total number of active threads in the current JVM.
Refer to javax.management to know more about the Mbeans to monitor the
tomcat.

You need to write the proxy valve by implementing the
org.apache.catalina.Valve,  interface. This proxy will gets the request
and invokes the actual servlet. You can track the time taken to process
each request here.

Bhaskar



Peddireddy Srikanth wrote:

>Hi,
>Its giving out of memory over a period of time (i.e after test ran for
>some time ) not immediately after starting the test
>Follwing settings are given in my server.xml
>For HTTP
>
><Connector port="80"
>               maxThreads="500" minSpareThreads="25" maxSpareThreads="75"
>               enableLookups="false" redirectPort="8443" acceptCount="150"
>               connectionTimeout="20000" disableUploadTimeout="true" />
>
>For HTTPS
>
> <Connector port="443"
>               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>               enableLookups="false" disableUploadTimeout="true"
>               acceptCount="100" scheme="https" secure="true"
>               clientAuth="false" sslProtocol="TLS" />
>
>
>By  active threads do u mean the thread count shown in windows task
>manager or is there any way to find out active threads in Tomcat? what
>is this Performance-Valve? can u give some more details on it ?
>
>Thank you
>
>regards
>Srikanth.P
>
>
>On 7/14/05, Bhaskar <[hidden email]> wrote:
>  
>
>>You need to check on whether it is giving Outofmemory error is
>>immediately after starting loadtesting with 1500 users or over period of
>>time. If it is over period of time then you need to check whether there
>>are any memory leaks. Or your design for ex., it might happen if you
>>query db and that ends up resulting in huge number of rows.
>>BTW., what is the max number of threads you have configured?
>>and what is the active number of threads? Pbly u can use
>>Performance-Valve to get such details.
>>
>>Bhaskar
>>
>>
>>srikanth peddireddy wrote:
>>
>>    
>>
>>>Hi All,
>>>
>>>Recently we started load testing our application using Jmeter.
>>>Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc
>>>
>>>       ======================================
>>>
>>>SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
>>>t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
>>>Jun 30, 2005 3:13:53 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
>>>
>>>         ======================================
>>>
>>>I already configured the Tomcat using -Xmx option to use upto 2GB of RAM (Tomcat is running on a 3GB RAM machine)
>>>
>>>Any inputs or pointers to the related resources on this problem??
>>>
>>>regards
>>>Srikanth
>>>
>>>
>>>Disclaimer
>>>------------------------------------------------------------------------------------
>>>This e-mail message may contain confidential, proprietary
>>>or legally privileged information. It should not be used by
>>>anyone who is not the original intended recipient. If you
>>>have erroneously received this message, please delete it
>>>immediately and notify the sender.
>>>
>>>The views, opinions, conclusions and other information
>>>expressed in this electronic mail are those of the
>>>individual sender and not endorsed by SDG Software
>>>Technologies Pvt. Ltd. unless otherwise indicated by an
>>>authorised representative independent of this message.
>>>
>>>Before opening any attachment please check them for viruses
>>>and defects. SDG Software Technologies Pvt. Ltd. shall not
>>>accept responsibility for any loss or damage arising from
>>>the use of this email or attachment(s).
>>>-------------------------------------------------------------------------------------
>>>
>>>---------------------------------
>>>Free antispam, antivirus and 1GB to save all your messages
>>>Only in Yahoo! Mail: http://in.mail.yahoo.com
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [hidden email]
>>For additional commands, e-mail: [hidden email]
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [hidden email]
>For additional commands, e-mail: [hidden email]
>
>
>
>
>  
>

Reply | Threaded
Open this post in threaded view
|

Re: out of memory error while load testing

Nallapeta Bhaskar
In reply to this post by Peddireddy Srikanth
You can change the JVM option, -Xmx to increase the heap size in
catalina.sh and see if it can accomidate more requests

Peddireddy Srikanth wrote:

>I forgot to give details about my Application and test.
>These details might give you people an idea about the problem area.
>In this app. users has to enter login ID and pwd in home page which
>will be sent to a resource which validates these details, say
>"LoginValidation"  this resource will then forward control to the Main
>Page of the Application, say "MainPage.jsp" . From main page user can
>open/ request different pages(modules of application).
>But my test only involves a request to "LoginValidation" followed by
>request to main page.
>In this app. inorder to get data about certain activities happening on
>the server side into the client browser, we keep on refreshing a
>hidden frame in mainpage (simply using html meta refresh ) after every
>one minute, lets call this page as PollServerForData.jsp.
>To simulate this i added a request to  PollServerForData.jsp also in
>my test plan after request to the main page (that means every virtual
>user will be requesting the PollServerForData.jsp page after every one
>minute)
>This test worked for 1200 virtual users and failed for when tried with
>more than 1200 users .
>Will there be any problem for tomcat for maintaining more than 1200
>sessions in memory??
>
>regards
>Srikanth.P
>
>
>On 7/14/05, Bhaskar <[hidden email]> wrote:
>  
>
>>You need to check on whether it is giving Outofmemory error is
>>immediately after starting loadtesting with 1500 users or over period of
>>time. If it is over period of time then you need to check whether there
>>are any memory leaks. Or your design for ex., it might happen if you
>>query db and that ends up resulting in huge number of rows.
>>BTW., what is the max number of threads you have configured?
>> and what is the active number of threads? Pbly u can use
>>Performance-Valve to get such details.
>>
>>Bhaskar
>>
>>
>>srikanth peddireddy wrote:
>>
>>    
>>
>>>Hi All,
>>>
>>>Recently we started load testing our application using Jmeter.
>>>Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc
>>>
>>>       ======================================
>>>
>>>SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
>>>t.util.net.LeaderFollowerWorkerThread@8f3eac, terminating thread
>>>Jun 30, 2005 3:13:53 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
>>>
>>>         ======================================
>>>
>>>I already configured the Tomcat using -Xmx option to use upto 2GB of RAM (Tomcat is running on a 3GB RAM machine)
>>>
>>>Any inputs or pointers to the related resources on this problem??
>>>
>>>regards
>>>Srikanth
>>>
>>>
>>>Disclaimer
>>>------------------------------------------------------------------------------------
>>>This e-mail message may contain confidential, proprietary
>>>or legally privileged information. It should not be used by
>>>anyone who is not the original intended recipient. If you
>>>have erroneously received this message, please delete it
>>>immediately and notify the sender.
>>>
>>>The views, opinions, conclusions and other information
>>>expressed in this electronic mail are those of the
>>>individual sender and not endorsed by SDG Software
>>>Technologies Pvt. Ltd. unless otherwise indicated by an
>>>authorised representative independent of this message.
>>>
>>>Before opening any attachment please check them for viruses
>>>and defects. SDG Software Technologies Pvt. Ltd. shall not
>>>accept responsibility for any loss or damage arising from
>>>the use of this email or attachment(s).
>>>-------------------------------------------------------------------------------------
>>>
>>>---------------------------------
>>>Free antispam, antivirus and 1GB to save all your messages
>>>Only in Yahoo! Mail: http://in.mail.yahoo.com
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [hidden email]
>>For additional commands, e-mail: [hidden email]
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [hidden email]
>For additional commands, e-mail: [hidden email]
>
>
>
>
>  
>