Performance Tweaking

"Ben Simon" <[email protected]>
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
SISCers,

I'm working on a SISCweb application, and I'm now at the state where I'd
like to optimize the performance of it.  What I'm seeing, is that using
ApacheBench (a single worker thread and say 20 requests) is that the server
response time is sluggish for my app (about 1100 milliseconds to service a
request) and naturally I'd like to improve that.

I did some poking around, gathered some timing, and I thought I would share
it with this groups to see if folks had any suggestions about where I should
put my optimization energy.

Here's what I know..

(1) Accessing a flat HTML file off the server takes about 200 milliseconds

(2) Accessing the hello world sisclet that is provided as an example app
takes about 250 milliseconds

(3) Accessing the home page of my application (which runs some DB queries)
takes about 1100 milliseconds

(4) If I time just the contents of my sisclet, it comes out to be about 125
milliseconds, which includes database queries and building up the SXML code.

(5) If I time just the send/back procedure, I see that it spends about 500
milliseconds in that procedure, with 320 milliseconds of it performing SXML
to XML translation

(6) The box is really underpowered (128MB of RAM, it's a shared virtual
server setup - so that's how much RAM I get to play with, the physical box
obviously has plenty more) and the server process seems to do a fair amount
of garabage collection. However, when I add up the timing information on it
(looking at -Xloggc:), it seems like it only GC's for 76 milliseconds.

So, it looks like SXML to XML may be the source of my problems, or it may be
simply too weak a box. Or I may be missing something else all together.

Any suggestions on where I should look?

Thanks in advance!

-Ben

-- 
Ben Simon
My blog: http://benjisimon.blogspot.com
Have a software idea?: http://i2x.blogspot.com

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Sisc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisc-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.