aspose file tools*
The moose likes Servlets and the fly likes why some webapplications are slow? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "why some webapplications are slow?" Watch "why some webapplications are slow?" New topic
Author

why some webapplications are slow?

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
hi,

Here i've deployed 2 web applications in tomcat4.0
one run's very fastly the other run's slowley and moreover the fat running application is larger than slow application.and these 2 application runs on same server.

Is there any way to allocate the transfer speed(Bandwidth) for an individual application?

or otherwise is there any mistake in my programming style.

please provide me exact solution for this problem.

should i follow any rules for developing hig performance application?

please help me


thanx in advance


cinux


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61232
    
  66

please provide me exact solution for this problem.


There is no exact solution to these types of issues. Your best bet is to employ a profiling tool to determine where the actual bottlenecks are. Otherwise, you are just guessing.

If you need to guess, the database is a good place to start.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
ok atleast tell me from where i can get the best profiling tool or DB...


cinux
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
If this was my problem I would start with putting in some timing of individual steps. The JAmon API is good for this sort of thing. The toolkit is a free download and it seems to be well supported.
Bill
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
thanx williams for providing me this tool



cinux
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
hello wiliam,I have deployed the tool into tomcat,and ran that application but how can i trace(monitor) my webapplications ???
If u dont mind please can u explain me...


thanx very much for ur help.



cinux
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
The page I sent you to contains detailed examples of inserting statements into your servlet code in order to monitor the time spent in various functions. Look at the section titled: "5.b Monitoring a Servlet - Gathering page statistics"
Bill
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by saikrishna cinux:
--------------------

A = HARDWORK B = LUCK/FAITH
If C=(A+B) C=SUCCESSFUL IN LIFE
then C=FAILURE IN LIFE


A bit modification in your signatures. Although, its yours. You have the full rights on it.

--
A = HARDWORK B = LUCK/FAITH
If C=(A+B) then C=SUCCESSFUL IN LIFE
else C=FAILURE IN LIFE
--
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
hi,

Yes, i've used ur monitoring tool, but how can i get the details of specific code like tracing the time for connecting to the DB. and retriving the data from the server. o inserting fields ito the database.?

thanx in advance

cinux
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
Mr ansari thanx for ur suggestion. Yes in hurry i did it wrong..
any way i was wrong


thanx

cinux
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
Yes, i've used ur monitoring tool, but how can i get the details of specific code like tracing the time for connecting to the DB. and retriving the data from the server. o inserting fields ito the database.?

I am not clear on where your problem is - the JAmon code lets you collect data on the time spent in any line, set of lines, or method that you can place the appropriate code in. What more do you want?
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
hi williams , now i got it what u said in the earlier post,
so i need to write the code where ever i need to monitor.
I think this tool provides only monitoring the webapplication but i need a tool which can warn the user if a bottleneck occurs at certain part of code



thanking u



cinux
 
Don't get me started about those stupid light bulbs.
 
subject: why some webapplications are slow?