Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

tuning the GC

Thread view: 
shettynitish@gmail.com - 10 Jul 2006 08:47 GMT
I have a problem tuning the jvm for garbage collection. i have refered
the many sites but not able to tune the jvm . can any one pls help me
to tune the jvm for  garbage collection.
i am using
java Version 1.5.0
Chris Smith - 10 Jul 2006 09:01 GMT
> I have a problem tuning the jvm for garbage collection. i have refered
> the many sites but not able to tune the jvm . can any one pls help me
> to tune the jvm for  garbage collection.
> i am using
> java Version 1.5.0

Do you have a specific question?

Signature

Chris Smith - Lead Software Developer / Technical Trainer
MindIQ Corporation

shettynitish@gmail.com - 10 Jul 2006 11:02 GMT
> > I have a problem tuning the jvm for garbage collection. i have refered
> > the many sites but not able to tune the jvm . can any one pls help me
[quoted text clipped - 7 lines]
> Chris Smith - Lead Software Developer / Technical Trainer
> MindIQ Corporation

hi
   Chris Smith
                    I am working  on web application it was giving me
java heap space error  so i increased the heap space in tomcat . but
wat i observed is it is not a correct solution for it ,this error is
due to garbage collection and i am not getting a correct way to tune
the jvm.
my system is uniprocessor with 1GB RAM
i want some good algorithm and the way they can be included.
can u help me out.
Ingo R. Homann - 10 Jul 2006 12:07 GMT
Hi,

I suppose, that has nothing to do with the GC. I think, you have a
memory leak! I guess you have to do more that just tune on some
VM-parameters - review your code!

Ciao,
Ingo
shettynitish@gmail.com - 10 Jul 2006 13:21 GMT
but how do i check it is memory leak or gc problem . well i was trying
to configure jconsole to my web application but it is not working out,
i am not able to configure it .
the reasone i conclude to tune  gc is that the throughput have
decreased after its heap size  is increased.
therfore  i have to decrease heap size for which i have to tune gc.
present heap size is -Xms256m -Xmx512m
Ingo R. Homann - 10 Jul 2006 14:16 GMT
Hi,

> but how do i check it is memory leak or gc problem .

Well, I never heard that suns GC is buggy in the way that it produces
memory leaks.

An idea would be to change to another JVM-implementation. If the error
occurs there as well (I bet so), then chances are good that it is a
programming error which produces memory leaks.

Ciao,
Ingo
Patricia Shanahan - 10 Jul 2006 14:26 GMT
> but how do i check it is memory leak or gc problem . well i was trying
> to configure jconsole to my web application but it is not working out,
[quoted text clipped - 3 lines]
> therfore  i have to decrease heap size for which i have to tune gc.
> present heap size is -Xms256m -Xmx512m

Check whether you are causing memory thrashing with the larger heap
size. That can happen if the program is actively using more than the
available physical memory. In a thrashing state the disk I/O rate is
very high, and the program's CPU utilization drops to about 2%.

If you do have a memory leak in your program, the heap size parameter
just lets you choose how to fail, running out of heap space or thrashing.

Patricia
Thomas Schodt - 10 Jul 2006 12:53 GMT
>  I am working  on web application it was giving me
> java heap space error  so i increased the heap space in tomcat . but
[quoted text clipped - 4 lines]
> i want some good algorithm and the way they can be included.
> can u help me out.

You could be running out of perm space.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.