Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

jsCreator2 - Poor Performance of the Demos - help please

Thread view: 
Lyall - 05 Feb 2006 10:45 GMT
I finally got the demos to run after figuring out that they had the
wrong database port (19092 instead of 29092) configured by default.

The Vehicle Incident Report application runs fine, except for
responsiveness.

Should I expect over a second delay between clicking a button and
something displaying on the screen when it is running on local host,
with a p4 2.6ghz machine running linux with 1.5GB of memory in Firefox
1.0.7?

On the first impression, I don't mind (initial loading I expect), but
subsequent impressions I would expect things to be lightning fast.

Sometimes they are lightning fast, if, for example, I swap between two
pages in quick succession but if I click on the tabs from left to right
then towards the left again, zzzz.

I have tried setting up the HTTP monitor but the timestamps recorded
are pretty useless for this sort of thing, having a resolution of
minutes (microseconds or even seconds would have been handy)

I have captured the TCP packets on local host using

tcpdump -A -s 256 -i lo 'tcp port 28080 and (((ip[2:2] -
((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'

and filtered them a bit.

For example, in the VIR app, I clicked on each of the tabs one after
the other and then generated the following output by looking for POST
then looking for the next GET. (on the assumption the first
communication is the POST and the last communicatoin is a GET - not
entirely true, I am sure, but good enough for illustration purposes).

As you can see, the delays between the post and the GET can be quite
long.

18:04:29.288087    POST
/VehicleIncidentReportApplication/faces/Profile.jsp HTTP/1.1
18:04:29.820572    GET /favicon.ico HTTP/1.1
18:04:30.849785    POST
/VehicleIncidentReportApplication/faces/SearchAVehicle.jsp HTTP/1.1
18:04:31.269366    GET /favicon.ico HTTP/1.1
18:04:32.381863    POST
/VehicleIncidentReportApplication/faces/Profile.jsp HTTP/1.1
18:04:38.014451    GET
/VehicleIncidentReportApplication/theme/com/sun/rave/web/ui/defaulttheme-gray/javascript/table.js
HTTP/1.1
18:04:40.852971    POST
/VehicleIncidentReportApplication/faces/Vehicles.jsp HTTP/1.1
18:04:49.233314    GET /favicon.ico HTTP/1.1
18:04:53.156757    POST /VehicleIncidentReportApplication/faces/Help.jsp
HTTP/1.1
18:04:58.777153    GET /favicon.ico HTTP/1.1
18:05:00.288716    POST
/VehicleIncidentReportApplication/faces/Vehicles.jsp HTTP/1.1
18:05:05.938047    GET /favicon.ico HTTP/1.1
18:05:06.934621    POST
/VehicleIncidentReportApplication/faces/Profile.jsp HTTP/1.1
18:05:07.320218    GET /favicon.ico HTTP/1.1

There is no way I am going to proceed with this app using jsCreator if
this is how fast they run.

Where would I start looking?
Any help would be appreciated.
Lyall Pearce - 06 Feb 2006 02:10 GMT
> I finally got the demos to run after figuring out that they had the
> wrong database port (19092 instead of 29092) configured by default.
[quoted text clipped - 63 lines]
> Where would I start looking?
> Any help would be appreciated.

Well, by deploying my app to Tomcat, I get my expected snappy performance.

Simply copying the war to tomcat did not seem to work, tomcat 5 did not
seem to work, it insisted on creating
/etc/tomcat/Catalina/localhost/myap.xml as a directory rather than a
file. Usiing ANT to deploy the app worked however.

...Lyall


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.