You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by vineeta vashistha <vi...@appulse.com> on 2010/11/26 07:18:23 UTC
JVM tuning
I am using jdk.1.6
My System is getting paused for 5 minutes at the time of GC.
Please suggest some settings so that system doesn't pause for such a long
duration.
Regards,
Vineeta
Re: JVM tuning
Posted by Adrian Speteanu <as...@gmail.com>.
Hello,
Hope these help (personally I read the last link first, some time ago, just
to have some clue on the parameters used in jmeter script, as they come out
of the box: .bat for windows or jmeter on linux). However they still should
be useful.
http://java.sun.com/performance/reference/whitepapers/tuning.html
http://java.sun.com/docs/hotspot/gc1.4.2/faq.html
http://fedora.fiz-karlsruhe.de/docs/Wiki.jsp?page=Java%20Heap%20%26%20GC%20Tuning
http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
--Adrian S
On Fri, Nov 26, 2010 at 8:54 AM, Deepak Goel <de...@gmail.com> wrote:
> Hey
>
> Namaskara~Nalama~Guten Tag
>
> Some thoughts:
>
> 1. Looks like you are running your system on a very low end configuration
> hardware. Other than that for most systems, 1GB max and min heap size, new
> heap size : 256MB, a parallel garbage collector.
>
> 2. Also there are other parameters for GC which the tuning guide of the
> particular vendor should help you.
>
> 3. Compatibility of the JVM with the OS vendor and all the latest patch
> updates.
>
> 4. It could be also possible your application is quite complex and the GC
> has to traverse quite a few network points to free up objects.
>
> 5. Are there any external systems which are connected to your JVM?
>
> 6. How about having multiple servers if possible? (Cost is a factor
> thought)
>
> Deepak
> --
> Keigu
>
> Deepak
> +91-9765089593
> deicool@gmail.com
> http://www.simtree.net
>
> Skype: thumsupdeicool
> Google talk: deicool
> Blog: http://loveandfearless.wordpress.com
> Facebook: http://www.facebook.com/deicool
>
> "Contribute to the world, environment and more :
> http://www.gridrepublic.org
> "
>
>
>
> On Fri, Nov 26, 2010 at 12:04 PM, Deepak Shetty <sh...@gmail.com> wrote:
>
> > Hi
> >
> > Usually the Heap Size has the biggest impact - but too high a value gives
> > you a larger pause.
> > However absent knowledge of the application(and load and hardware) no
> > recommendation can be made other than the generic ones which Google can
> > tell
> > you
> >
> > regards
> > deepak
> >
> > On Thu, Nov 25, 2010 at 10:27 PM, vineeta vashistha <
> > vineeta.vashistha@appulse.com> wrote:
> >
> > > No I am looking for JVM tuning parameters for application server
> (Jboss)
> > >
> > > On Fri, Nov 26, 2010 at 11:51 AM, Deepak Shetty <sh...@gmail.com>
> > wrote:
> > >
> > > > Hi
> > > >
> > > > im assuming you mean your jmeter client is suffering?
> > > >
> > > > Whats your heap size? How many threads are you running on JMeter?
> > > >
> > > > Reduce memory consumption by
> > > >
> > >
> >
> http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean
> > > >
> > > > regards
> > > > deepak
> > > >
> > > > On Thu, Nov 25, 2010 at 10:18 PM, vineeta vashistha <
> > > > vineeta.vashistha@appulse.com> wrote:
> > > >
> > > > > I am using jdk.1.6
> > > > > My System is getting paused for 5 minutes at the time of GC.
> > > > >
> > > > > Please suggest some settings so that system doesn't pause for such
> a
> > > long
> > > > > duration.
> > > > >
> > > > > Regards,
> > > > > Vineeta
> > > > >
> > > >
> > >
> >
>
Re: JVM tuning
Posted by Deepak Goel <de...@gmail.com>.
Hey
Namaskara~Nalama~Guten Tag
Some thoughts:
1. Looks like you are running your system on a very low end configuration
hardware. Other than that for most systems, 1GB max and min heap size, new
heap size : 256MB, a parallel garbage collector.
2. Also there are other parameters for GC which the tuning guide of the
particular vendor should help you.
3. Compatibility of the JVM with the OS vendor and all the latest patch
updates.
4. It could be also possible your application is quite complex and the GC
has to traverse quite a few network points to free up objects.
5. Are there any external systems which are connected to your JVM?
6. How about having multiple servers if possible? (Cost is a factor thought)
Deepak
--
Keigu
Deepak
+91-9765089593
deicool@gmail.com
http://www.simtree.net
Skype: thumsupdeicool
Google talk: deicool
Blog: http://loveandfearless.wordpress.com
Facebook: http://www.facebook.com/deicool
"Contribute to the world, environment and more : http://www.gridrepublic.org
"
On Fri, Nov 26, 2010 at 12:04 PM, Deepak Shetty <sh...@gmail.com> wrote:
> Hi
>
> Usually the Heap Size has the biggest impact - but too high a value gives
> you a larger pause.
> However absent knowledge of the application(and load and hardware) no
> recommendation can be made other than the generic ones which Google can
> tell
> you
>
> regards
> deepak
>
> On Thu, Nov 25, 2010 at 10:27 PM, vineeta vashistha <
> vineeta.vashistha@appulse.com> wrote:
>
> > No I am looking for JVM tuning parameters for application server (Jboss)
> >
> > On Fri, Nov 26, 2010 at 11:51 AM, Deepak Shetty <sh...@gmail.com>
> wrote:
> >
> > > Hi
> > >
> > > im assuming you mean your jmeter client is suffering?
> > >
> > > Whats your heap size? How many threads are you running on JMeter?
> > >
> > > Reduce memory consumption by
> > >
> >
> http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean
> > >
> > > regards
> > > deepak
> > >
> > > On Thu, Nov 25, 2010 at 10:18 PM, vineeta vashistha <
> > > vineeta.vashistha@appulse.com> wrote:
> > >
> > > > I am using jdk.1.6
> > > > My System is getting paused for 5 minutes at the time of GC.
> > > >
> > > > Please suggest some settings so that system doesn't pause for such a
> > long
> > > > duration.
> > > >
> > > > Regards,
> > > > Vineeta
> > > >
> > >
> >
>
Re: JVM tuning
Posted by Deepak Shetty <sh...@gmail.com>.
Hi
Usually the Heap Size has the biggest impact - but too high a value gives
you a larger pause.
However absent knowledge of the application(and load and hardware) no
recommendation can be made other than the generic ones which Google can tell
you
regards
deepak
On Thu, Nov 25, 2010 at 10:27 PM, vineeta vashistha <
vineeta.vashistha@appulse.com> wrote:
> No I am looking for JVM tuning parameters for application server (Jboss)
>
> On Fri, Nov 26, 2010 at 11:51 AM, Deepak Shetty <sh...@gmail.com> wrote:
>
> > Hi
> >
> > im assuming you mean your jmeter client is suffering?
> >
> > Whats your heap size? How many threads are you running on JMeter?
> >
> > Reduce memory consumption by
> >
> http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean
> >
> > regards
> > deepak
> >
> > On Thu, Nov 25, 2010 at 10:18 PM, vineeta vashistha <
> > vineeta.vashistha@appulse.com> wrote:
> >
> > > I am using jdk.1.6
> > > My System is getting paused for 5 minutes at the time of GC.
> > >
> > > Please suggest some settings so that system doesn't pause for such a
> long
> > > duration.
> > >
> > > Regards,
> > > Vineeta
> > >
> >
>
Re: JVM tuning
Posted by vineeta vashistha <vi...@appulse.com>.
No I am looking for JVM tuning parameters for application server (Jboss)
On Fri, Nov 26, 2010 at 11:51 AM, Deepak Shetty <sh...@gmail.com> wrote:
> Hi
>
> im assuming you mean your jmeter client is suffering?
>
> Whats your heap size? How many threads are you running on JMeter?
>
> Reduce memory consumption by
> http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean
>
> regards
> deepak
>
> On Thu, Nov 25, 2010 at 10:18 PM, vineeta vashistha <
> vineeta.vashistha@appulse.com> wrote:
>
> > I am using jdk.1.6
> > My System is getting paused for 5 minutes at the time of GC.
> >
> > Please suggest some settings so that system doesn't pause for such a long
> > duration.
> >
> > Regards,
> > Vineeta
> >
>
Re: JVM tuning
Posted by Deepak Shetty <sh...@gmail.com>.
Hi
im assuming you mean your jmeter client is suffering?
Whats your heap size? How many threads are you running on JMeter?
Reduce memory consumption by
http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean
regards
deepak
On Thu, Nov 25, 2010 at 10:18 PM, vineeta vashistha <
vineeta.vashistha@appulse.com> wrote:
> I am using jdk.1.6
> My System is getting paused for 5 minutes at the time of GC.
>
> Please suggest some settings so that system doesn't pause for such a long
> duration.
>
> Regards,
> Vineeta
>
Re: JVM tuning
Posted by liang xie <xi...@gmail.com>.
It's not correct : "starting with
JDK version 1.5, on server-class machines, VM automatically chooses CMS as
the collector for the old generation."
In deed, the default GC mode for old generation is Parallel GC in JDK6, you
need to specify "-XX:UseConcMarkSweepGC" for CMS mode explicitly : )
2010/11/29 vineeta vashistha <vi...@appulse.com>
> Liang,
>
> Java technology-based applications can be instructed to run with CMS for
> the
> old generation by specifying -XX:UseConcMarkSweepGC. However, starting with
> JDK version 1.5, on server-class machines, VM automatically chooses CMS as
> the collector for the old generation.
>
> Please refer the following link.
>
> *http://www.sun.com/bigadmin/content/submitted/cms_gc_logs.jsp*<
> http://www.sun.com/bigadmin/content/submitted/cms_gc_logs.jsp>
>
> Regards,
> Vineeta
>
> On Mon, Nov 29, 2010 at 6:23 AM, liang xie <xi...@gmail.com> wrote:
>
> > Try CMS GC mode
> >
> > 2010/11/26 vineeta vashistha <vi...@appulse.com>
> >
> > > I am using jdk.1.6
> > > My System is getting paused for 5 minutes at the time of GC.
> > >
> > > Please suggest some settings so that system doesn't pause for such a
> long
> > > duration.
> > >
> > > Regards,
> > > Vineeta
> > >
> >
>
Re: JVM tuning
Posted by vineeta vashistha <vi...@appulse.com>.
Liang,
Java technology-based applications can be instructed to run with CMS for the
old generation by specifying -XX:UseConcMarkSweepGC. However, starting with
JDK version 1.5, on server-class machines, VM automatically chooses CMS as
the collector for the old generation.
Please refer the following link.
*http://www.sun.com/bigadmin/content/submitted/cms_gc_logs.jsp*<http://www.sun.com/bigadmin/content/submitted/cms_gc_logs.jsp>
Regards,
Vineeta
On Mon, Nov 29, 2010 at 6:23 AM, liang xie <xi...@gmail.com> wrote:
> Try CMS GC mode
>
> 2010/11/26 vineeta vashistha <vi...@appulse.com>
>
> > I am using jdk.1.6
> > My System is getting paused for 5 minutes at the time of GC.
> >
> > Please suggest some settings so that system doesn't pause for such a long
> > duration.
> >
> > Regards,
> > Vineeta
> >
>
Re: JVM tuning
Posted by liang xie <xi...@gmail.com>.
Try CMS GC mode
2010/11/26 vineeta vashistha <vi...@appulse.com>
> I am using jdk.1.6
> My System is getting paused for 5 minutes at the time of GC.
>
> Please suggest some settings so that system doesn't pause for such a long
> duration.
>
> Regards,
> Vineeta
>