Is there a package that would help me monitor the performance of all the
events in my program that I can use to improve my program. Do I have to
preallocate space to ensure StringBuffer does its function more efficiently.
Thanks
Vallikun
-----Original Message-----
From: Tim Panton - Westhawk Ltd [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 18, 1999 1:19 PM
To: [EMAIL PROTECTED]
Subject: performance tips- was re: Help!
some tips:
0) read Jason Hunter's book.
1) buffer your output-
either to a StringBuffer- or to a
ByteBufferOutputStream
2) set the content-length
3) write all your output in one
go - see above.
4) don't concatenate Strings
use StringBuffer.append
5) cache everything that's
slow- database connections,
-Database metadata,
-user profiles
-small files
6) try to pre-fetch things-
we have a network monitoring servlet which polls constantly in the
background, so there is always
recent data available when a user
request comes in.
7) use a good JIT/JVM
T.
URL http://www.westhawk.co.uk/
___________________________________________________________________________
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