Ignoring any specific vendor or VM (even keeping language out of the
picture) - it's easy to speculate that under sever memory shortage the GC
will run much more frequently. As memory gets tighter - the GC will run
more frequently.
Also - the creation and destruction of large quantities of objects will also
increase the frequency and length the GC executes. Object creation and
destruction is rumored to be expensive in java - and is perhaps why in the
EJB world the specification is built around ejbCreate()/ejbLoad() - and the
pooling of already instantiated objects instead of dumping them and just
creating new ones).
This leads to two questions:
- Do you have lots of free memory?
- Are you doing excessive amounts of creating and destroying objects.
Also - you may want to post the question to one of IBM Websphere newsgroups.
Regards
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Sushil Singh
Sent: Friday, June 08, 2001 2:50 PM
To: [EMAIL PROTECTED]
Subject: WAS 3.0.2 - GC Bottleneck
Hi,
We developed e-commerce site using WebSphere 3.0.2 AE running under AIX
4.3 with IHS 1.3.6 and the JDK 1.1.8. We are seeing some extensive
garbage collection. Here is the heap size:
300 - 768 Mb
On an average 45-50% of time spent on GC. For each GC, sometime it is
taking 70sec, sometime even 120sec also. I am unable to understand how
we can improve the GC.
One reason, I can think of since we are doing cahing which is around
200MB and is available throughout the life of JVM.
I have following questions:
- Is there anyway to improve the GC?
- Is there anyway to tell JVM to not look into the 200MB of cache
data for GC.
Another reason (may be), we are using
Awaiting feedback.
Thanks in advance.
Sushil
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html