Thanks Adrian...  I will look for all String manipulations...  Can
you pls tell me how to tune SQL before going for java code...   I hv done
only min work on SQL...
        Will the Session and Entity bean abguity will cause any performance
issues...     In some of the places I hv also used a Session beans in place
of an Entity bean for database connections...      As for as my knowledge
there should not be any ambiguity like this right...

Rgds,
Ram...
CWLGLOBAL.

----- Original Message -----
From: "Adrian Janssen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 4:54 PM
Subject: Re: Performance Tuning


> The best way is to use some kind of profiling tool, this will tell you
where
> most time is being wasted and help focus your efforts. I have not used any
> profiling tools with EJB's so I cannot recommend any.
>
> If you execute any SQL, tune that as best you can before touching java
code.
> Look to decrease first the amount of SQL calls you do, perhaps by
> refactoring your code, and only after that look to improve the speed of
> individual SQL calls.
>
> This can be done without a profiler by capturing a sample piece of SQL in
a
> debugger or a log file, (or even building the equivilant SQL by hand.).
>
> If you cannot get hold of a good profiler then do your own timing using
> System.currentTimeMillis() before and after each thing you want to time
and
> subtract the two - dump the result out to some kind of log. Start quite
high
> in the call stack and work your way down to the offending code. Fix it.
>
> Look for: lots of String manipulation - use StringBuffer, slow hashcode
> genaration of objects that are keys in hashmaps and hash sets.
>
>
> > -----Original Message-----
> > From: Ram [SMTP:[EMAIL PROTECTED]
> > Sent: 18 June 2003 01:12
> > To:   [EMAIL PROTECTED]
> > Subject:      Re: Performance Tuning
> >
> > I know making them execute faster is called performance tuning...
But,
> > How...
> >
> > Rgds,
> > Ram.
> > CWLGLOBAL...
> >
> > ----- Original Message -----
> > From: "Adrian Janssen" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 18, 2003 4:19 PM
> > Subject: Re: Performance Tuning
> >
> >
> > > Make them execute faster.
> > >
> > > > -----Original Message-----
> > > > From: Ram [SMTP:[EMAIL PROTECTED]
> > > > Sent: 18 June 2003 12:48
> > > > To:   [EMAIL PROTECTED]
> > > > Subject:      Performance Tuning
> > > >
> > > > Hi,
> > > >
> > > >         Can anybody tell me how to tune the performance (i.e.,
> > Processing
> > > > speed, connecting speed) of EJB's with JBoss application server.
So
> > > > that, the server should not hang in between.
> > > >
> > > > Rgds,
> > > > Ram
> > > > Software Engineer
> > > > CWLGLOBAL...
> > > >
> > > >
> >
==========================================================================
> > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > > JSP-INTEREST".
> > > > For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST
> > > > DIGEST".
> > > >
> > > > Some relevant archives, FAQs and Forums on JSPs can be found at:
> > > >
> > > >  http://java.sun.com/products/jsp
> > > >  http://archives.java.sun.com/jsp-interest.html
> > > >  http://forums.java.sun.com
> > > >  http://www.jspinsider.com
> > > --
> > >
> > > It is the strict policy of Truworths that its e-mail facility and all
> > > e-mail communications emanating therefrom, should be utilised for
> > > business purposes only and should conform to high professional and
> > > business standards.   Truworths has stipulated certain regulations in
> > > terms whereof strict guidelines relating to the use and content of
> > > e-mail communications are laid down. The use of the Truworths e-mail
> > > facility is not permitted for the distribution of chain letters or
> > > offensive mail of any nature whatsoever.   Truworths hereby distances
> > > itself from and accepts no liability in respect of the unauthorised
> > > use of its e-mail facility or the sending of e-mail communications
> > > for other than strictly business purposes.   Truworths furthermore
> > > disclaims liability for any  unauthorised instruction for  which
> > > permission was not granted.    Truworths Limited accepts no liability
> > > for any consequences arising from or as a result of reliance on this
> > > message unless it is in respect of bona fide Truworths business for
> > > which proper authorisation has been granted.
> > >
> > > Any recipient of an unacceptable communication, a chain letter or
> > > offensive material of any nature is requested to notify the Truworths
> > > e-mail administrator ([EMAIL PROTECTED]) immediately in order that
> > > appropriate action can be taken against the individual concerned.
> > >
> > >
> >
==========================================================================
> > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> > >
> > > Some relevant archives, FAQs and Forums on JSPs can be found at:
> > >
> > >  http://java.sun.com/products/jsp
> > >  http://archives.java.sun.com/jsp-interest.html
> > >  http://forums.java.sun.com
> > >  http://www.jspinsider.com
> > >
> >
> >
==========================================================================
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> >
> > Some relevant archives, FAQs and Forums on JSPs can be found at:
> >
> >  http://java.sun.com/products/jsp
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://forums.java.sun.com
> >  http://www.jspinsider.com
> --
>
> It is the strict policy of Truworths that its e-mail facility and all
> e-mail communications emanating therefrom, should be utilised for
> business purposes only and should conform to high professional and
> business standards.   Truworths has stipulated certain regulations in
> terms whereof strict guidelines relating to the use and content of
> e-mail communications are laid down. The use of the Truworths e-mail
> facility is not permitted for the distribution of chain letters or
> offensive mail of any nature whatsoever.   Truworths hereby distances
> itself from and accepts no liability in respect of the unauthorised
> use of its e-mail facility or the sending of e-mail communications
> for other than strictly business purposes.   Truworths furthermore
> disclaims liability for any  unauthorised instruction for  which
> permission was not granted.    Truworths Limited accepts no liability
> for any consequences arising from or as a result of reliance on this
> message unless it is in respect of bona fide Truworths business for
> which proper authorisation has been granted.
>
> Any recipient of an unacceptable communication, a chain letter or
> offensive material of any nature is requested to notify the Truworths
> e-mail administrator ([EMAIL PROTECTED]) immediately in order that
> appropriate action can be taken against the individual concerned.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
>  http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to