Re: Performance degradation over time
Deep Threat <[email protected]> Sat, 6 Dec 2008 09:45:13 -0500
| Newsgroups | gmane.comp.windows.devel.java.advanced |
|---|---|
| Message-ID | <[email protected]> |
=20 Since this is "advanced java"... =20 StringBuilder (added in Java 5) is slightly faster than StringBuffer. =20 StringBuilder does not have the overhead of synchronization that StringBuff= er has=2C so it can only be used in a single-threaded module - the usual ca= se. > Date: Wed=2C 3 Dec 2008 17:51:31 -0500> From: [email protected]> Subj= ect: Re: [ADVANCED-JAVA] Performance degradation over time> To: ADVANCED-JA= [email protected]> > There are couple of things which I think can lea= d to this problem.> > 1. Application is loading to much of data in the appl= ication context> which gets cleared only when you restart the server.> > 2.= There are many static objects in the application and that is eating> up me= mory.> > 3.Memory lick - Objects are not getting garbage collected. Check t= hat> you are using local variables and not much of instance variable.> > 4.= There are some standard java performance techniques like using> stringbuff= er instead of string concatenation.> > Use some java profiler to monitor me= mory usage.> > Thanks and Regards=2C> Ashwin Tandel> Email - aswin.tandel@c= iti.com> > > -----Original Message-----> From: Discussion of advanced Java = topics.> [mailto:[email protected]] On Behalf Of Avinash> = Lakshman> Sent: Tuesday=2C December 02=2C 2008 1:19 PM> To: ADVANCED-JAVA@P= EACH.EASE.LSOFT.COM> Subject: [ADVANCED-JAVA] Performance degradation over = time> > Hi All> > We are seeing performance degrade over a 24 hr period and= then we see> great performance on re-start of the VM. What information sho= uld I> gather to even start looking into this problem? Has anyone seen this= > behavior and provide me pointers into what I need to look at. We are> alw= ays running with a memory footprint of 500MB and hence I would doubt> if it= is anything related to GC. > > Any help would be great.> > Thanks> Avinash= > > _________________________________________________________________> Send= e-mail anywhere. No map=2C no compass.> http://windowslive.com/Explore/hot= mail?ocid=3DTXT_TAGLM_WL_hotmail_acq_any> where_122008> =3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D> View archives and manage your subscription(s) at> http://peac= h.ease.lsoft.com/archives> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D> View archives= and manage your subscription(s) at http://peach.ease.lsoft.com/archives= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives